Creating remote displacement using scripting

Erik Kostson
Erik Kostson Member, Employee Posts: 200
50 Answers 100 Comments Photogenic 5 Likes
✭✭✭✭
edited March 28 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, Employee Posts: 200
    50 Answers 100 Comments Photogenic 5 Likes
    ✭✭✭✭
    edited March 28 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”))
    
This discussion has been closed.