HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Structure containing variables and parameters specific to the 2D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D ShallowWater equations. More...
#include <shallowwater2d.h>
Data Fields | |
int | bt_type |
int | topo_flag |
double | g |
double * | b |
double | fhat |
double | beta |
double | D |
char | upw_choice [_MAX_STRING_SIZE_] |
int(* | SourceUpwind )(double *, double *, double *, double *, int, void *, double) |
Structure containing variables and parameters specific to the 2D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D ShallowWater equations.
Definition at line 240 of file shallowwater2d.h.
int bt_type |
1 -> bottom topography is periodic, 0 -> bottom topography is not periodic
Definition at line 241 of file shallowwater2d.h.
int topo_flag |
Flag to indicate if topography file was provided
Definition at line 241 of file shallowwater2d.h.
double g |
Acceleration due to gravity
Definition at line 243 of file shallowwater2d.h.
double * b |
Array to store the bottom topography \(b(x,y)\)
Definition at line 243 of file shallowwater2d.h.
double fhat |
Coriolis parameter
Definition at line 243 of file shallowwater2d.h.
double beta |
beta-plane approximation parameter for Coriolis force
Definition at line 243 of file shallowwater2d.h.
double D |
Channel width for Coriolis force calculation
Definition at line 243 of file shallowwater2d.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 256 of file shallowwater2d.h.