Examples
Euler Equations
2D Euler Vortex
Proceed with the following steps to run a parallel 2D Euler vortex simulation on a structured mesh:
Create a working directory called
euler_vortex_2d/Copy the configuration file
PyFR/examples/euler_vortex_2d/euler_vortex_2d.iniintoeuler_vortex_2d/Copy the Gmsh file
PyFR/examples/euler_vortex_2d/euler_vortex_2d.mshintoeuler_vortex_2d/Run pyfr to convert the Gmsh mesh file into a PyFR mesh file called
euler_vortex_2d.pyfrm:pyfr import euler_vortex_2d.msh euler_vortex_2d.pyfrm
Run pyfr to partition the PyFR mesh file into two pieces:
pyfr partition 2 euler_vortex_2d.pyfrm .
Run pyfr to solve the Euler equations on the mesh, generating a series of PyFR solution files called
euler_vortex_2d*.pyfrs:mpiexec -n 2 pyfr run -b cuda -p euler_vortex_2d.pyfrm euler_vortex_2d.ini
Run pyfr on the solution file
euler_vortex_2d-100.0.pyfrsconverting it into an unstructured VTK file calledeuler_vortex_2d-100.0.vtu:pyfr export euler_vortex_2d.pyfrm euler_vortex_2d-100.0.pyfrs euler_vortex_2d-100.0.vtu
Visualise the unstructured VTK file in Paraview
Colour map of density distribution at 100 time units.

