Creating remote displacement using scripting

Options
Erik Kostson
Erik Kostson Member, Employee Posts: 124
First Answer Name Dropper First Anniversary Ansys Employee
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: 124
    First Answer Name Dropper First Anniversary Ansys Employee
    edited March 28 Answer ✓
    Options

    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.