LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
ld_droughtstress.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-LandscapeDNDC
4 * This file is part of LandscapeDNDC. See LICENSE.
5 */
15
16#ifndef LD_DROUGHTSTRESS_H_
17#define LD_DROUGHTSTRESS_H_
18
19#include "ld_modelsconfig.h"
20#include "state/mbe_state.h"
21#include <model/tinymodelcoll.h>
22
23struct LDNDC_API DroughtStress : public cbm::TinyModelCollection< DroughtStress, double, double >
24{
25 DroughtStress( char const * = 0 /*kind*/);
26
27 /* evaluate for given "water stress factor" (WS) */
28 double evaluate( double /*WS*/,
29 char const * = 0 /*kind*/) const;
30
32 double exponential( double /*WS*/) const;
33
35 double linear_threshold( double /*WS*/) const; /*linear*/
36
38 static double linear_threshold( double /*WS*/, double /*fh2o_ref*/);
39
41 double linear( double /*WS*/) const; /*linear*/
42
43 /* relative available soil water content at which stomata start to close */
44 double fh2o_ref;
45
46 /* slope of foliage conductivity in response to relative available soil water content */
47 double gs_slope;
48
49 private:
50 typedef EvaluateFunction DroughtStressFunction;
51 DroughtStressFunction evaluate_function( char const * = 0 /*kind*/) const;
52};
53
54
55namespace ldndc {
56
71double
73 double const & _var,
74 double const & _var_ref,
75 double const & _var_scale);
76
77} /* namespace ldndc */
78
79#endif /* !LD_DROUGHTSTRESS_H_ */
80
Spatially explicit groundwater model.
Definition airchemistryput.h:21
double non_stomatal_water_limitation(double const &_var, double const &_var_ref, double const &_var_scale)
Non stomatal water limitation.
Definition ld_droughtstress.cpp:144