PLUTO Test Problems  4.4-patch2
Functions
init.c File Reference

Two-Dimensional Riemann problem. More...

Functions

void InitDomain (Data *d, Grid *grid)
 

Detailed Description

Sets the initial condition for a 2D Riemann problem in terms of 4 four constant states at each corner of the computational domain.

For example, the top right corner, $x > 0$, $y > 0$, is denoted with PP and its initial values are:

\[ \rho = \rho_{\rm PP} \,,\quad\quad P = P_{\rm PP} \,,\quad\quad v_x = v_{x\,{\rm PP}} \,,\quad\quad v_y = v_{y\,{\rm PP}}\,. \]

Similar conditions hold for the bottom right corner ( $x > 0$, $y < 0$; PM), the top left ( $x < 0$, $y > 0$; MP), and the bottom left ( $x < 0$, $y < 0$; MM). The 4 flow quantities of each corner are defined by the 16 parameters that are read from pluto.ini.

hd_riemann2D.05.jpg
Final state for configuration #05.
Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Sept 15, 2014

References

Function Documentation

◆ InitDomain()

void InitDomain ( Data *  d,
Grid *  grid 
)

Assign initial condition by looping over the computational domain. Called after the usual Init() function to assign initial conditions on primitive variables. Value assigned here will overwrite those prescribed during Init().