-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathshear_hlr.h
56 lines (41 loc) · 1.2 KB
/
shear_hlr.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
/******************************************************************************
$Id: shear_hlr.h,v 1.20 2005/07/01 16:26:15 duran Exp $
******************************************************************************/
#ifndef __SHEAR_HLR__
#define __SHEAR_HLR__
#include "globals.h"
#include "vec.h"
#include "func.h"
#include "shear.h"
#include "rfftw12d.h"
class sepbubble;
////////////////////////////////////////////////////////////
// CShearHLR
//
class shearHLR : public shear
{
public:
shearHLR(const dunepar& P);
virtual ~shearHLR();
protected:
virtual double CalcPertTau(TFktScal& h, TFktVec& tau);
private:
double innerlayer_height(double factor);
double middlelayer_height(double factor);
double J(double p, double p0, double dp);
double m_z0;
/*! 2 k_cutoff^2 for smoothing of h (zero means no smoothing) */
double m_h_cut;
int iNx, iNy;
/*! x size of the FFT matrices (larger than original matrices) */
int m_fftxsize;
/*! y size of the FFT matrices (larger than original matrices) */
int m_fftysize;
/*! grid spacing in position space */
double m_dx;
/*! wave number discretisation */
double m_dkx, m_dky;
/*! 2k^2 */
double m_inner_const;
};
#endif