How to extract Modal analysis results using DPF-Post?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 457
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

How to extract Modal analysis results using DPF-Post?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 457
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    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