-
Notifications
You must be signed in to change notification settings - Fork 7
/
shear.h
70 lines (51 loc) · 1.79 KB
/
shear.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
65
66
67
68
69
70
#ifndef __SHEAR_H__
#define __SHEAR_H__
#include "vec.h"
#include "func.h"
#include "globals.h"
class sepbubble;
////////////////////////////////////////////////////////////
// shear
//
class shear : public dunedata
{
public:
shear(const dunepar& P);
virtual ~shear();
virtual double Calc(const TFktScal& h, TFktVec& tau);
virtual double Calc(const TFktScal& h, TFktVec& tau, const TFktScal& rho_veget);
//virtual bool Save() { return false; }
virtual void save_arrays();
void set_ustar( double u_star );
protected:
virtual double Calc(const TFktScal& h, TFktVec& tau, const TFktScal *rho_veget);
virtual double CalcPertTau(TFktScal& h, TFktVec& tau) = 0;
//virtual void CalcPertTau(const TFktScal& h, const TFktVec *veget, TFktVec& tau) = 0;
/*! The shear velocity on a flat plain corresponding to the current wind
speed. */
double m_u_star;
/*! The unperturbed shear stress corresponding to m_u_star. */
double m_dTau0;
private:
TFktScal m_stall;
TFktScal m_rho_veget;
TFktScal m_rho_veget_smooth;
TFktScal m_hSepBub;
TFktScal m_hSepBub_aux;
sepbubble* m_pSepBub;
TFktVec m_TauP;
bool m_bTauYZero;
double m_bTauY;
bool m_bSepbub;
/*! This seems to give the decrease in shear stress after the brink of the
slip face. That would determine the length of the region after the brink
where the sand blown over the brink is deposited. This variable is given
by the parameter sepbub.tau. */
double m_tau_sepbub;
bool m_calc_veget, m_addsealevel;
double m_sealevel;
double m_rhofactor, m_veget_m, m_veget_beta_sigma, h_limit;
// bool m_calc_veget;
// double m_rhofactor, m_veget_m, m_veget_beta_sigma, h_limit;
};
#endif