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

Options
Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 813
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
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: 813
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    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: 214
    Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
    Answer ✓
    Options

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

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