iLand
speciesresponse.h
Go to the documentation of this file.
1/********************************************************************************************
2** iLand - an individual based forest landscape and disturbance model
3** http://iland-model.org
4** Copyright (C) 2009- Werner Rammer, Rupert Seidl
5**
6** This program is free software: you can redistribute it and/or modify
7** it under the terms of the GNU General Public License as published by
8** the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** This program is distributed in the hope that it will be useful,
12** but WITHOUT ANY WARRANTY; without even the implied warranty of
13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14** GNU General Public License for more details.
15**
16** You should have received a copy of the GNU General Public License
17** along with this program. If not, see <http://www.gnu.org/licenses/>.
18********************************************************************************************/
19
20#ifndef SPECIESRESPONSE_H
21#define SPECIESRESPONSE_H
22class ResourceUnit;
24class Species;
25
27{
28public:
30 // actions
31 void setup(ResourceUnitSpecies *rus);
34 void calculate();
35 void clear();
36 // access components
37 const Species *species() const { return mSpecies; }
38 const ResourceUnit *resourceUnit() const { return mRu; }
39 // access responses
40 const double *tempResponse() const { return mTempResponse; }
41 const double *soilWaterResponse() const { return mSoilWaterResponse; }
42 const double *globalRadiation() const { return mRadiation; }
43 const double *utilizableRadiation() const {return mUtilizableRadiation; }
44 const double *vpdResponse() const {return mVpdResponse; }
45 const double *co2Response() const { return mCO2Response; }
46 double nitrogenResponse() const { return mNitrogenResponse; }
47 double yearlyRadiation() const { return mTotalRadiation; }
48 double totalUtilizeableRadiation() const { return mTotalUtilizeableRadiation; }
51 void soilAtmosphereResponses(const double psi_kPa, const double vpd, double &rMinResponse) const;
52
53private:
54 const ResourceUnit *mRu;
55 const Species *mSpecies;
56
57 double mRadiation[12];
58 double mUtilizableRadiation[12];
59 double mTempResponse[12];
60 double mSoilWaterResponse[12];
61 double mVpdResponse[12];
62 double mNitrogenResponse;
63 double mCO2Response[12];
64 double mTotalRadiation;
65 double mTotalUtilizeableRadiation;
66};
67
68#endif // SPECIESRESPONSE_H
ResourceUnit is the spatial unit that encapsulates a forest stand and links to several environmental ...
Definition: resourceunit.h:49
The class contains data available at ResourceUnit x Species scale.
Definition: resourceunitspecies.h:34
The behavior and general properties of tree species.
Definition: species.h:75
Environmental responses relevant for production of a tree species on resource unit level.
Definition: speciesresponse.h:27
void setup(ResourceUnitSpecies *rus)
Definition: speciesresponse.cpp:60
double totalUtilizeableRadiation() const
Definition: speciesresponse.h:48
const double * tempResponse() const
Definition: speciesresponse.h:40
SpeciesResponse()
Definition: speciesresponse.cpp:45
void soilAtmosphereResponses(const double psi_kPa, const double vpd, double &rMinResponse) const
response calculation called during water cycle calculates minimum-response of vpd-response and soilwa...
Definition: speciesresponse.cpp:71
const double * vpdResponse() const
Definition: speciesresponse.h:44
double nitrogenResponse() const
Definition: speciesresponse.h:46
const ResourceUnit * resourceUnit() const
Definition: speciesresponse.h:38
const double * utilizableRadiation() const
utilizable radiation (rad*responses)
Definition: speciesresponse.h:43
const double * globalRadiation() const
radiation sum in MJ/m2
Definition: speciesresponse.h:42
const double * co2Response() const
Definition: speciesresponse.h:45
void calculate()
calculate the species specific environmental response values for the resource unit.
Definition: speciesresponse.cpp:80
double yearlyRadiation() const
Definition: speciesresponse.h:47
const Species * species() const
Definition: speciesresponse.h:37
void clear()
set all responses to 0
Definition: speciesresponse.cpp:50
const double * soilWaterResponse() const
Definition: speciesresponse.h:41