compressible_fv4 package

This is a 4th order accurate compressible hydrodynamics solver, implementing the algorithm from McCorquodale & Colella (2011).

Submodules

compressible_fv4.fluxes module

compressible_fv4.fluxes.flux_cons(ivars, idir, gamma, q)[source]
compressible_fv4.fluxes.fluxes(myd, rp, ivars, solid, tc)[source]

compressible_fv4.simulation module

class compressible_fv4.simulation.Simulation(solver_name, problem_name, rp, timers=None, data_class=<class 'mesh.fv.FV2d'>)[source]

Bases: compressible_rk.simulation.Simulation

evolve()[source]

Evolve the equations of compressible hydrodynamics through a timestep dt.

initialize(ng=5)[source]

Initialize the grid and variables for compressible flow and set the initial conditions for the chosen problem.

preevolve()[source]

Since we are 4th order accurate we need to make sure that we initialized with accurate zone-averages, so the preevolve for this solver assumes that the initialization was done to cell-centers and converts it to cell-averages.

substep(myd)[source]

compute the advective source term for the given state