wiki:DevelopmentActivities/ORCHIDEE-CNP/TechnicalMods

Version 1 (modified by dgoll, 8 years ago) (diff)

--

1. The modularisation of code used by nitrogen and phosphorus routines

There are aspects which the nutrient cycles have in common, for example root uptake kinetics, stoichiometric considerations, etc. To avoid the risks of introducing inconsistencies and reduce redundant code, I introduced the following subroutines. All subroutines are in stomate_phosphorus.f90.

1.1 root_conductivity

This subroutine calculates the uptake capacity of N & P per mass root according to the uptake kinetics of ammonia and nitrate used in OCN (Zaehle & Friend, 2010).

1.2 f_XY_plant

This subroutine calculates the scaling functions based on the stoichiometric ratio of labile plant tissue (reserve, labile and leaf) which are used to scale root uptake, biological N2 fixation, and biochemical mineralization. It currently supports scaling functions based on the P-to-N ratio, N-to-C ratio and P-to-C ratio. All other combinations will cause a 'STOP', but could be easily implemented if needed.

2. The analytical spinup of the biogeochemical cycles

It is a bit tricky to figure out how to equilibrate the biogeochemical cycles in an efficient way. This site deals with the simulation setup: https://forge.ipsl.jussieu.fr/orchidee/wiki/DevelopmentActivities/ORCHIDEE-CNP/spinup

Here I just list modifications I use currently. This might change.

Avoid that immobilisation demand exceeds mineral nutrient supply

During the an analytic spinup cycle the immobilisation demand can exceed the mineral nutrient supply (soil_n_min or soil_p_min). In such a case, we have to add artificially the needed amount of nutrients to the supply. Every time it is needed to add nutrients we do it during spinup.

2.2 prescribed N inputs from BNF during the spinup

The biological fixation of N2 from the atmosphere is computed as a function of NPP and plant C:N:P stoichiometry. During the spinup large amounts of organic matter accumulate which is connected with a high immobilisation flux. We thus must ensure that the N inputs are rather high and constant in time. Therefore we read BNF rates in from a file rather than computing them dynamically.

2.3 Spin up of soil CNP stoichiometry

It was more like a bugfix. The running window of the average of CN_som_litter_longterm should be limited to a given period not to "unlimited" for the case you want to run long spin up cycles (spinup_period=50yr).

TODO: It would be good to have an automatized test if the mineral N & P cycles are in equilibrium comparable like it is done with the C pools.

Attachments (1)

Download all attachments as: .zip