AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
no_resid.c File Reference
#include "adh.h"

Functions

int no_resid (SMODEL_SUPER *mod, double *elem_rhs, int ie, double perturbation, int perturb_node, int perturb_var, int perturb_sign, int DEBUG)
 Performs any preprocessing for dependent variables in SW2 equations. For now this mainly is updating the wet/dry flags and the dirichlet conditions for dry elements. More...
 

Detailed Description

This file is the init routine for sw2 which will be called right before each Newton solve

Function Documentation

◆ no_resid()

int no_resid ( SMODEL_SUPER mod,
double *  elem_rhs,
int  ie,
double  perturbation,
int  perturb_node,
int  perturb_var,
int  perturb_sign,
int  DEBUG 
)

Performs any preprocessing for dependent variables in SW2 equations. For now this mainly is updating the wet/dry flags and the dirichlet conditions for dry elements.

Author
Mark Loveland, Ph.D.
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]sm(SMODEL_SUPER *) a super model
Note
CJT:: Label wetting and drying AND neighboring elements as wet/dry elements
CJT:: flag = 0 :: fully wet || flag = 1 :: some nodes are dry || flag = 2 :: all nodes dry