Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

slflx_cg_PBL seems empty; possible to output counter-gradient flux?

khartig

Kara
New Member
I am analyzing terms that contribute to the vertical mixing temperature tendency DTV in CESM1-CAM5, and in particular would like to get a measure for the counter-gradient flux of heat / non-local transport. slflx_cg is defined as kvh * cgh, the eddy diffusivity of heat times the counter-gradient term for heat, in the physics source code (vertical_diffusion.F90, line 1109), but the history field slflx_cg_PBL seems to be zero everywhere. So I have two questions:
  • Why is the history field slflx_cg_PBL empty?
  • Is there a way to output or calculate for myself the counter-gradient flux for heat, which is cgh in the source code?
 

cacraig

Cheryl Craig
CSEG and Liaisons
Staff member
Unfortunately, CESM1 is no longer a supported version. I did a search for "sflx_cg_PBL" in the current CAM code and there is no variable with that name.

That said, you can try figuring this out for yourself. In the outfld call for "sflx_cg_PBL", there is a variable that is being written out. You can try doing a Fortran write of that variable to see what the values are.

As for writing out the values for cgh, you can add an appropriate addfld and outfld call for this variable. Note that you then either need to do add an "add_default" or use a fincl to get the variable to actually be written out.
 
Top