HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains functions to compute the "upwind" source term at an interface (for a balanced finite-difference discretization of the 1D Euler equations with gravitational source terms). More...
#include <stdlib.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <physicalmodels/euler1d.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | Euler1DSourceUpwindLLF (double *fI, double *fL, double *fR, double *u, int dir, void *s, double t) |
int | Euler1DSourceUpwindRoe (double *fI, double *fL, double *fR, double *u, int dir, void *s, double t) |
Contains functions to compute the "upwind" source term at an interface (for a balanced finite-difference discretization of the 1D Euler equations with gravitational source terms).
Definition in file Euler1DSourceUpwind.c.
int Euler1DSourceUpwindLLF | ( | double * | fI, |
double * | fL, | ||
double * | fR, | ||
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Compute the "upwind" source term in the balanced formulation introduced in the reference below. The "upwind" state is just the arithmetic average of the left and right states.
fI | Computed interface source term ("upwinded") |
fL | Left-biased interface source term |
fR | Right-biased interface source term |
u | Solution (conserved variables) |
dir | Spatial dimension (unused since this is a 1D case) |
s | Solver object of type HyPar |
t | Current solution time |
Definition at line 21 of file Euler1DSourceUpwind.c.
int Euler1DSourceUpwindRoe | ( | double * | fI, |
double * | fL, | ||
double * | fR, | ||
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Compute the "upwind" source term in the balanced formulation introduced in the reference below. The "upwind" state is just the arithmetic average of the left and right states.
fI | Computed interface source term ("upwinded") |
fL | Left-biased interface source term |
fR | Right-biased interface source term |
u | Solution (conserved variables) |
dir | Spatial dimension (unused since this is a 1D case) |
s | Solver object of type HyPar |
t | Current solution time |
Definition at line 64 of file Euler1DSourceUpwind.c.