How to access vertices of ASPECT mesh with deformation (e.g. free surface case)

Hi Zhikui,

Thank you for posting to the forum!

The standard ASPECT visualization post processing plugins all write out the deformed mesh at each time step.

One option would be to take the standard ASPECT output data files (HDF5, VTK, or ASCII) and process + rewrite that data in the OpenFOAM format.

Here is a post on how to load the VTK data into numpy arrays:

Would this approach work or is there a reason that this needs to be done within ASPECT, rather than as an external post processing step?

Cheers,
John