How to extract Modal analysis results using DPF-Post?

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 419
5 Likes First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

How to extract Modal analysis results using DPF-Post?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 419
    5 Likes First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options
    from ansys.dpf import post
    solution = post.load_solution(r"/Path/to/my/results/file.rst")
    print(solution)  # To see how many modes have been extracted
    # arg- `time_scoping`For results of mode 1, 2, ...
    disp_result = solution.displacement(time_scoping=1)
    disp = disp_result.vector
    disp.get_data_at_field(0)
    disp.max_data