![]() |
AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
|
#include "adh.h"
Functions | |
void | fe_sw2_temporal (int ie, SELEM_2D *elem2d, int nnodes, SVECT *elem_nds, double djac, double drying_lower_limit, double *elem_head, SVECT2D *elem_vel, double wd_factor, double dt_factor, double *elem_rhs, char *string, int DEBUG, int DEBUG_LOCAL, int wd_flag) |
Returns the 2D body temporal contributions to the shallow water equations. More... | |
int | fe_sw2_body_resid (SMODEL_SUPER *mod, double *elem_rhs, int ie, double perturbation, int perturb_node, int perturb_var, int perturb_sign, int DEBUG) |
Returns the 2D shallow water elemental residual. More... | |
This file collections functions responsible for the 2D shallow water body contributions to the elemental residual.
int fe_sw2_body_resid | ( | SMODEL_SUPER * | mod, |
double * | elem_rhs, | ||
int | ie, | ||
double | perturbation, | ||
int | perturb_node, | ||
int | perturb_var, | ||
int | perturb_sign, | ||
int | DEBUG | ||
) |
Returns the 2D shallow water elemental residual.
[in] | mod | (SMODEL_SUPER *) - the super model, contains pointer to grid, dependent vars, maps, and such |
[in,out] | elem_rhs | (double *) - the 2D elemental residual array |
[in] | ie | (int) - the elemental id |
[in] | pertubation | (double) - the F-D approximation size aka Newton pertubation |
[in] | perturb_node | (int) - the index of node to be perturbed (local to element) |
[in] | perturb_var | (int) - the index of the variable to be perturbed |
[in] | perturb_sign | (int) - the direction of Newton perturbation (either -1 or 1) |
[in] | DEBUG | (int) - a debug flag |
Solves the body integals of the following weak, discrete body terms of the 2D shallow water equation:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates residual contributions from momentum and mass shock capturing.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the advection addition to the SW body terms.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the temporal addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the diffusion addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the friction addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the vorticity addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the coriolis addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the wind and wave addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the rainfall addition to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the pressure additions to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the body pressure on element.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the bathymetry gradient integral on element.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the boundary integral on element edges. This is to auto-find no-flow boundaries.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the density pressure additions to the elemental residual.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the density driven body pressure on element.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the density bathymetry gradient integral on element.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the density driven pressure boundary integral on element edges. This is to auto-find no-flow boundaries.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Calculates the SUPG addition to the elemental residual.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Sets the Dirichlet boundary conditions.
void fe_sw2_temporal | ( | int | ie, |
SELEM_2D * | elem2d, | ||
int | nnodes, | ||
SVECT * | elem_nds, | ||
double | djac, | ||
double | drying_lower_limit, | ||
double * | elem_head, | ||
SVECT2D * | elem_vel, | ||
double | wd_factor, | ||
double | dt_factor, | ||
double * | elem_rhs, | ||
char * | string, | ||
int | DEBUG, | ||
int | DEBUG_LOCAL, | ||
int | wd_flag | ||
) |
Returns the 2D body temporal contributions to the shallow water equations.