initial_conditions_2d Module



Subroutines

public subroutine apply_initial_condition_2d(state, cfg)

Fill state % ub over interior cells according to cfg % problem_type.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_uniform(state, cfg)

Constant state rho=1, u=0, v=0, p=1.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_isentropic_vortex(state, cfg)

Classic isentropic vortex (Shu 1998). Mean flow rho=1,p=1,u=v=1; strength beta=5; centred at the domain midpoint. Exact, smooth, periodic.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_sedov(state, cfg)

Sedov-Taylor blast: ambient rho=1,p=1e-5; total energy E=1 deposited as high pressure in cells within r0 = 3.5*dx of the domain centre (cylindrical).

Read more…

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_toro_explosion(state, cfg)

Toro 2D explosion: circle R=0.4 at the domain centre; inside rho=1,p=1; outside rho=0.125,p=0.1; u=v=0.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_config3(state, cfg)

Lax-Liu Config 3 four-quadrant Riemann problem (split at the domain centre).

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg

private subroutine ic_freestream(state, cfg)

Uniform free-stream from the config reference state (rho_inf,u_inf,v_inf,p_inf). Used to initialise supersonic inflow cases (e.g. the compression ramp).

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
type(config_2d_t), intent(in) :: cfg