How to extract Modal analysis results using DPF-Post?

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 extract Modal analysis results using DPF-Post?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓
    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