19#include "ld_modelsconfig.h"
20#include "physiology/ld_plantfunctions.h"
21#include "physiology/ld_rootsystem.h"
23#include "state/mbe_state.h"
24#include "ld_eventqueue.h"
37 class LDNDC_API TreeDynamics
48 lerr_t register_ports( cbm::io_kcomm_t *);
49 lerr_t unregister_ports( cbm::io_kcomm_t *);
52 LD_PlantFunctions m_pf;
53 substate_soilchemistry_t & sc_;
54 substate_physiology_t & ph_;
55 MoBiLE_PlantVegetation * m_veg;
56 input_class_setup_t
const * m_se;
57 input_class_soillayers_t
const * m_sl;
65 bool aerated_fineroots;
68 Mortality( MoBiLE_Plant *,
70 double &_nLitWoodAbove,
71 double *_sWoodBelow_sl,
72 double *_nLitWoodBelow_sl);
81 Growth( MoBiLE_Plant *,
92 bool dynamic_coverage;
95 std::vector< double > mfol_year_max;
98 update_grass_coverage(
bool );
101 Crowding( MoBiLE_Plant *,
110 OnStructureChange( MoBiLE_Plant *,
111 RootSystemDNDC *_rs = NULL);
114 UpdateBiomass( MoBiLE_Plant *);
117 MassDistribution( MoBiLE_Plant *,
118 RootSystemDNDC *_rs = NULL);
121 LaiDistribution( MoBiLE_Plant *);
126 HandleDisturbanceEvents(
127 cbm::io_kcomm_t *_io_kcomm,
142 EventQueue DefoliateEvents;
143 ldndc::EventHandle DefoliateHandle;
144 struct EventDefoliateData
146 double reduction_volume;
150 lerr_t HandleEventDefoliate(
151 MoBiLE_Plant*, EventDefoliateData
const *,
154 int HandleEventsDefoliate(
158 EventQueue RegrowEvents;
159 ldndc::EventHandle RegrowHandle;
160 struct EventRegrowData
164 double tree_number_resize_factor;
167 lerr_t HandleEventRegrow(
168 cbm::io_kcomm_t *_io_kcomm,
169 MoBiLE_Plant*, EventRegrowData
const *,
179 int HandleEventsRegrow(
180 cbm::io_kcomm_t *_io_kcomm,
190 EventQueue ThrowEvents;
191 ldndc::EventHandle ThrowHandle;
192 struct EventThrowData
194 double reduction_volume;
196 lerr_t HandleEventThrow(
197 cbm::io_kcomm_t *_io_kcomm, MoBiLE_Plant*, EventThrowData
const *,
208 int HandleEventsThrow(
209 cbm::io_kcomm_t *_io_kcomm,
221 EventQueue ThinEvents;
222 ldndc::EventHandle ThinHandle;
225 double reduction_volume;
226 double reduction_number;
227 double export_foliage;
228 double export_branch_wood;
229 double export_root_wood;
230 double export_stem_wood;
232 lerr_t HandleEventThin(
233 cbm::io_kcomm_t *_io_kcomm,
234 MoBiLE_Plant*, EventThinData
const *,
247 int HandleEventsThin(
248 cbm::io_kcomm_t *_io_kcomm,
262 EventQueue HarvestEvents;
263 ldndc::EventHandle HarvestHandle;
264 struct EventHarvestData
266 double export_branch_wood;
267 double export_root_wood;
268 double export_stem_wood;
270 lerr_t HandleEventHarvest(
271 cbm::io_kcomm_t *_io_kcomm,
272 MoBiLE_Plant*, EventHarvestData
const *,
282 int HandleEventsHarvest(
283 cbm::io_kcomm_t *_io_kcomm,
Spatially explicit groundwater model.
Definition airchemistryput.h:21