-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tmax in icepack_itd code #453
Comments
You could also try asking this question here, https://bb.cgd.ucar.edu/cesm/forums/cice-consortium.146/ |
I think the units are OK, as the comment above indicates that Icepack/columnphysics/icepack_therm_vertical.F90 Lines 752 to 763 in f5e093f
so this gets rid of your remaining meter and so Tmax has units of degrees. I think that the
|
I see you are in fact referring to Icepack/columnphysics/icepack_itd.F90 Lines 1513 to 1521 in f5e093f
That code seems to do the same thing as in |
Thank you Phil, I thought about puny as a very small volume to make the units work but was not sure if this was correct. Your explanation makes sense. |
I'm still struggling with zqsn units in icepack_itd.F90. In the code, zqsn is defined as J/m2 (snow layer enthalpy) - units used in CICE4. For Tmax the formula seems to be ok, assuming puny = [m3] (a tiny volume of snow) and using rnslyr/vsnon to convert J/m2 --> J/m3 (internal energy of a snow layer). Next, the code computes snow T using zqsn: Here, units of zqsn should be J/m3 not J/m2 (Lfresh = [J/kg], rhos = [kg/m3], cp_ice = [J/(kg * degree)]). I thought that zqsn should be J/m3 - units for internal snow energy (that's what is saved in restart) and I could not find in the code, where initial energy is converted to J/m2 (enthalpy) before being passed to icepack_itd. In zap_snow subroutine, trcrn is converted to snow enthalpy (J/m2): What am I missing? Thank you! |
Hi Dmitry, |
Hi Elizabeth, thank you for clarification and confirming the units of the qsno (zqsn) tracer. The code does make sense for J/m3 units. |
Hello,
While looking into the icepack_itd.F90 code, I'm having trouble to get right units in the line whereTmax is computed from snow enthalpy:
For Tmax = -zqsn * puny * rnslyr / (rhos* cp_ice* vsnon(n))
We have: zqsn = J/m3, puny, rnslyr - no units
rhos = kg/m3
cp_ice = J/kg/degree
vsnon = m3/m2 = m
This gives Tmax = [ J/m3 / J/(degree *m2) ] = degree/m
I wonder if there is a bug in this formula and the extra term (rnslyr/vsnon(n)) was copied mistakenly from the formula that converts CICE4 snow enthalpy (J/m2) to CICE6 that is:
trcrn(i,j,nt_qsno+k-1,n) = &
min(esnon(i,j,slyr1(n)+k-1)rnslyr/vsnon(i,j,n),-rhosLfresh)
If rnslyr/vsnon(n) is removed from the equation, the units work fine:
Tmax * rhos * cp_ice = -zqsn ==> J/m3 = J/m3
What am I missing?
Thank you
The text was updated successfully, but these errors were encountered: