REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticSMFlux_UpwellingML.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 //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):
13 if ((tdays-dstart)<=two)
14 windamp=Real(-0.1)*Real(sin(pi*(tdays-dstart)/Real(4.0)))/Real(m_solverChoice.rho0);
15 else
16 windamp=Real(-0.1)/m_solverChoice.rho0;
17 mf_sustr.setVal(windamp);
18 } else if (NSPeriodic) {
19 mf_sustr.setVal(zero);
20 }
21
22 // Flow in y-direction (NS):
23 if(EWPeriodic) {
24 mf_svstr.setVal(zero);
25 } else if (NSPeriodic) {
26 if ((tdays-dstart)<=two)
27 windamp=Real(-0.1)*Real(sin(pi*(tdays-dstart)/Real(4.0)))/Real(m_solverChoice.rho0);
28 else
29 windamp=Real(-0.1)/m_solverChoice.rho0;
30 mf_svstr.setVal(windamp);
31 }
32 mf_sustr.setVal(zero);
33 mf_svstr.setVal(zero);
constexpr amrex::Real two
constexpr amrex::Real zero