Gamma Mesh Format (GMF) reader plugin for Paraview
Visualize meshes in the meshb format in Paraview.
Optionally, one can also load a mathing .sol/.solb
file for visualiazion solution attributes.
Tested using Paraview 5.6.0 & 5.8.0 on Linux (Ubuntu 16.04).
Instructions
Paraview 5.8.0
- Clone the official docker image for building paraview plugins
- Build paraview 5.8.0 by running
./run_build_paraview.sh v5.8.0
- Build the plugin by running
./run_build_build.sh -d <local copy of this repository> v5.8.0
- Copy the generated .so files in a directory
- Load from the directory above the
GMFReaderParaview.so
throught theTools->Manage Plug-ins
menu. - The
File->Open
menu should now show.mesh
and.meshb
files in the available formats.
Paraview 5.6.0
- Checkout the 5.6.0 tag of this repository
- The installation can be done using the paraview superbuild system. Using the provided Dockerfile build the superbuild system or download it directly from dockerhub.
- Start the image using the provided
run.sh
script. - Start the container and navigate to
/mnt/shared
which is mounted under the current directory. - Run
mkdir build && cd build && cmake ../src/ && make
to build the plugin. This should produce a.so
library which you can load from paraview throught theTools->Manage Plug-ins
menu. - The
File->Open
menu should now showmeshb
files in the available formats.
Note
A .mesh/.meshb
file can hold a wide variaty of attributes. The reader loads :
- Coordinates of points
- Element Connectivity information (high order elements are not supported)
VerticesOnGeometricTriangles
,VerticesOnGeometricEdges
,VerticesOnGeometricTriangles
info saved into thecad_info
array using the following convention: Each point gets acad_info
tuple. The first component is the dimension of the geometrical entity (0-> vertex,1->edge,2->triangle,-1 -> volume point). The second component is the id of the geometric entity. Only ascii ugrid and lb8.ugrid, b8.ugrid files are supported.