How to get Eigen-frequencies list from a Modal Analysis?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How to get Eigen-frequencies list from a Modal Analysis?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    For undamped Modal Analysis:

    analysis = ExtAPI.DataModel.Project.Model.Analyses[0]
    reader = analysis.GetResultsData()
    reader.ListTimeFreq
    
  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    For damped modal analysis the eigenvalues are complex numbers, the returned list needs to be filtered:

    modal_analysis = ExtAPI.DataModel.Project.Model.Analyses[0]  # Modal Analysis
    reader = modal_analysis.GetResultsData()
    eigen_freqs = list(filter(lambda x: x > 0, list(reader.ListTimeFreq)[1::2]))