REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticSMFlux_Upwelling.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
= 3.14159265359_rt;
3
Real
tdays
=remora.get_t_old(lev)/Real(24.0*60.0*60.0);
4
Real
dstart
=0.0_rt;
5
Real
windamp
;
6
//It's possible these should be set to be nonzero only at the boundaries they affect
7
8
// Don't allow doubly periodic in this case
9
AMREX_ALWAYS_ASSERT
( !
NSPeriodic
|| !
EWPeriodic
);
10
11
// Flow in x-direction (EW):
12
if
(
NSPeriodic
) {
13
mf_sustr.setVal(0.0_rt);
14
}
15
else
if
(
EWPeriodic
) {
16
if
((
tdays
-
dstart
)<=2.0)
17
windamp
=-0.1_rt*Real(sin(
pi
*(
tdays
-
dstart
)/4.0_rt))/Real(m_solverChoice.rho0);
18
else
19
windamp
=-0.1_rt/m_solverChoice.rho0;
20
mf_sustr.setVal(
windamp
);
21
}
22
23
// Flow in y-direction (NS):
24
if
(
NSPeriodic
) {
25
if
((
tdays
-
dstart
)<=2.0)
26
windamp
=-0.1_rt*Real(sin(
pi
*(
tdays
-
dstart
)/4.0_rt))/Real(m_solverChoice.rho0);
27
else
28
windamp
=-0.1_rt/m_solverChoice.rho0;
29
mf_svstr.setVal(
windamp
);
30
}
31
else
if
(
EWPeriodic
) {
32
mf_svstr.setVal(0.0_rt);
33
}
NSPeriodic
bool NSPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:8
EWPeriodic
bool EWPeriodic
Definition
REMORA_InitAnalyticProb_ChannelTest.H:7
tdays
Real tdays
Definition
REMORA_InitAnalyticSMFlux_Upwelling.H:3
windamp
Real windamp
Definition
REMORA_InitAnalyticSMFlux_Upwelling.H:5
dstart
Real dstart
Definition
REMORA_InitAnalyticSMFlux_Upwelling.H:4
pi
Real pi
Definition
REMORA_InitAnalyticSMFlux_Upwelling.H:2
AMREX_ALWAYS_ASSERT
AMREX_ALWAYS_ASSERT(!NSPeriodic||!EWPeriodic)
Source
Prob
REMORA_InitAnalyticSMFlux_Upwelling.H
Generated by
1.9.8