Implements the ModVege grass growth model based off of Jouven et al. (2006).
This class contains model and site parameters and state variables as attributes and has methods for running ModVege with weather and management input.
Use the run() method to carry out a simulation for a given year. The
results are stored in the state variables in this instance and can be written
to file using write_output().
Model variables
See Jouven et al. (2006) for a thorough description of all model variables.
State Variables
BMStanding biomass in kg DM per ha.BMGStanding green biomass (kg DM / ha).cBMCumulativeley grown biomass (kg DM / ha).dBMDaily grown biomass (kg DM / ha).hvBMCumulative harvested biomass (kg DM / ha).OMDOrganic matter digestibility (kg / kg).OMDGOMD of green matter (kg / kg).STTemperature sum in degree Celsius days.REPReproductive function. Gives the fraction of growth that is assigned to reproductive growth. The remainder goes into vegetative growth. Dimensionless.PGROPotential growth in kg DM / ha.GROEffective growth in kg DM / ha.LAILeaf area index, accounting for the proportion of light intercepted by the sward. Dimensionless.LAIGVLAI of green vegetative biomass. Dimensionless.AETActual evapotranspiration in mm.WRWater reserves in mm.ENVFunction representing environmental effects on growth. Acts as a multiplicative factor. Dimensionless.ENVfPARPart of ENV due to strength of incident radiation. Dimensionless.ENVfTPart of ENV due to temperature. Dimensionless.ENVfWPart of ENV due to water limitation. Dimensionless.
Initial conditions
AgeGVAge of green vegetative matter in degree Celsius days.AgeGRAge of green reproductive matter in degree Celsius days.AgeDVAge of dead vegetative matter in degree Celsius days.AgeDRAge of dead reproductive matter in degree Celsius days.BMGVbiomass of GV (kg DM per ha).BMGRbiomass of GR (kg DM per ha).BMDVbiomass of DV (kg DM per ha).BMDRbiomass of DR (kg DM per ha).BMDRbiomass of DR (kg DM per ha).SENGsenescence of GV (kg DM per ha).SENGsenescence of GR (kg DM per ha).ABSGabscission of DV (kg DM per ha).ABSGabscission of DR (kg DM per ha).STthermal time (degree days).cBMcumulative total biomass (kg per ha).
References
Jouven M, Carrère P, Baumont R (2006). “Model Predicting Dynamics of Biomass, Structure and Digestibility of Herbage in Managed Permanent Pastures. 1. Model Description.” Grass and Forage Science, 61(2), 112–124. ISSN 1365-2494, doi:10.1111/j.1365-2494.2006.00515.x , https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1365-2494.2006.00515.x.
Public fields
time_stepUsed time step in the model in days (untested).
state_variable_namesVector containing the names of the model's state variables.
n_state_variablesNumber of state variables.
versionVersion number of the growR package. Is written into output files.
site_nameName of the site to be simulated.
run_nameName of the simulation run. Used to distinguish between different runs at the same site.
yearYear to be simulated.
days_per_yearNumber of days in this year.
j_start_of_growing_seasonIndex (DOY) of the day the growing season was determined to begin.
cut_heightHeight of remaining grass after cut in m.
parametersA ModvegeParameters object.
determine_cutFunction used to decide whether a cut occurs on a given DOY. Is overloaded depending on whether management data is provided or not.
cut_DOYsList of DOYs on which a cut occurred.
cut_during_growth_preriodBoolean to indicate whether a cut occurred during the growth period, in which case reproductive growth is stopped.
BM_after_cutAmount of biomass that remains after a cut #' (determined through cut_height and biomass densities BDGV, BDDV, BDGR, BDDR).
weatherA list created by a WeatherData object's
get_weather_for_year()method.managementA list containing management data as returned by ModvegeEnvironment's
get_environment_for_year()method. If itsis_emptyfield isTRUE, the Autocut routine will be employed.AutocutA subclass of Autocut. The algorithm used to determine cut events.
Methods
Method new()
Constructor
Usage
ModvegeSite$new(parameters, site_name = "-", run_name = "-")Arguments
parametersA ModvegeParameters object.
site_namestring Name of the simulated site.
run_namestring Name of the simulation run. Used to differentiate between different simulation conditions at the same site. Defaults to "-", which indicates no specific run name.
Method set_SGS_method()
Choose which method to be used for determination of SGS
Options for the determination of the start of growing season (SGS) are:
- MTD
Multicriterial thermal definition,
start_of_growing_season_mtd()- simple
Commonly used, simple SGS definition based on temperature sum,
start_of_growing_season()
Method run()
Carry out a ModVege simulation for one year.
Arguments
yearInteger specifying the year to consider.
weatherWeather list for given year as returned by WeatherData
$get_weather_for_year.managementManagement list for given year as provided by ModvegeEnvironment
$get_environment_for_year().
Method write_output()
Write values of ModVege results into given file.
A header with metadata is prepended to the actual data.
Method set_parameters()
Savely update the values in self$parameters.
This is just a shorthand to the underlying ModvegeParameters
object's set_parameters() function. Special care is taken to
account for potential changes to functional group weights.
Method plot()
Create an overview plot for 16 state variables.
Creates a simple base R plot showing the temporal evolution of 16 modeled state variables.
Can only be sensibly run after a simulation has been carried out,
i.e. after this instance's run() method has been called.
Method plot_bm()
Create an overview plot for biomass.
Creates a simple base R plot showing the BM with cutting events and,
if applicable, target biomass, dBM, cBM and hvBM.
Can only be sensibly run after a simulation has been carried out,
i.e. after this instance's run() method has been called.
Method plot_limitations()
Create an overview plot of limiting factors.
Creates a simple base R plot showing the different environmental
limitation functions over time.
Can only be sensibly run after a simulation has been carried out,
i.e. after this instance's run() method has been called.
Method plot_water()
Create an overview plot of the water balance.
Creates a simple base R plot showing different variables pertaining to the water balance, namely water reserves WR, actual evapotranspiration AET, leaf area index LAI and LAI of the green vegetative compartment LAIGV.
Can only be sensibly run after a simulation has been carried out,
i.e. after this instance's run() method has been called.
Method plot_growth()
Create an overview plot of growth dynamics.
Creates a simple base R plot showing different variables pertaining to the growth dynamics, namely potential growth PGRO, effective growth GRO, the reproductive function REP and the temperature sum ST.
Can only be sensibly run after a simulation has been carried out,
i.e. after this instance's run() method has been called.
Method plot_var()
Plot the temporal evolution of a modeled state variable.
Arguments
varString. Name of the state variable to plot.
...Further arguments are passed to the base
plot()function.
