HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations. More...
#include <shallowwater1d.h>
Data Fields | |
double | g |
int | bt_type |
int | topo_flag |
double * | b |
char | upw_choice [_MAX_STRING_SIZE_] |
int(* | SourceUpwind )(double *, double *, double *, double *, int, void *, double) |
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations.
Definition at line 137 of file shallowwater1d.h.
double g |
Acceleration due to gravity
Definition at line 138 of file shallowwater1d.h.
int bt_type |
1 -> bottom topography is periodic, 0 -> bottom topography is not periodic
Definition at line 139 of file shallowwater1d.h.
int topo_flag |
Flag to indicate if topography file was provided
Definition at line 139 of file shallowwater1d.h.
double* b |
Array to store the bottom topography \(b(x)\)
Definition at line 141 of file shallowwater1d.h.
char upw_choice[_MAX_STRING_SIZE_] |
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double) |
Function pointer to the function that computes the "upwinding" step in source term computation. To understand the implementation of the gravitational source terms, see:
Definition at line 150 of file shallowwater1d.h.