Harmonic analysis - Define User Defined Frequencies

Options
Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 827
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

In an harmonic analysis, how can I modify the analysis settings to use User Defined Frequencies, and define those frequencies?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 827
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    The following lines of code can be used:

    harmonic_analysis = ExtAPI.DataModel.Project.Model.Analyses[1]
    harmo_settings = harmonic_analysis.AnalysisSettings
    harmo_settings.UserDefinedFrequencies = True # activate User Defined Frequencies
    harmo_settings.UserDefinedFrequencySteps = [Quantity('57.867 [Hz]'), Quantity('115.73 [Hz]'), Quantity('173.6 [Hz]')] # define frequencies as a list of quantities