The ghost fluid method for two-material flow governed by the one dimensional compressible Euler equations
These instructions will get you a copy of the project compiled on your local machine.
- The Blitz++ library - available at https://sourceforge.net/projects/blitz/
- Gnuplot - run
sudo apt-get install gnuplot
Simulation options are specified in 'settings_file.txt' before running 1D_Euler_GFM.exe. The following options are available:
- length [integer] number of real cells in domain
- numGC [integer] number of ghost cells on each end of the domain
- lsnumGC [integer] number of boundary ghost cells for level set grid
- lslength [integer] number of grid points for level set grid
- fluid1_gamma [double] EOS parameter
- fluid1_A [double] EOS parameter
- fluid2_gamma [double] EOS parameter
- fluid2_A [double] *EOS parameter}
- RS_pure [HLLC_idealgas | Exact_idealgas] Riemann solver used for single-material Riemann problem in flow solver
- FS [Godunov | MUSCL] Flow solver for single-material Euler equations
- GFM [Original | Isobaricfix | Real] Ghost fluid method
- IC [TTC1 | TTC2 | TTC3 | TTC4 | TTC5] Test case. TTC1-5 are initial conditions for the five test cases from Toro.
- eos 1 [ideal] Equation of state
- eos 2 [ideal] Equation of state
- BC_L [transmissive | reflective | nothing] Left boundary condition
- BC_R [transmissive | reflective | nothing] Right boundary condition
- CFL [double between 0 and 1] CFL number for time step size
- output [0 | 1] Turn output after every time step off or on
- sim [onefluid | twofluid] Switch between single fluid simulation and full multimaterial ghost fluid simulation
- outputpath [string] Simulation output is sent here
Some examples of the output are available in the results folder. This currently contains:
- Single fluid results from all five of Toro's test cases using Godunov/MUSCL-Hancock method over a range of different resolutions
- Single fluid results from Gaussian density profile advection test case using Godunov/MUSCL-Hancock method over a range of different resolutions
- Convergence studies for single fluid methods
- Toro, Eleuterio F. Riemann solvers and numerical methods for fluid dynamics: a practical introduction. Springer Science & Business Media, 2013.
- Fedkiw, Ronald P., et al. "A non-oscillatory Eulerian approach to interfaces in multimaterial flows (the ghost fluid method)." Journal of computational physics 152.2 (1999): 457-492.
- Hu, X. Y., N. A. Adams, and Gianluca Iaccarino. "On the HLLC Riemann solver for interface interaction in compressible multi-fluid flow." Journal of Computational Physics 228.17 (2009): 6572-6589.