Using ACT, how can I insert a PSD acceleration boundary condition?

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

Using ACT, how can I insert a PSD acceleration boundary condition?

Tagged:

Answers

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

    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
    
  • Vishnu
    Vishnu Member, Employee Posts: 222
    100 Comments 100 Likes Second Anniversary Name Dropper
    ✭✭✭✭
    Answer ✓

    Just one change in recent versions of ansys. The amplitude units is changed like below

    AmpUnit='[gravity gravity Hz^-1]'