Subversion Repositories public iLand

Rev

Rev 241 | Rev 255 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 241 Rev 251
Line 31... Line 31...
31
    // actions
31
    // actions
32
    /// returns a modifiable reference to a free space inside the tree-vector. should be used for tree-init.
32
    /// returns a modifiable reference to a free space inside the tree-vector. should be used for tree-init.
33
    Tree &newTree();
33
    Tree &newTree();
34
    /// addWLA() is called by each tree to aggregate the total weighted leaf area on a unit
34
    /// addWLA() is called by each tree to aggregate the total weighted leaf area on a unit
35
    void addWLA(const float LA, const float LRI) { mAggregatedWLA += LA*LRI; mAggregatedLA += LA; }
35
    void addWLA(const float LA, const float LRI) { mAggregatedWLA += LA*LRI; mAggregatedLA += LA; }
-
 
36
    void addLR(const float LA, const float LightResponse) { mAggregatedLR += LA*LightResponse; }
36
    /// function that distributes effective interception area according to the weight of Light response and LeafArea of the indivudal (@sa production())
37
    /// function that distributes effective interception area according to the weight of Light response and LeafArea of the indivudal (@sa production())
37
    double interceptedArea(const double LA, const double LRI) { return mEffectiveArea_perWLA * LA * LRI; }
-
 
-
 
38
    double interceptedArea(const double LA, const double LightResponse) { return mEffectiveArea_perWLA * LA * LightResponse; }
-
 
39
    void calculateInterceptedArea();
-
 
40
    const double &LRImodifier() const { return mLRI_modification; }
38
41
39
    // model flow
42
    // model flow
40
    void newYear(); ///< reset values for a new simulation year
43
    void newYear(); ///< reset values for a new simulation year
41
    void production(); ///< called after the LIP/LIF calc, before growth of individual trees
44
    void production(); ///< called after the LIP/LIF calc, before growth of individual trees
42
    void yearEnd(); ///< called after the growth of individuals
45
    void yearEnd(); ///< called after the growth of individuals
Line 56... Line 59...
56
    SpeciesSet *mSpeciesSet; ///< pointer to the species set for this RU
59
    SpeciesSet *mSpeciesSet; ///< pointer to the species set for this RU
57
    WaterCycle *mWater; ///< link to the Soil water calculation engine
60
    WaterCycle *mWater; ///< link to the Soil water calculation engine
58
    QVector<ResourceUnitSpecies> mRUSpecies; ///< data for this ressource unit per species
61
    QVector<ResourceUnitSpecies> mRUSpecies; ///< data for this ressource unit per species
59
    QVector<Tree> mTrees; ///< storage container for tree individuals
62
    QVector<Tree> mTrees; ///< storage container for tree individuals
60
    QRectF mBoundingBox; ///< bounding box (metric) of the RU
63
    QRectF mBoundingBox; ///< bounding box (metric) of the RU
61
    float mAggregatedLA; ///< sum of leafArea
-
 
62
    float mAggregatedWLA; ///< sum of lightResponse * LeafArea for all trees
-
 
-
 
64
    double mAggregatedLA; ///< sum of leafArea
-
 
65
    double mAggregatedWLA; ///< sum of lightResponse * LeafArea for all trees
-
 
66
    double mAggregatedLR; ///< sum of lightresponse*LA of the current unit
-
 
67
    double mEffectiveArea; ///< total "effective" area per resource unit, i.e. area of RU - non-stocked - beerLambert-loss
63
    double mEffectiveArea_perWLA; ///<
68
    double mEffectiveArea_perWLA; ///<
-
 
69
    double mLRI_modification;
64
70
65
    int mPixelCount; ///< count of (Heightgrid) pixels thare are inside the RU
71
    int mPixelCount; ///< count of (Heightgrid) pixels thare are inside the RU
66
    int mStockedPixelCount;  ///< count of pixels that are stocked with trees
72
    int mStockedPixelCount;  ///< count of pixels that are stocked with trees
67
    double mStockedArea; ///< size of stocked area
73
    double mStockedArea; ///< size of stocked area
68
    StandStatistics mStatistics; ///< aggregate values on stand value
74
    StandStatistics mStatistics; ///< aggregate values on stand value