REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H
Go to the documentation of this file.
1
//If we had wind stress and bottom stress we would need to set these:
2
Real
pi
= Real(3.14159265359);
3
Real
tdays
=
remora
.get_t_old(
lev
)/(Real(24.0)*Real(60.0)*Real(60.0));
4
//this is a hack because time is off by dt. this needs to be fixed for non-fixed dt
5
Real
rho0
=
m_solverChoice
.rho0;
6
Real
windamp
;
7
Real
dstart
=
zero
;
8
//It's possible these should be set to be nonzero only at the boundaries they affect
9
if
(
NSPeriodic
) {
10
mf_sustr
.setVal(
zero
);
11
}
12
else
if
(
EWPeriodic
) {
13
if
((
tdays
-
dstart
)<=
two
)
14
windamp
=Real(-0.1)*
sin
(
pi
*(
tdays
-
dstart
)/Real(4.0))/
rho0
;
15
else
16
windamp
=Real(-0.1)/
rho0
;
17
mf_sustr
.setVal(
windamp
);
18
}
19
if
(
NSPeriodic
) {
20
if
((
tdays
-
dstart
)<=
two
)
21
windamp
=Real(-0.1)*
sin
(
pi
*(
tdays
-
dstart
)/Real(4.0))/
rho0
;
22
else
23
windamp
=Real(-0.1)/
rho0
;
24
mf_svstr
.setVal(
windamp
);
25
}
26
else
if
(
EWPeriodic
) {
27
mf_svstr
.setVal(
zero
);
28
}
29
two
constexpr amrex::Real two
Definition
REMORA_Constants.H:8
zero
constexpr amrex::Real zero
Definition
REMORA_Constants.H:6
setVal
mf_h setVal(geomdata.ProbHi(2))
NSPeriodic
bool NSPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:12
EWPeriodic
bool EWPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:11
tdays
Real tdays
Definition
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H:3
windamp
Real windamp
Definition
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H:6
dstart
Real dstart
Definition
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H:7
pi
Real pi
Definition
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H:2
rho0
Real rho0
Definition
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H:5
Source
Prob
REMORA_InitAnalyticSMFlux_ParticleAdvectionFlat.H
Generated by
1.9.8