-
Notifications
You must be signed in to change notification settings - Fork 10
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
All CO2 fluxes in mol CO2 m-2 s-1 #731
Conversation
@kmdeck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so Y.soilco2.C = units of mol CO2/m^3, microbe source is now in mol CO2/m^3/s, and all respiration rates are in mol CO2/m^2/s?
And then the last ? is regarding how to convert the driver CO2 concentration?
2cedb48
to
56590ed
Compare
e666e1f
to
273a4da
Compare
0a073b2
to
749f6ad
Compare
@@ -60,10 +60,9 @@ function auto_resp_ozark(; | |||
σl = FT(0.05), | |||
μr = FT(1.0), | |||
μs = FT(0.1), | |||
f1 = FT(0.012), | |||
f2 = FT(0.25), | |||
f = FT(0.012), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be Rel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(f
no longer in struct?)
land_model::SoilCanopyModel{FT}, | ||
) where {FT} | ||
if isnothing(out) | ||
return p.soilco2.top_bc .* FT(83.26) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could note that:
"To convert from kg C to mol CO2, we need to multiply by: [3.664 kg CO2/ kg C] x [10^3 g CO2/ kg CO2] x [1 mol CO2/44.009 g CO2] = 83.26 mol CO2/kg C"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically 83.26 is a parameter in ClimaParams. Would it be possible to fetch its value from land_model
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if I should remove it from ClimaParams, as it is just a conversion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that I added but actually we are not using it (except if we do use it here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it makes sense that it should not be a parameter (but there are other constants of nature/conversions in there). I'd remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! looks good.
There was some inconsistencies, as well as some bug in the code, because of sometimes expressing CO2 fluxes in gC m-2 s-1, and sometimes in mol CO2 m-2 s-1. In this PR, we express all CO2 fluxes in mol CO2 m-2 s-1. Note: the parameter "f1" (:mol_CO2_to_kg_C_factor) from AutotrophicRespirationParameters has been removed, and the parameter "f2" (:relative_contribution_factor) renamed to "Rel". This change is also happening in ClimaParams.jl. Co-authored-by: AlexisRenchon <[email protected]> Co-authored-by: kmdeck <[email protected]> Co-authored-by: SBozzolo <[email protected]>
749f6ad
to
c6dea22
Compare
There was some inconsistencies, as well as some bug in the code, because of sometimes expressing CO2 fluxes in gC m-2 s-1, and sometimes in mol CO2 m-2 s-1.
In this PR, we express all CO2 fluxes in mol CO2 m-2 s-1. Note: the parameter "f1" (:mol_CO2_to_kg_C_factor) from AutotrophicRespirationParameters has been removed, and the parameter "f2" (:relative_contribution_factor) renamed to "Rel". This change is also happening in ClimaParams.jl PR #205