3.2. The stochastic modelling framework¶
3.2.1. The static stochastic modelling class¶
Go to the folder framework
in your folder containing the exercise data. For static stochastic modelling, you can use the template script stochStaticMod.py
. Open the script, and run it. Type dir
to see the contents of the folder.
Question: The model class contains a number of methods. In which section (method) do we need to put calculations representing processes (or importing data) that are stochastic, without time? Idem, purely deterministic calculations without uncertainty?
Stochastic without time: premcloop. Deterministic: initial.
Stochastic without time: postmcloop. Deterministic: initial.
Stochastic without time: initial. Deterministic: initial.
Stochastic without time: initial. Deterministic: premcloop.
3.2.2. The dynamic stochastic modelling class¶
In the same framework
folder, open and run stochDynamicMod.py
. It is a template script for dynamic stochastic modelling.
Question: What is the dynamic method doing in the stochDynamicMod.py
script?
It is run for each Monte Carlo realization, and each time step.
It is run for the first Monte Carlo realization, for each time step.
It is run for each Monte Carlo realization, without time steps.
It passes information from the initial to the postmcloop.