Recently there was a post about separating the horizontal advection of momentum into the zeta and eta components. I am trying to do the same thing for the momentum equations as well as for the tracer equations. The code compiles, runs and the new variables u_xadv, u_yadv, ubar_xadv........,s_xadv, s_yadv,....
are created in the diagnostic file. It looks like the separation for tracers was done successfully since s_hadv=s_xadv+s_yadvv (same for temperature). But the eta and zeta components of momentum do not add up to the total horizontal advection. My understanding is that ROMS calculate the horizontal momentum advection in generalized curvilinear coordinates as
What I was trying to do in the code was to calculate the two components as
mometum zeta advection =
momentum eta advection =
Is this correct?
if someone has any thoughts about this I will appreciate it.
separating hadv term into zeta and eta components
- arango
- Site Admin
- Posts: 1367
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: separating hadv term into zeta and eta components
Yes, this is correct. This term is derived from alternative version of the nonlinear equations that includes absolute vorticity (planetary plus relative) in the advection term. I updated the code to include the ξ- and η-components of horizontal advection, viscosity and diffusion. See following ticket for details.