2.0.0b10
catchment modelling framework
|
A one dimensional highly detailed model, comparable to models like BROOK90 (Federer 1995; Allen et al., 1998) or Hydrus 1D (Simunek et al., 2005), is developed through the allocation of a number of soil water storages, with connections based upon a Richards equation-based flux connector. This very short and simple example shows just the percolation through a homogeneous medium without any boundary flow. A more complete example with rainfall and graphical output can be found in the download section.
Create a project and one 1000m² cell
Create a retention curve
Add ten layers of 10cm thickness
Connect layers with Richards perc.
this can be shorten as
Using this command, all layers of the cell get connected with Richards equation.
Now we need to create an integrator for the resulting system. Since the Richards equation procduces a very stiff (difficult to solve) system, one needs to use an implicit solver with an adaptive time stepping scheme. The CVodeKrylov, a wrapper for the CVODE-solver by Hindmarsh et al. (2005) is such a solver and recommended for all cmf models using Richards equation.
Now we set the initial conditions
This is the setup code for our simple 1D Richards-Model. To run the model we create the run time loop using the solver.run iterator and we save soil moisture and potential for each layer into lists.
The upper graph shows the soil moisture content of each layer, the lower the water potential for each layer. The water table rises and a new hydrostatic equilibrium at 1.35 m below ground is established
As the next step, a fixed groundwater table as a lower boundary condition is introduced into our model. The following line needs to be inserted into the setup part of the script, eg. before setting the initial conditions:
In this experiment, the water percolates through the soil and out of our model boundaries. The water content is at the end of the simulation period near to the orginal values.