REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_InitAnalyticSMFlux_ParticlesOverSeamount.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
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
constexpr amrex::Real two
constexpr amrex::Real zero