TAGGED: python-scripting, scripting, scripts
-
-
March 28, 2024 at 11:04 am
Santtu Siponen
SubscriberI'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 am
Santtu Siponen
SubscriberLink 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 pm
Erik Kostson
Ansys 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
Top Contributors
-
3029
-
971
-
858
-
841
-
777
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.