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.ini
intoeuler_vortex_2d/
Copy the Gmsh file
PyFR/examples/euler_vortex_2d/euler_vortex_2d.msh
intoeuler_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.pyfrs
converting 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
Proceed with the following steps to run a serial 2D Couette flow simulation on a mixed unstructured mesh:
Create a working directory called
couette_flow_2d/
Copy the configuration file
PyFR/examples/couette_flow_2d/couette_flow_2d.ini
intocouette_flow_2d/
Copy the Gmsh mesh file
PyFR/examples/couette_flow_2d/couette_flow_2d.msh
intocouette_flow_2d/
Run pyfr to covert the Gmsh mesh file into a PyFR mesh file called
couette_flow_2d.pyfrm
:pyfr import couette_flow_2d.msh couette_flow_2d.pyfrm
Run pyfr to solve the Navier-Stokes equations on the mesh, generating a series of PyFR solution files called
couette_flow_2d-*.pyfrs
:pyfr run -b cuda -p couette_flow_2d.pyfrm couette_flow_2d.ini
Run pyfr on the solution file
couette_flow_2d-040.pyfrs
converting it into an unstructured VTK file calledcouette_flow_2d-040.vtu
:pyfr export couette_flow_2d.pyfrm couette_flow_2d-040.pyfrs couette_flow_2d-040.vtu
Visualise the unstructured VTK file in Paraview
Proceed with the following steps to run a serial 2D incompressible cylinder flow simulation on a mixed unstructured mesh:
Create a working directory called
inc_cylinder_2d/
Copy the configuration file
PyFR/examples/inc_cylinder_2d/inc_cylinder_2d.ini
intoinc_cylinder_2d/
Copy the compressed Gmsh mesh file
PyFR/examples/inc_cylinder_2d/inc_cylinder_2d.msh.gz
intoinc_cylinder_2d/
Unzip the file and run pyfr to covert the Gmsh mesh file into a PyFR mesh file called
inc_cylinder_2d.pyfrm
:zcat inc_cylinder_2d.msh.gz | pyfr import -tgmsh - inc_cylinder_2d.pyfrm
Run pyfr to solve the incompressible Navier-Stokes equations on the mesh, generating a series of PyFR solution files called
inc_cylinder_2d-*.pyfrs
:pyfr run -b cuda -p inc_cylinder_2d.pyfrm inc_cylinder_2d.ini
Run pyfr on the solution file
inc_cylinder_2d-75.00.pyfrs
converting it into an unstructured VTK file calledinc_cylinder_2d-75.00.vtu
:pyfr export inc_cylinder_2d.pyfrm inc_cylinder_2d-75.00.pyfrs inc_cylinder_2d-75.00.vtu
Visualise the unstructured VTK file in Paraview