Multi-threading with DPF post evaluations In Mechanical

Mike.Thompson
Mike.Thompson Member, Employee Posts: 327
25 Answers First Anniversary 100 Comments 25 Likes
✭✭✭✭
edited October 2023 in Structures

Hi all,
Has anybody experimented with using the iron python threading module to start an async thread that does DPF post calculations?

Use case is this could be called immediately after the solve is done since the results file is available. Users can still interact with Mechanical since the call after the solve is simply to start a parallel thread that points to the .rst file and starts a dpf evaluation. For post processing that takes a long time, it leaves Mechanical responsive to the users, while still calculating with DPF in background.

Users could then get a notification when it is done, and pull results from memory or from a .csv or .h5 file that DPF writes.

Answers