Subversion Repositories public iLand

Rev

Rev 546 | Rev 639 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 546 Rev 547
1
Redirecting to URL 'https://iland.boku.ac.at/svn/iland/tags/release_1.0/src/core/modelsettings.h':
1
Redirecting to URL 'https://iland.boku.ac.at/svn/iland/tags/release_1.0/src/core/modelsettings.h':
2
#ifndef MODELSETTINGS_H
2
#ifndef MODELSETTINGS_H
3
#define MODELSETTINGS_H
3
#define MODELSETTINGS_H
4
#include <QtCore>
4
#include <QtCore>
5
#include "expression.h"
5
#include "expression.h"
6
class ModelSettings
6
class ModelSettings
7
{
7
{
8
public:
8
public:
9
    ModelSettings();
9
    ModelSettings();
10
    void loadModelSettings();
10
    void loadModelSettings();
11
    void print();
11
    void print();
12
    // list of settings
12
    // list of settings
13
    // general on/off switches
13
    // general on/off switches
14
    bool growthEnabled; ///< if false, trees will apply/read light patterns, but do not grow
14
    bool growthEnabled; ///< if false, trees will apply/read light patterns, but do not grow
15
    bool mortalityEnabled; ///< if false, no natural (intrinsic+stress) mortality occurs
15
    bool mortalityEnabled; ///< if false, no natural (intrinsic+stress) mortality occurs
16
    bool regenerationEnabled; ///< if true, seed dispersal, establishment, ... is modelled
16
    bool regenerationEnabled; ///< if true, seed dispersal, establishment, ... is modelled
17
    bool carbonCycleEnabled; ///< if true, snag dynamics and soil CN cycle is modelled
17
    bool carbonCycleEnabled; ///< if true, snag dynamics and soil CN cycle is modelled
18
    // light
18
    // light
19
    double lightExtinctionCoefficient; ///< "k" parameter (beer lambert) used for calc. of absorbed light on resourceUnit level
19
    double lightExtinctionCoefficient; ///< "k" parameter (beer lambert) used for calc. of absorbed light on resourceUnit level
20
    double lightExtinctionCoefficientOpacity; ///< "k" for beer lambert used for opacity of single trees
20
    double lightExtinctionCoefficientOpacity; ///< "k" for beer lambert used for opacity of single trees
21
    // climate
21
    // climate
22
    double temperatureTau; ///< "tau"-value for delayed temperature calculation acc. to Mäkela 2008
22
    double temperatureTau; ///< "tau"-value for delayed temperature calculation acc. to Mäkela 2008
23
    // water
23
    // water
24
    double airDensity; // density of air [kg / m3]
24
    double airDensity; // density of air [kg / m3]
25
    double laiThresholdForClosedStands; // for calculation of max-canopy-conductance
25
    double laiThresholdForClosedStands; // for calculation of max-canopy-conductance
26
    double boundaryLayerConductance; // 3pg-evapotranspiration
26
    double boundaryLayerConductance; // 3pg-evapotranspiration
27
    // nitrogen and soil model
27
    // nitrogen and soil model
28
    bool useDynamicAvailableNitrogen; ///< if true, iLand utilizes the dynamically calculated NAvailable
28
    bool useDynamicAvailableNitrogen; ///< if true, iLand utilizes the dynamically calculated NAvailable
29
    double topLayerWaterContent; ///< for the calculation of the climate-modifier of the snag/wood decay rate (Snag::calculateClimateFactors())
-
 
30
    // site variables (for now!)
29
    // site variables (for now!)
31
    double latitude; ///< latitude of project site in radians
30
    double latitude; ///< latitude of project site in radians
32
    // production
31
    // production
33
    double epsilon; ///< maximum light use efficency used for the 3PG model
32
    double epsilon; ///< maximum light use efficency used for the 3PG model
34
    bool usePARFractionBelowGroundAllocation; ///< if true, the 'correct' version of the calculation of belowground allocation is used (default=true)
33
    bool usePARFractionBelowGroundAllocation; ///< if true, the 'correct' version of the calculation of belowground allocation is used (default=true)
35
34
36
35
37
};
36
};
38
37
39
#endif // MODELSETTINGS_H
38
#endif // MODELSETTINGS_H
40
 
39