ppmpy.initial_conditions module

ppmpy.initial_conditions module#

Some standard initial conditions for testing the Euler solver

acoustic_pulse(euler)[source]#

The acoustic pulse problem from McCorquodale & Colella 2011

Parameters:

euler (Euler) – the Euler simulation object

Return type:

None

hse(euler)[source]#

An isothermal hydrostatic atmosphere.

The following parameters should be set in the Euler initialization:

  • base_density : the density at the lower boundary

  • base_pressure : the pressure at the lower boundary

  • g_const : the gravitational acceleration

  • verbose : output the HSE error

Parameters:

euler (Euler) – the Euler simulation object

Return type:

None

sod(euler)[source]#

Initial conditions for the classic Sod shock tube problem

Parameters:

euler (Euler) – the Euler simulation object

Return type:

None