|
Richards
Solving The Richards equation with temporally periodic surface boundary conditions
|
class for constructing and containing grid information More...
#include <grid.h>
Public Member Functions | |
| Grid (double depth, double delz0, double delzfrac, double delzmax) | |
| constructor More... | |
| long | get_n () |
| gets number of cells | |
| double | get_dep () |
| gets length/depth of the domain (m) | |
| const std::vector< double > | get_ze () const |
| gets vector of cell edge coordinates (m) | |
| const std::vector< double > | get_zc () const |
| gets arravectory of cell center coordinates (m) | |
| const std::vector< double > | get_delz () const |
| gets arrayvector of cell width (m) | |
| const std::vector< double > | get_delze () const |
| gets arrayvector of cell widths used for stability calculations (m) | |
| const std::vector< double > | get_vefac () const |
| gets arrayvector of factors for cell edge values | |
| const std::vector< double > | get_gefac () const |
| gets arrayvector of factors for cell edge gradients | |
| void | save (std::string dirout) |
| writes grid arrays into a directory as binary files | |
class for constructing and containing grid information
The model grid is one dimensional with geometrically spaced elements. The surface cell is always the smallest. Then each cell is delzfrac times larger than its shallower neighbor. The maximum cell size is set by delzmax.
| Grid::Grid | ( | double | depth, |
| double | delz0, | ||
| double | delzfrac, | ||
| double | delzmax | ||
| ) |