How can I set a value to be free for a displacement boundary conditions?

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
100 Answers 500 Comments 250 Likes First Anniversary
✭✭✭✭
edited June 2023 in Structures

I have created a displacement boundary condition with the following:

analysis=ExtAPI.DataModel.Project.Model.Analyses[0] # refer to analysis
my_disp=analysis.AddDisplacement() # add displacement boundary condition
my_disp.Location=ExtAPI.DataModel.GetObjectsByName("MyNamedSelection")[0] # scope boundary condition to named selection called "MyNamedSelection"
my_disp.XComponent.Inputs[0].DiscreteValues=[Quantity('0[s]'),Quantity('1[s]'),Quantity('2[s]'),Quantity('3[s]')] # define input values for tabular data
my_disp.XComponent.Output.DiscreteValues=[Quantity('0[mm]'),Quantity('1[mm]'),Quantity('2[mm]'),Quantity('3[mm]')] # define output values for tabular data loading

How can modify this and set the X displacement to free?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
    100 Answers 500 Comments 250 Likes First Anniversary
    ✭✭✭✭
    Answer ✓

    One can use:

    my_disp.XComponent.Inputs[0].DefinitionType=VariableDefinitionType.Free