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

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 442
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭
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: 442
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    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: 442
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    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]))