AdH Kraken
0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
ssw.h
1
#ifndef H_SSW_
2
#define H_SSW_
3
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/
4
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/
5
typedef
struct
{
6
7
// node and element based variables
8
int
nsw_nodes;
9
int
nsw_elems;
10
SDVAR
dvar;
11
12
// uniform surface water parameters (read from model parameter file)
13
double
drying_lower_limit;
14
double
drying_upper_limit;
15
double
wd_lower_tol;
16
double
wd_upper_tol;
17
double
wd_rate_lower_tol;
18
double
wd_rate_upper_tol;
19
double
viscosity;
20
double
manning_units_constant;
21
double
density;
22
double
tau_pg;
23
// surface water flags (set defaults)
24
int
elem_rhs_realloc;
25
26
//doesnt fit in dvar, will use dvar stuff tho (map)
27
double
**elem_rhs_supg_dacont;
//for SW3 only
28
double
**elem_rhs_supg_cont;
// for SW3 only
29
double
**elem_rhs_dacont_extra_terms;
// for SW2 only, FLIPPING ORDER FOR EFFICIENCY [nsw_elems][nnode_on_elem]
30
31
//stuff to store the DVAR column indices
32
//nodal variable types
33
// vertical grid speeds
34
int
GS;
// 0
35
int
GS_OLD;
//1
36
// bed displacement from sediment transport
37
int
BED_DPL;
// 2
38
int
BED_DPL_OLD;
// 3
39
int
BED_DPL_OLDER;
// 4
40
// pressure and pressure pertubations
41
int
PRS;
// 5
42
int
PRS_PLUS;
// 6
43
int
PRS_MINUS;
// 7
44
//other dependent variables
45
int
DENSITY;
// 8 // density
46
int
DPL_PERTURBATION;
// 9 // displacement perturbation
47
int
CONT_ERROR;
// 10 // nodal continuity errors
48
int
VERTICAL_NODE_FLUX;
// 11
49
int
HYD_VISCOSITY;
// 12
50
int
TRN;
// 13
51
//must deconstruct into double fields
52
int
GRAD_BED_X;
// 14
53
int
GRAD_BED_Y;
// 15 // bed gradient
54
//tangent vector
55
int
TAN_VEC_X;
// 16
56
int
TAN_VEC_Y;
// 17
57
//SVECT2D tanvec;
58
int
BED_ELEVATION;
// 18 // node.z + bed displacement from sediment
59
int
SURFACE_VEL_X;
// 19 //SVECT2D surface_vel;
60
int
SURFACE_VEL_Y;
// 20
61
int
BOTTOM_VEL_X;
// 21
62
int
BOTTOM_VEL_Y;
// 22 //SVECT2D bottom_vel;
63
// wind and wave stresses
64
//not just doubles, need to think about this
65
//SWIND winds;
66
//SWAVE waves;
67
int
WIND_STRESS_X;
// 23
68
int
WIND_STRESS_Y;
// 24
69
int
WAVE_RADS_XX;
// 25
70
int
WAVE_RADS_XY;
// 26
71
int
WAVE_RADS_YY;
// 27
72
int
WAVE_STRESS_X;
// 28
73
int
WAVE_STRESS_Y;
// 29
74
75
//elemental variable types (doubles), none so far
76
77
//elemental variable types (integers)
78
int
WD_FLAG;
// 0
79
80
}
SSW
;
81
82
void
ssw_alloc_init(
SSW
*sw);
83
#endif
84
SDVAR
Definition:
sdvar.h:15
SSW
Definition:
ssw.h:5
structs
ssw
ssw.h
Generated on Thu Apr 3 2025 22:45:55 for AdH Kraken by
1.9.5