|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the function to compute the modified solution for a balanced discretization scheme. More...
#include <basic.h>#include <arrayfunctions.h>#include <physicalmodels/euler1d.h>#include <mpivars.h>#include <hypar.h>Go to the source code of this file.
Functions | |
| int | Euler1DModifiedSolution (double *uC, double *u, int d, void *s, void *m, double waqt) |
Contains the function to compute the modified solution for a balanced discretization scheme.
Definition in file Euler1DModifiedSolution.c.
| int Euler1DModifiedSolution | ( | double * | uC, |
| double * | u, | ||
| int | d, | ||
| void * | s, | ||
| void * | m, | ||
| double | waqt | ||
| ) |
Compute the modified solution for the upwinding step in a balanced conservative finite-difference algorithm for the 1D Euler equations with gravitational sources. If no gravitational forces exist, the modified solution is identical to the solution.
Refer to
| uC | The modified solution (same array size and layout as u) |
| u | The solution (conserved variables) |
| d | Spatial dimension (unused since this is a 1D system) |
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| waqt | Current solution time |
Definition at line 23 of file Euler1DModifiedSolution.c.