PLUTO
|
Hydrodynamic jet propagation in 2D cylindrical coordinates. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | Init (double *v, double x1, double x2, double x3) |
void | Analysis (const Data *d, Grid *grid) |
void | UserDefBoundary (const Data *d, RBox *box, int side, Grid *grid) |
Hydrodynamic jet propagation in 2D cylindrical coordinates.
This problem considers the propagation of a hydrodynamic jet into a static uniform medium with constant density and pressure. The ambient density, in units of the jet density, is prescribed to be where
is the ambient/jet density ratio. The ambient pressure is
when an
IDEAL
EoS is used or it is computed from temperature as for the
PVTE_LAW
EoS (here Ta is the ambient temperature). These values are set in Init() while the jet inflow is set through a user-defined boundary condition at the lower z-boundary. A simple top-hat injection nozzle is used.
The configuration is defined in terms of the following parameters:
g_inputParam[ETA]
: density ratio between ambient and jet;g_inputParam[MACH]
: jet Mach number;g_inputParam[TJET]
: jet temperature (only for PVTE_LAW
EoS).defined in pluto.ini
. The reference density and length are given by the jet density and radius while the reference velocity is 1 Km/s. The actual numerical values are needed only when using the PVTE_LAW
EoS.
IDEAL
EoSPVTE_LAW
EoS. The first one adopts the root-finder version while the second one adopts the tabulated version.Definition in file init.c.
void Init | ( | double * | v, |
double | x1, | ||
double | x2, | ||
double | x3 | ||
) |
The Init() function can be used to assign initial conditions as as a function of spatial position.
[out] | v | a pointer to a vector of primitive variables |
[in] | x1 | coordinate point in the 1st dimension |
[in] | x2 | coordinate point in the 2nd dimension |
[in] | x3 | coordinate point in the 3rdt dimension |
The meaning of x1, x2 and x3 depends on the geometry:
Variable names are accessed by means of an index v[nv], where nv = RHO is density, nv = PRS is pressure, nv = (VX1, VX2, VX3) are the three components of velocity, and so forth.
Definition at line 42 of file init.c.
Assign user-defined boundary conditions in the lower boundary ghost zones. The profile is top-hat:
where and
M
is the flow Mach number (the unit velocity is the jet sound speed, so ).
Definition at line 68 of file init.c.