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 shallow water equations). More...
#include <stdlib.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <physicalmodels/shallowwater1d.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ShallowWater1DSourceUpwindLLF (double *fI, double *fL, double *fR, double *u, int dir, void *s, double t) |
int | ShallowWater1DSourceUpwindRoe (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 shallow water equations).
Definition in file ShallowWater1DSourceUpwind.c.
int ShallowWater1DSourceUpwindLLF | ( | 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 22 of file ShallowWater1DSourceUpwind.c.
int ShallowWater1DSourceUpwindRoe | ( | 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 ShallowWater1DSourceUpwind.c.