visualize deformed mesh

Asked by ceguo

Hi escript developers/users,

I configured my domain using finley.Rectangle. In this way I only found the write("mesh.fly") function to output mesh, while the mesh format .fly cannot be recognized by gmsh. So how to export the mesh for gmsh reading or any visualizer can read the fly mesh?

Best regards!
Ning

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Bob
Solved:
Last query:
Last reply:
Revision history for this message
Best Bob (caltinay) said :
#1

Hi Ning,

In order to visualize the mesh (or Data objects) escript currently allows you to export it in the VTK and Silo file formats.
Use the esys.weipa module to do that, e.g.:

from esys.finley import Rectangle
from esys.weipa import saveVTK, saveSilo
dom=Rectangle(...)
#save as VTK:
saveVTK("output.vtu", dom)
#or as Silo:
saveSilo("output.silo", dom)

Run help(saveVTK) or have a look in the escript user's guide for an explanation of the arguments.

Most visualization packages are able to read VTK or Silo files, for example VisIt, ParaView, MayaVi2

Hope this helps,
Cihan

Revision history for this message
ceguo (hhh-guo) said :
#2

Thanks Cihan Altinay, that solved my question.