


Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.



def before_solve(this, analysis): # Do not edit this line
"""
Called before solving the parent analysis.
Keyword Arguments :
this -- this python object
analysis -- Static Structural
"""
preload =
this.PropertyProvider.GetPropertyByName("Parameters/Preload(N)").Value
all_prets = DataModel.GetObjectByName('Bolt Pretension')
for prets in all_prets:
times = range(1,prets.Parent.AnalysisSettings.NumberOfSteps+1)
preload_vals=[]
time_vals=[]
for time in times:
time_vals.append(Quantity(float(time) , "sec"))
preload_vals.append(Quantity(float(preload) , "N"))
prets.Preload.Inputs[0].DiscreteValues = time-vals
prets.Preload.Output.DiscreteValues=preload_vals
Was this page helpful?