Main object of the iLand model composited of various sub models / sub components.
More...
#include <model.h>
Main object of the iLand model composited of various sub models / sub components.
The class Model is the top level container of iLand. The Model holds a collection of ResourceUnits, links to SpeciesSet and Climate. ResourceUnit are grid cells with (currently) a size of 1 ha (100x100m). Many stand level processes (NPP produciton, WaterCycle) operate on this level. The Model also contain the landscape-wide 2m LIF-grid (http://iland-model.org/competition+for+light).
◆ Model()
◆ ~Model()
◆ ABEngine()
◆ afterStop()
void Model::afterStop |
( |
| ) |
|
◆ beforeRun()
void Model::beforeRun |
( |
| ) |
|
initializations
beforeRun performs several steps before the models starts running.
inter alia: * setup of the stands
◆ biteEngine()
◆ changeSettings()
write access to global model settings.
◆ cleanTreeLists()
void Model::cleanTreeLists |
( |
bool |
recalculate_stats | ) |
|
clean the tree data structures (remove harvested trees) - call after management operations.
◆ clear()
free ressources
clear() frees all ressources allocated with the run of a simulation.
◆ climates()
const QList< Climate * > Model::climates |
( |
| ) |
const |
|
inline |
◆ createStandStatistics()
void Model::createStandStatistics |
( |
| ) |
|
build stand statistics (i.e. stats based on resource units)
Force the creation of stand statistics.
- stocked area (for resourceunit-areas)
- ru - statistics
◆ currentTask()
QString Model::currentTask |
( |
| ) |
const |
|
inline |
◆ dem()
const DEM * Model::dem |
( |
| ) |
const |
|
inline |
◆ environment()
◆ executePerResourceUnit()
void Model::executePerResourceUnit |
( |
void(*)(ResourceUnit *) |
funcptr, |
|
|
const bool |
forceSingleThreaded = false |
|
) |
| |
|
inline |
execute a function for each resource unit using multiple threads. "funcptr" is a ptr to a simple function
◆ extent()
const QRectF & Model::extent |
( |
| ) |
const |
|
inline |
extent of the model (without buffer)
◆ grassCover()
◆ grid()
this is the global 'LIF'-grid (light patterns) (currently 2x2m)
◆ heightGrid()
stores maximum heights of trees and some flags (currently 10x10m)
◆ heightGridValue() [1/2]
const HeightGridValue & Model::heightGridValue |
( |
const float * |
lif_ptr | ) |
const |
|
inline |
◆ heightGridValue() [2/2]
const HeightGridValue Model::heightGridValue |
( |
const int |
ix, |
|
|
const int |
iy |
|
) |
| const |
|
inline |
get the value of the (10m) Height grid at the position index ix and iy (of the LIF grid)
◆ isSetup()
bool Model::isSetup |
( |
| ) |
const |
|
inline |
return true if the model world is correctly setup.
◆ loadProject()
void Model::loadProject |
( |
| ) |
|
setup and load a project
Setup of the Simulation.
This really creates the simulation environment and does the setup of various aspects.
◆ management()
◆ modules()
◆ onlyApplyLightPattern()
void Model::onlyApplyLightPattern |
( |
| ) |
|
|
inline |
◆ reloadABE()
void Model::reloadABE |
( |
| ) |
|
force a recreate of the agent based forest management engine
◆ ru() [1/3]
◆ ru() [2/3]
get resource unit by index
◆ ru() [3/3]
ressource unit at given coordinates
◆ ruById()
find the resource unit with Id 'id' or return NULL
◆ RUgrid()
◆ ruList()
ruList contains all simulated resource units (that are in the project area)
◆ runYear()
run a single year
Main model runner.
The sequence of actions is as follows: (1) Load the climate of the new year (2) Reset statistics for resource unit as well as for dead/managed trees (3) Invoke Management. (4) after that, calculate Light patterns (5) 3PG on stand level, tree growth. Clear stand-statistcs before they are filled by single-tree-growth. calculate water cycle (with LAIs before management) (6) execute Regeneration (7) invoke disturbance modules (8) calculate carbon cycle (9) calculate statistics for the year (10) write database outputs
◆ saplings()
◆ setCurrentTask()
void Model::setCurrentTask |
( |
QString |
what | ) |
|
|
inline |
◆ settings()
access to global model settings.
◆ speciesSet()
◆ standGrid()
const MapGrid * Model::standGrid |
( |
| ) |
|
|
inline |
retrieve the spatial grid that defines the stands (10m resolution)
◆ svdStates()
◆ threadExec()
◆ timeEvents()
◆ totalStockableArea()
double Model::totalStockableArea |
( |
| ) |
const |
|
inline |
total stockable area of the landscape (ha)
The documentation for this class was generated from the following files: