Creating remote displacement using scripting

Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 282
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited March 2024 in Structures

An error similar to what is explained here is given:
https://forum.ansys.com/forums/topic/set-remote-displacement-with-scripting/

how can I resolve this?

Best Answer

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 282
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited March 2024 Answer ✓

    The below script is needed to make it work. Also as it is a ramped load time=0 can not have a displacement so start at next time point.

    x=1
    rd.XComponent.Output.DefinitionType=VariableDefinitionType.Discrete # this is needed
    rd.XComponent.Output.SetDiscreteValue(1, Quantity(x, “m”))
    

Answers

This discussion has been closed.