[MITgcm-support] online calculation of energy flux
Robert Nazarian
rn2 at Princeton.EDU
Fri Jan 31 13:14:59 EST 2014
Hi Peng,
Yes, I have already derived some equations for calculating the energy flux (but this will be done at every time step and at every grid cell). What I'm trying to do is actually incorporate these calculations into the source code so that the calculations can be done online rather than offline. Is there a straightforward diagnostic that's already written which I can add this to or should I be creating my own diagnostic? If so, which subroutine should it be included in?
Thanks,
Rob
Robert Nazarian
Program in Atmospheric and Oceanic Sciences
Princeton University
rn2 at princeton.edu<mailto:rn2 at princeton.edu>
________________________________
From: Peng Zhan [peng.zhan at kaust.edu.sa]
Sent: Friday, January 31, 2014 1:02 PM
To: mitgcm-support at mitgcm.org
Subject: Re: [MITgcm-support] online calculation of energy flux
Hi Robert,
If I understand correctly for your case, I would suggest you use the following formular:
mean(u'p')=mean(up)-mean(u)mean(p) instead of finding mean(u'p') directly.
Peng
On Fri, Jan 31, 2014 at 7:45 PM, Sonya Legg <sonya.legg at noaa.gov<mailto:sonya.legg at noaa.gov>> wrote:
Hi Robert,
You should state that it's the product u'p' that you want, and you want to do it online so that you can calculate time-averages. Otherwise you might get a response that u is already output, as is p, so why do you need to add anything?
Sonya
On 1/31/2014 11:39 AM, Robert Nazarian wrote:
Hi,
I’m trying to add an online evaluation of u’ and p’ to the source code to calculate the energy flux. Is there a particular diagnostic that would be best to do this in? If not, is there a particular subroutine that’s ideal to write such a diagnostic? Previously, I did these calculations offline but am hoping to incorporate it into the code itself.
Thanks,
Rob
Robert Nazarian
Program in Atmospheric and Oceanic Sciences
Princeton University
rn2 at princeton.edu<mailto:rn2 at princeton.edu>
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mitgcm.org/mailman/listinfo/mitgcm-support
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mitgcm.org/mailman/listinfo/mitgcm-support
--
Peng ZHAN
______________________________
PhD Student
Earth Science & Engineering (ErSE)
King Abdullah University of Science and Technology (KAUST)
Bldg 1, Lv 4, 4700 KAUST, Thuwal 23955-6900, Jeddah, Saudi Arabia
Mobile: +966 544701621
Email: peng.zhan at kaust.edu.sa<mailto:peng.zhan at kaust.edu.sa>
________________________________
This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20140131/33268eaa/attachment.htm>
More information about the MITgcm-support
mailing list