16#ifndef LD_ROOTSYSTEM_H_
17#define LD_ROOTSYSTEM_H_
19#include "state/mbe_state.h"
20#include "physiology/ld_plantfunctions.h"
42 virtual void reset( MoBiLE_Plant *) = 0;
50 double _max_rooting_depth = invalid_dbl) = 0;
83 ldndc::growable_array < BaseRootSystemDNDC*, 1000, 1 > & ,
93 lvector_t< double > &) = 0;
102 lvector_t< double > ) = 0;
129 lvector_t< double > ) = 0;
144 virtual lvector_t< double >
151 virtual lvector_t< double >
158 virtual lvector_t< double >
160 MoBiLE_Plant * ) = 0;
166 virtual lvector_t< double >
168 MoBiLE_Plant * ) = 0;
178 MoBiLE_Plant * ) = 0;
187 unsigned int &_sl_min_no_roots,
188 double const _dt_per_day,
189 MoBiLE_Plant*
const _p) = 0;
200 lvector_t< double > _no3_sl,
201 lvector_t< double > _no3_uptake_sl,
202 lvector_t< double > _nh4_sl,
203 lvector_t< double > _nh4_uptake_sl,
204 lvector_t< double > _don_sl,
205 lvector_t< double > _don_uptake_sl,
206 lvector_t< double > _temp_sl,
207 MoBiLE_Plant * ) = 0;
228 substate_soilchemistry_t &
sc_;
230 substate_microclimate_t &
mc_;
232 substate_physiology_t &
ph_;
234 substate_watercycle_t &
wc_;
238 void reset( MoBiLE_Plant *);
242 double,
double _max_rooting_depth = invalid_dbl);
263 unsigned int nb_layers);
277 unsigned int nb_layers);
283 ldndc::growable_array < BaseRootSystemDNDC*, 1000, 1 > &,
288 lvector_t< double > &);
298 lvector_t< double > );
307 lvector_t< double > );
342 unsigned int &_sl_min_no_roots,
343 double const _dt_per_day,
344 MoBiLE_Plant*
const _p);
356 lvector_t< double > _no3_sl,
357 lvector_t< double > _no3_uptake_sl,
358 lvector_t< double > _nh4_sl,
359 lvector_t< double > _nh4_uptake_sl,
360 lvector_t< double > _don_sl,
361 lvector_t< double > _don_uptake_sl,
362 lvector_t< double > _temp_sl,
Spatially explicit groundwater model.
Definition airchemistryput.h:21
Interface of the fine root system of a plant: rooting depth, distribution of fine root mass and lengt...
Definition ld_rootsystem.h:34
virtual void reduce_root_system(unsigned int &, MoBiLE_Plant *, double)=0
Removes root mass uniformly from all layers; the distribution is kept, root length is reduced.
virtual void update_roots_static(const double, unsigned int &, MoBiLE_Plant *, ldndc::growable_array< BaseRootSystemDNDC *, 1000, 1 > &, double)=0
Root growth of one time step, static approach (Static root growth model).
virtual void specific_root_length(unsigned int const &, MoBiLE_Plant *, lvector_t< double > &)=0
Specific root length of every rooted layer (Root length and density).
virtual void update_rootlength(unsigned int &, MoBiLE_Plant *, lvector_t< double >)=0
Root length change for root mass changes of individual layers (before the mass is changed).
virtual void update_rootlength(unsigned int &, MoBiLE_Plant *, double)=0
Root length change for a root mass change of the whole root system (before the mass is changed).
virtual void reset(MoBiLE_Plant *)=0
Resets rooting depth, fine root mass and fine root distribution of a plant.
virtual void set_rooting_depth(unsigned int &, MoBiLE_Plant *, double, double _max_rooting_depth=invalid_dbl)=0
Sets the rooting depth (bounded by a maximum or ZRTMC) and the number of rooted layers.
virtual void update_rooting_depth(const double, double &, unsigned int &, MoBiLE_Plant *)=0
Increases the rooting depth by the restricted target increment and updates the number of rooted layer...
virtual void nitrogen_uptake(unsigned int _deepest_rooted_layer, double &n_plant, double n_opt, double _fts_tot, lvector_t< double > _no3_sl, lvector_t< double > _no3_uptake_sl, lvector_t< double > _nh4_sl, lvector_t< double > _nh4_uptake_sl, lvector_t< double > _don_sl, lvector_t< double > _don_uptake_sl, lvector_t< double > _temp_sl, MoBiLE_Plant *)=0
Uptake of NH4, NO3 and DON from the rooted layers (Nitrogen uptake).
virtual void update_roots_dynamic(const double, unsigned int &, MoBiLE_Plant *, double)=0
Root growth of one time step, dynamic approach (Dynamic root growth model).
virtual void update_root_fraction_exponential(double, unsigned int, double, MoBiLE_Plant *)=0
Updates the fine root distribution with the exponential shape (Exponential root distribution).
virtual void reduce_root_system(unsigned int &, MoBiLE_Plant *, lvector_t< double >)=0
Removes root mass from individual layers; root length, total mass and distribution are updated.
virtual lvector_t< double > root_restrictions_soil_strength(unsigned int)=0
Root growth restriction by soil strength (bulk density, water content) for every layer [0-1].
virtual lvector_t< double > root_restrictions_aeration(unsigned int, MoBiLE_Plant *)=0
Root growth restriction by oxygen shortage (hypoxia) for every layer [0-1].
virtual lvector_t< double > root_restrictions_temperature(unsigned int, MoBiLE_Plant *)=0
Root growth restriction by soil temperature for every layer [0-1].
virtual void update_root_fraction_sigmoid(double, unsigned int, double, double, double, double, MoBiLE_Plant *)=0
Updates the fine root distribution with the sigmoid shape (Sigmoid root distribution).
virtual void target_rooting_depth_increase(double &_rooting_depth_increase, unsigned int &_sl_min_no_roots, double const _dt_per_day, MoBiLE_Plant *const _p)=0
Target increase of the rooting depth under optimum conditions (Target rooting depth).
virtual lvector_t< double > root_restrictions_coarse_fragments(unsigned int)=0
Root growth restriction by coarse fragments (stones) for every layer [0-1].
void target_rooting_depth_increase(double &_rooting_depth_increase, unsigned int &_sl_min_no_roots, double const _dt_per_day, MoBiLE_Plant *const _p)
Target increase of the rooting depth under optimum conditions (Target rooting depth).
Definition ld_rootsystem.cpp:554
void nitrogen_uptake(unsigned int _deepest_rooted_layer, double &n_plant, double n_opt, double _fts_tot, lvector_t< double > _no3_sl, lvector_t< double > _no3_uptake_sl, lvector_t< double > _nh4_sl, lvector_t< double > _nh4_uptake_sl, lvector_t< double > _don_sl, lvector_t< double > _don_uptake_sl, lvector_t< double > _temp_sl, MoBiLE_Plant *)
Uptake of NH4, NO3 and DON from the rooted layers (Nitrogen uptake).
Definition ld_rootsystem.cpp:1360
input_class_soillayers_t const * m_soillayers
soil layer input (number of layers)
Definition ld_rootsystem.h:223
void set_rooting_depth(unsigned int &, MoBiLE_Plant *, double, double _max_rooting_depth=invalid_dbl)
Sets the rooting depth, limited by a given maximum or, if none is given, by the species parameter ZRT...
Definition ld_rootsystem.cpp:658
substate_microclimate_t & mc_
microclimate state (soil temperature)
Definition ld_rootsystem.h:230
unsigned int first_layer_below(double) const
Number of rooted soil layers for a given rooting depth [m].
Definition ld_rootsystem.cpp:605
lvector_t< double > root_relative_water_content(unsigned int)
Relative water content between wilting point and field capacity for every layer [0-1].
Definition ld_rootsystem.cpp:826
RootSystemDNDC(MoBiLE_State *, cbm::io_kcomm_t *)
Connects the root system to the model state (soil, microclimate, water, vegetation).
Definition ld_rootsystem.cpp:56
void update_roots_dynamic(const double, unsigned int &, MoBiLE_Plant *, double)
Root growth of one time step with the dynamic approach (Dynamic root growth model).
Definition ld_rootsystem.cpp:246
void update_root_fraction_sigmoid(double, unsigned int, double, double, double, double, MoBiLE_Plant *)
Updates the fine root distribution of a plant with the sigmoid shape (Sigmoid root distribution).
Definition ld_rootsystem.cpp:991
void update_roots_static(const double, unsigned int &, MoBiLE_Plant *, ldndc::growable_array< BaseRootSystemDNDC *, 1000, 1 > &, double)
Root growth of one time step with the static approach (Static root growth model).
Definition ld_rootsystem.cpp:126
void update_rootlength(unsigned int &, MoBiLE_Plant *, double)
Root length change for a root mass change of the whole root system, which is distributed over the lay...
Definition ld_rootsystem.cpp:1219
lvector_t< double > root_restrictions_soil_strength(unsigned int)
Root growth restriction by soil strength for every layer (Root growth restrictions).
Definition ld_rootsystem.cpp:765
void specific_root_length(unsigned int const &, MoBiLE_Plant *, lvector_t< double > &)
Specific root length of every evaluated layer (Root length and density).
Definition ld_rootsystem.cpp:1192
lvector_t< double > root_restrictions_coarse_fragments(unsigned int)
Root growth restriction by coarse fragments (stones) for every layer (Root growth restrictions).
Definition ld_rootsystem.cpp:705
lvector_t< double > root_restrictions_bulk_density(unsigned int)
Bulk density part of the soil strength restriction for every layer [0-1].
Definition ld_rootsystem.cpp:791
MoBiLE_PlantVegetation * m_veg
vegetation
Definition ld_rootsystem.h:236
void reduce_root_system(unsigned int &, MoBiLE_Plant *, double)
Removes root mass uniformly from all layers (respiration, exudation); the root distribution stays the...
Definition ld_rootsystem.cpp:1284
lvector_t< double > root_restrictions_temperature(unsigned int, MoBiLE_Plant *)
Root growth restriction by soil temperature for every layer (Root growth restrictions).
Definition ld_rootsystem.cpp:915
void reset(MoBiLE_Plant *)
Resets rooting depth, fine root mass and the fine root distribution across soil layers of a plant to ...
Definition ld_rootsystem.cpp:81
void update_root_fraction_exponential(double, unsigned int, double, MoBiLE_Plant *)
Updates the fine root distribution of a plant with the exponential shape (Exponential root distributi...
Definition ld_rootsystem.cpp:1096
substate_soilchemistry_t & sc_
soil state (layer depths and thicknesses, stones, density, texture)
Definition ld_rootsystem.h:228
LD_PlantFunctions m_pf
plant functions (e.g., temperature dependency of nitrogen uptake)
Definition ld_rootsystem.h:226
substate_physiology_t & ph_
physiology state
Definition ld_rootsystem.h:232
substate_watercycle_t & wc_
water state (water content, wilting point, field capacity)
Definition ld_rootsystem.h:234
void update_rooting_depth(const double, double &, unsigned int &, MoBiLE_Plant *)
Increases the rooting depth by the restricted target increment (step 4 of the Dynamic root growth mod...
Definition ld_rootsystem.cpp:629
lvector_t< double > root_restrictions_aeration(unsigned int, MoBiLE_Plant *)
Root growth restriction by oxygen shortage for every layer (Root growth restrictions).
Definition ld_rootsystem.cpp:870