Diagnostic terms

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
caking
Posts: 3
Joined: Mon Dec 15, 2014 10:08 pm
Location: University of Rhode Island

Diagnostic terms

#1 Unread post by caking »

Hello,
I am trying to calculate the diagnostic terms for salt and temperature by hand such as salt_xadv and salt_yadv. Can anyone point me to where in the ROMS code the diagnostic terms are being calculated? I am close to finding the solutions by using the same time step with the average output but I think I am calculating the m and n term incorrectly in the volume average estimates. The equations that are listed on the ROMS wiki page do not indicate the exactly how to calculate the m and values listed below

https://www.myroms.org/wiki/Numerical_S ... _Technique

Thank you for your help.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Diagnostic terms

#2 Unread post by kate »

You can look in step3d_t.F for DIAGNOSTICS_TS which should lead you to the advection computations.

m and n are pm and pn in the code, equal to 1/dx and 1/dy, respectively. pm(i,j) would be 1 over the distance from the u-point at (i,j) to the u-point at (i+1,j).

Post Reply