#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"
Go to the source code of this file.
Functions | |
double | max_riemann (double a, double b) |
int | riemann (int nmin, int nmax, double *clft, double *crgh, double *rlft, double *rrgh, double *plfti, double *prghi, double *pmid, double *pmold, double *plft, double *wrgh, double *prgh, double *wlft, double *zlft, double *zrgh, double *umidl, double *umidr, double *umid, double *urgh, double *ulft) |
|
inline |
int riemann | ( | int | nmin, |
int | nmax, | ||
double * | clft, | ||
double * | crgh, | ||
double * | rlft, | ||
double * | rrgh, | ||
double * | plfti, | ||
double * | prghi, | ||
double * | pmid, | ||
double * | pmold, | ||
double * | plft, | ||
double * | wrgh, | ||
double * | prgh, | ||
double * | wlft, | ||
double * | zlft, | ||
double * | zrgh, | ||
double * | umidl, | ||
double * | umidr, | ||
double * | umid, | ||
double * | urgh, | ||
double * | ulft | ||
) |
The Riemann solver for the shock tube problem.
Input variables are: lmin = zone number of first physical zone lmax = zone number of first ghost zone on right (lmax=nmax+1) gamma = equation of state gamma prgh = pressure state on the right side of the boundary plft = pressure state on the left side of the boundary urgh = velocity state on the right side of the boundary ulft = velocity state on the left side of the boundary vrgh = density state on the right side of the boundary rlft = density state on the left side of the boundary (rlft and vrgh are inverted to get the specific volume)
Output variables are: umid = time_sim averaged velocity at the zone interface pmid = time_sim averaged pressure at the zone interface
Definition at line 46 of file riemann.c.
References Gamma1, max_riemann(), and smallp.
Referenced by ppm_step().