TAGGED: python-scripting, scripting, scripts
-
-
March 28, 2024 at 11:04 amSanttu SiponenSubscriber
I'm trying to set the XComponent value of Remote Displacement with scripting. I think the problem is on the last line and has something to do with the fact that it is originally set as 'Free'. Appreciate any help to fix my code!
Code Below,
model=ExtAPI.DataModel.Project.Modelstatic_structural = model.Analyses[0]eigenvalue_buckling = model.Analyses[1]solution=eigenvalue_buckling.SolutionÂx=1ÂÂrd=static_structural.AddRemoteDisplacement()rd.Location=ExtAPI.DataModel.GetObjectsByName("ylaosa")[0]Ârd.XComponent.ToStringÂrd.XComponent.Output.SetDiscreteValue(0, Quantity(x, "m"))Â
-
March 28, 2024 at 11:07 amSanttu SiponenSubscriber
Link to appropriate reference guide, https://storage.ansys.com/act/v190/ACTReferenceHTML/Mechanical/index.html#Reference.methode.Ansys.ACT.Mechanical.Fields.Variable.SetDiscreteValue.html
-
March 28, 2024 at 12:54 pmErik KostsonAnsys Employee
Â
Hi
You need this (see link) to make it work. Also as it is a ramped load time=0 can not have a displacement so start at next time point (see below).
Thank you
Erik
-
Viewing 2 reply threads
- The topic ‘Set Remote Displacement with scripting’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- How to apply Compression-only Support?
- Geometric stiffness matrix for solid elements
- Frictional No separation contact
- Image to file in Mechanical is bugged and does not show text
- Timestep range set for animation export
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
Top Contributors
-
1406
-
599
-
591
-
555
-
366
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.