REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticSMFlux_DoublyPeriodic.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
Real
dstart
=
zero
;
5
Real
windamp
;
6
7
//It's possible these should be set to be nonzero only at the boundaries they affect
8
if
(
NSPeriodic
) {
9
mf_sustr.setVal(
zero
);
10
}
11
else
if
(
EWPeriodic
) {
12
if
((
tdays
-
dstart
)<=
two
)
13
windamp
=Real(-0.1)*Real(sin(
pi
*(
tdays
-
dstart
)/Real(4.0)))/Real(m_solverChoice.rho0);
14
else
15
windamp
=Real(-0.1)/m_solverChoice.rho0;
16
mf_sustr.setVal(
windamp
);
17
}
18
if
(
NSPeriodic
) {
19
if
((
tdays
-
dstart
)<=
two
)
20
windamp
=Real(-0.1)*Real(sin(
pi
*(
tdays
-
dstart
)/Real(4.0)))/Real(m_solverChoice.rho0);
21
else
22
windamp
=Real(-0.1)/m_solverChoice.rho0;
23
mf_svstr.setVal(
windamp
);
24
}
25
else
if
(
EWPeriodic
) {
26
mf_svstr.setVal(
zero
);
27
}
two
constexpr amrex::Real two
Definition
REMORA_Constants.H:8
zero
constexpr amrex::Real zero
Definition
REMORA_Constants.H:6
NSPeriodic
bool NSPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:8
EWPeriodic
bool EWPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:7
tdays
Real tdays
Definition
REMORA_InitAnalyticSMFlux_DoublyPeriodic.H:3
windamp
Real windamp
Definition
REMORA_InitAnalyticSMFlux_DoublyPeriodic.H:5
dstart
Real dstart
Definition
REMORA_InitAnalyticSMFlux_DoublyPeriodic.H:4
pi
Real pi
Definition
REMORA_InitAnalyticSMFlux_DoublyPeriodic.H:2
Source
Prob
REMORA_InitAnalyticSMFlux_DoublyPeriodic.H
Generated by
1.9.8