PyFR includes several test cases to showcase the functionality of the solver. It is important to note, however, that these examples are all relatively small 2D simulations and, as such, are not suitable for scalability or performance studies.
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
Copy the configuration file
Copy the Gmsh file
Run pyfr to convert the Gmsh mesh file into a PyFR mesh file called
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
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 called
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