KE budget with open boundary condition #5001
Replies: 2 comments 10 replies
-
|
Oh, one additional thing is that here I use an non-uniform grid in z direction, with the VerticallyImplicitTimeDiscretization. When setting up the NonhydrostaticModel, the code shows that "Implicit-explicit time-stepping with RungeKutta3TimeStepper is not tested". I'm not sure whether this is a big issue? The code runs much slower without the VerticallyImplicitTimeDiscretization method. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is really a question for Oceanostics. If you are interested in the entire budget though, you may be doing more work than needed? You only need to compute the dot product of I'm confused that the pressure and advection terms don't integrate to zero. Are they formulated in divergence form and at the current staggered grid location? I've commented on this before and have been reassured that it's not a big deal, but I'm still confused here about whether or not this method of computing the KE budget respects the time discretization. For example, you're using vertically-implicit time discretization for the diffusion term. This has implications for what the term looks like when you formulate the discrete-in-time KE budget. Also does the Just to illustrate what I mean, consider a discrete time equation for a forward Euler time-stepping method: To find an equation for the variance I think Oceanostics will make an approximation perhaps? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hi Oceananiagns users,
I was playing with the OpenBoundaryCondition in a 2D box. I considered an inflow from a orifice at the bottom and a outflow at the top, both using a Gauss-like profile (To be honset I am not sure whether the outflow BC is correct or not. I was thinking that maybe I need to keep the mass conservation).
I am having trouble to close the KE budget using Oceanostic. I haven't studied Oceanostics in depth yet. But if i am getting this right, the KE could be written as:$u_j \partial_t u_j + u_j \partial_i(u_i u_j) = -u_j \partial_j P + u_j \partial_i \tau_{ij}$
$∫fnu - ∫fp - ∫fu \approx 0$ . However, the result is wrong for now (pls see the fig).
, for my system with no body force. Thus in the steady state, I should have the intergal outputs satisfying (my code attached below):
I am guessing I make some mistake with the quantities computed from Oceanostics (sign error??). I would greatly appreciate it if someone could point out! :)
Btw, Oceanostic can also compute a KineticEnergyTendency$u\cdot G$ . Is $\int u\cdot G = \int u_j \partial_i \tau_{ij} - \int u_j \partial_i(u_i u_j)$ ?
Beta Was this translation helpful? Give feedback.
All reactions