An unstructured solver for the Euler equations on a 2D grid, prototyped in Python.
- LSQ gradient reconstruction
- Roe approximate Riemmann solver for the flux
- Cell centered.
- Tri and quad meshes shown
- NumPy
- matplotlib
- weakref
- memory_profile
- paraview for viewing vtk output files
The implemenatation is pretty well finished, but I am expanding it. Right now, the explicity steady solver is known to work well for the cylinder and airfoil test cases. You can also run the "System2D.py" file and get plots showing small tri and quad grids. The solver treats all meshes as unstructured by design. The point of this exercise is to go through the motions of implementing an unstructrued Euler solver before "doing the real thing" in C++.
Here are some shock diffraction (supersonic flow over a backward facing step) plots made with the solver:
And here's a sample result of flow over an airfoil:
Update: need to update the initial vortex:
Here are plots of density and pressure, done with two different methods of interpolating unstructured data to a cartesian grid for plotting. Not sure which is better just yet.
Hmm... That was for a tri-mesh. Here is the same on a quad mesh:
Normals, centroids, face centers, edges, and vertices shown.
Normals, centroids, face centers, edges, and vertices shown.
Cheers,
Luke