-
Notifications
You must be signed in to change notification settings - Fork 318
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
Problems about the soil gas diffusivity in methane code and nitrification-denitrification mod #1990
Comments
Hi Jinmu, Thanks for this bug report! Seems like some very simple but important fixes. I'll have a go at implementing them sometime in the next few weeks. Do you happen to have done any tests to see what effects these changes cause in simulation results? |
Hi Sam, This mistake pushes more nitrogen loss to N2 when denitrification happens, but not changes the denitrification rate. Because I'm interested in N gas emission, so I guess the old method underestimates the N2O emission of 2 Tg every year. Best, |
Okay, thanks! It's on my list of things to work on; should be sometime in the next few weeks. |
@jinmuluo Could you explain exactly what |
@samsrabin In "hole-in-the-pipe" model also called nitrificaition/denitrification module in CLM, Dr Parton used De/D0 which is a unitless, normalized parameter as its core parameter to calculate the gas ratio, they called it soil gas diffusivity. |
Thanks for the pointers! Indeed, it looks like where |
Well, wait. @jinmuluo, if we want to get diffusivity in terms of m2/s (for outputs only), are the oxygen coefficients the correct ones to use here? |
@samsrabin I guess it's correct to divide the diffus with D0 in nitrification/denitrification module, then the diffus is only related to water information in this module. Every gas has its own diffusivity, if you want to output the NO or N2O's diffusivity, you should change the coefficients. |
Okay, makes sense. Do you happen to know of any studies where we'd be able to find those coefficients for NO or N2O? |
Sorry, I don't know any studies can provided such information. |
Thanks for helping here, @jinmuluo . @samsrabin I'd suggest using the same values as for CH4 here, but noting in the code and a new (low priority) issue that this is a simplifying assumption, which can be addressed with future work. Alternatively, there may be published literature values that make sense to plug in here, likely starting with references from the methane code A quick google search led me here, although I'm not sure the data are readily transferable. One more question: Is this fD0, from Table 2.25.1 in the tech note, or D0 from Table 2.25.2. I'm assuming it's the later, which seems to come from papers focuses on CH4, not N-gasses. |
Hi CTSM community,
I and my advisor have found some potential scientific problems in CLM and we hope to discuss these issues with you here.
(1) The formulation for diffusion appears incorrect in the methane code. This diffusion parameter taken from the methane code: (src/biogeochem/ch4Mod.F90, line 3872) and explained in section 2.25.7.3. of the CLM tech note.
https://escomp.github.io/ctsm-docs/versions/release-clm5.0/html/tech_note/Methane/CLM50_Tech_Note_Methane.html#aqueous-and-gaseous-diffusion
This appears to be coded incorrectly. The diffusion coefficient here is given as a linear combination of two terms weighted by (om_frac) and (1-om_frac) in the equation above. The equations for these terms are correctly given in the tech note.
From the code:
eps=theta_a
fa=theta_a/theta_s
where theta_a is the air-filled pore space and theta_s is the total porosity. The code should be eps**(10./3.) instead of f_a**(10./3.) in the second line. See 2.25.13 in the tech note.
(2) Correction to the nitrification, denitrification code. nitri-denitri code (src/soilbiogeochem/SoilBiogeochemNitrifDenitrifMod.F90, line 283).
There are 2 corrections to how the diffusion is specified here to obtain the correct N2O emissions:
(i) In the Parton formulation it is the normalized diffusion parameterization that is used (see Parsons et al., 1996): D/D_o.
The specification for the diffusion used presently, src/soilbiogeochem/SoilBiogeochemNitrifDenitrifMod.F90, line 283 is taken from the CH4 code. However, the diffusion coefficient is not normalized here as it should be to give D/D_o
Thus, (d_const_g(s,1) + d_const_g(s,2)^t_soisno_c)^1.e-4 should be omitted in the specification for diffusion only in the Nitrif-Denitrif module.
(ii) The remainder of the equation should be corrected as detailed in (1) above in the Nitrif-DenitrifMod.
(3) CLM5 tech note correction. Table 25.2 gives the gas diffusivity in air in units of "m2 s-1". This should be “cm2 s-1”. For example, if the temperature is 273K, the O2 diffusivity in air is around 0.4762 m2 s-1 from the table. Standard values are about 10^-4 smaller. Values of these constants in the code seem to be correct so this only applies to the tech note.
Best,
Jinmu Luo
The text was updated successfully, but these errors were encountered: