Model
- class unifhy.Model(identifier, config_directory, saving_directory, surfacelayer, subsurface, openwater, nutrientsurfacelayer, nutrientsubsurface, nutrientopenwater, _to_yaml=True)
Model is the core element of the modelling framework.
It is responsible for configuring the simulation, checking the compatibility between
Component
s, and controlling the simulation workflow.Instantiation
- Parameters
- identifier:
str
A name to identify the model files.
- config_directory:
str
The path to the directory where to save the model configuration files.
- saving_directory:
str
The path to the directory where to save the model exchanger dump files and model record files.
- surfacelayer:
SurfaceLayerComponent
object The
Component
responsible for the surface layer compartment of the hydrological cycle.- subsurface:
SubSurfaceComponent
object The
Component
responsible for the subsurface compartment of the hydrological cycle.- openwater:
OpenWaterComponent
object The
Component
responsible for the open water compartment of the hydrological cycle.- nutrientsurfacelayer:
NutrientSurfaceLayerComponent
object The
Component
responsible for the surface layer compartment of any nutrient modelling.- nutrientsubsurface:
NutrientSubSurfaceComponent
object The
Component
responsible for the subsurface compartment of any nutrient modelling.- nutrientopenwater:
NutrientOpenWaterComponent
object The
Component
responsible for the open water compartment of any nutrient modelling.
- identifier:
Methods
Construction
Instantiate a |
|
Store configuration of |
Initialisation
Initialise the transfers of the |
Simulation
Run model spin-up simulation to initialise states of each |
|
Run model simulation over period defined in its components' timedomains. |
|
Resume model spin up or main simulation run on latest snapshot in dump files or at the given snapshot. |
Attributes
Return the name used to identify the model files. |
|
Return the directory used to store the model configurations. |
|
Return the directory used to store the model output files. |
|
Return the surface layer component of the model. |
|
Return the sub-surface component of the model. |
|
Return the open water component of the model. |
|
Return the nutrient surface layer component of the model. |
|
Return the nutrient sub-surface component of the model. |
|
Return the nutrient open water component of the model. |