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