Exporting results for visualisation

We now turn to the exporter facility of Feel++ which allows to provide the results of Feel++ solves in a format readable by ParaView or EnSight.

In this 2D and 3D example, we

  • download a mesh description from {uri-github-feelpp}

  • build the mesh and partition it

  • build a function space \(X_h\)

  • create an element \(u\) of \(X_h\) which interpolate an expression givn by the end-user

  • export to the Ensight Gold format (the default Feel++ format) of Feel++

Example to build a mesh and function space, create an element and visualize them in ParaView
404: Not Found

To run this example,

mpiexec -n 4 python3 test_exporter.py

The location of the results are shown in the output of the script.

Output of the script
[ Starting Feel++ ] application test_exporter.py version 0.1 date 2021-Jul-16
[feelpp] create Feel++ repository "/home/saigre/feelppdb" ...
[feelpp] create Feel++ geo repository "/home/saigre/feelppdb/geo" ...
[feelpp] create Feel++ exprs directory "/home/saigre/feelppdb/./exprs" ...
 . test_exporter.py files are stored in /home/saigre/feelppdb/./np_4
 .. logfiles :/home/saigre/feelppdb/./np_4/logs
[loadMesh] Loading mesh in format geo+msh: "/home/saigre/feelppdb/./downloads/feelpp2d.geo"
[loadMesh] Use default geo desc: /home/saigre/feelppdb/./downloads/feelpp2d.geo 0.1
[loadMesh] Loading mesh in format geo+msh: "/home/saigre/feelppdb/./downloads/feelpp3d.geo"
[loadMesh] Use default geo desc: /home/saigre/feelppdb/./downloads/feelpp3d.geo 0.1
[env] Time : 6.69257s
[ Stopping Feel++ ] application test_exporter.py execution time 6.69257s

It remains to open the file .case with ParaView or EnSight.

It should look like this

ex1