forked from UNC-CECL/CDM_v3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorm.h
65 lines (45 loc) · 1.66 KB
/
storm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************
$Id: flowbeach.h,v 1.5 2004/09/23 12:41:36 schatz Exp $
******************************************************************************/
#ifndef STORM_H
#define STORM_H
#include "globals.h"
#include "func.h"
#include "PTG_FileNames.h"
#include "vec.h"
class dunepar;
class avalanche;
/*! Continuum aproach of sand relaxation by coasts (including coasts over solid substrates) */
class storm : public dunedata
{
public:
// construction
storm(const dunepar& p);
virtual ~storm() {}
void CalcGradUp(TFktScal &h);
void Step(TFktScal &h, TFktScal &overwash, double &m_Tsurge_eff);
virtual int dcrest_ident(TFktScal &h, int y);
virtual double impact(double shoreline, double time, double timestep, TFktScal &h, TFktScal &h_nonerod, TFktScal &overwash );
virtual void stop( double time, double timestep, bool &calc_storm);
virtual void calc( TFktScal &h, TFktScal &overwash );
virtual void save_arrays();
private:
/*! Avalanche relaxation object. */
avalanche *m_avalanche;
TFktScal m_sflux;
TFktScal m_hst;
int m_storm_iter;
double m_Smax;
double m_Sdt;
double m_Q, m_scalefactor, m_shape, m_scalefactor0, m_shore_HMWL, m_watertable, m_surge, m_Tsurge;
double m_slope_storm, m_slope_storm_angle, m_shoreface_slope, m_repose_dyn, Kc, Kb, m_g, R_eff, Cls;
double m_season_scalefactor, m_storm_season_start, m_storm_season_end;
int m_shoreline;
int m_storm_morphodynamics;
int m_storm_seed;
string m_storm_type;
int m_tmax, m_dtmax;
double surge[5000];
int stormindex;
};
#endif