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 = 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
7 //It's possible these should be set to be nonzero only at the boundaries they affect
8 if (NSPeriodic) {
9 mf_sustr.setVal(0.0_rt);
10 }
11 else if(EWPeriodic) {
12 if ((tdays-dstart)<=2.0)
13 windamp=-0.1_rt*Real(sin(pi*(tdays-dstart)/4.0_rt))/Real(m_solverChoice.rho0);
14 else
15 windamp=-0.1_rt/m_solverChoice.rho0;
16 mf_sustr.setVal(windamp);
17 }
18 if(NSPeriodic) {
19 if ((tdays-dstart)<=2.0)
20 windamp=-0.1_rt*Real(sin(pi*(tdays-dstart)/4.0_rt))/Real(m_solverChoice.rho0);
21 else
22 windamp=-0.1_rt/m_solverChoice.rho0;
23 mf_svstr.setVal(windamp);
24 }
25 else if(EWPeriodic) {
26 mf_svstr.setVal(0.0_rt);
27 }