Using ACT, how can I insert a PSD acceleration boundary condition?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
Answers
-
The following script can be adapted:
# Refer to analysis analysis= ExtAPI.DataModel.Project.Model.Analyses[0] # Insert PSD Acceleration BaseExcitation=analysis.AddPSDGAcceleration() # Select direction BaseExcitation.Direction=NormalOrientationType.XAxis # Define units FreqUnit='[Hz]' AmpUnit='[G G Hz^-1]' # Define frequencies f1=100 f2=200 f3=800 # Define values for tabular load input BaseExcitation.LoadData.Inputs[0].DiscreteValues=[Quantity(str(f1) + FreqUnit), Quantity(str(f2) + FreqUnit), Quantity(str(f3) + FreqUnit)] # Define amplitude values Amp1=50 Amp2=75 Amp3=1 # Define values for tabular load BaseExcitation.LoadData.Output.DiscreteValues=[Quantity(str(Amp1) + AmpUnit), Quantity(str(Amp2) + AmpUnit), Quantity(str(Amp3) + AmpUnit)] # Define Boundary Condition BaseExcitation.BoundaryCondition=PSDBoundaryConditionSelectionType.AllFixedSupports
4 -
Just one change in recent versions of ansys. The amplitude units is changed like below
AmpUnit='[gravity gravity Hz^-1]'
2