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
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- How to model a bimodular material in Mechanical
- APDL, memory, solid
- Meaning of the error
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
Top Contributors
-
3907
-
1414
-
1256
-
1118
-
1015
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.