-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add a table of physical constants to the user guide #326
Add a table of physical constants to the user guide #326
Conversation
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.
Not approving to prevent accidental merge until we settle on the density of ice value.
@har917 For the density of ice, should we take advantage of this PR to settle on one value? Here is what we have so far:
Looking at Wikipedia, 917 kg/m3 is the closest value to the density of ice. And since we are going to use this value in ACCESS, it seems a good value to settle on. One issue we have with offline CABLE is that the soil properties are given in the gridinfo file and their correctness depends on the file creator's checking. But we can at least make sure the values we provide in the code and the example namelist are agreed on. |
It would be a good idea I think - but I have no particular preference either way (as long as it's reasonable - there's a whole stack of processes that can cause variations to that value, what we need is consistency through the code base). To add to the confusion - SLI uses 920. (GW seems to inherit the On the ancillary issue - we are reading in soil type. Can't we - as part of @rkutteh issue - say 'where a land point has been determined to be of ice soil type - then set all the soil parameters to be that of ice as per the constants module'? |
@har917 If you don't mind about the value, I would move to 917.
Yes we can add that to #280 Can we deal with SLI later? It's already introducing its own set of numbers and there is more than the ice density that is different there. |
Absolutely yes - I only went there as I wanted to check on the other soil models (SLI and GW). Ensuring consistency with SLI constants will come up earlier than I suspect you think - since it's part of BIOS, |
That's what we have already put in there, as in:
where density_ice and csice are from cable_phys_constants_mod.F90 @ccarouge @har917 are you happy then if I go ahead and set density_ice = 917 in cable_phys_constants_mod.F90 and soilin%rhosoil to 917 for 'Permanent ice' in cable_soilparm.nml ? We need to be careful also about adjusting the numerical values of parameters like cs_rho_ice ! heat capacity * density ice |
No, it isn't. This only sets the values for "new" icy soils. The idea would be if the soil type is given as ice in one of the input file, then overwrite the associated parameter values read in the file with the ones in the physical constants. All of them, not just the new ones we create with the check on the veg type. |
@rkutteh Please go ahead and update the density and cs_rho_ice values. |
Co-authored-by: Claire Carouge <ccarouge@users.noreply.github.com>
OK, that's easy... |
Set density_ice = 917 kg/m3 in cable_phys_constants_mod.F90 and soilin%rhosoil to 917 kg/m3 for 'Permanent ice' in cable_soilparm.nml, in connection to #326 <!-- readthedocs-preview cable start --> ---- 📚 Documentation preview 📚: https://cable--332.org.readthedocs.build/en/332/ <!-- readthedocs-preview cable end -->
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.
This is all good.
Testing
Using benchcab, we see identical results for both the fluxsite tests and the spatial configuration with this branch and the main branch. This seems to indicate no to minimal impact on the CABLE results in general.
The CI is failing because of a known issue. Let's wait a few days to see if this gets resolved before merging. |
CABLE
Description
Added a table of physical constants and a table of mathematical constants to the user guide. Additional tables of constants can be added following the same pattern.
Fixed missing/incorrect units in code and documentation.
It might be a good time at this stage to decide on the numerical value to use for the ice density: 910 from cable_soilparm.nml OR 921 from cable_phys_constants_mod.F90 ? Interestingly another well known code uses 917.
📚 Documentation preview 📚: https://cable--326.org.readthedocs.build/en/326/