pyro.compressible_fv4 package

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

Subpackages

Submodules

pyro.compressible_fv4.fluxes module

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

pyro.compressible_fv4.simulation module

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

Bases: Simulation

evolve()[source]

Evolve the equations of compressible hydrodynamics through a timestep dt.

initialize(extra_vars=None, 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