Richards
Solving The Richards equation with temporally periodic surface boundary conditions
Public Member Functions | List of all members
Grid Class Reference

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
 

Detailed Description

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.

Definition at line 17 of file grid.h.

Constructor & Destructor Documentation

◆ Grid()

Grid::Grid ( double  depth,
double  delz0,
double  delzfrac,
double  delzmax 
)

constructor

Parameters
[in]depththe total depth of the model domain
[in]delz0the depth of the shallowest cell at the surface
[in]delzfracthe factor by which each cell is larger than its shallower neighbor
[in]delzmaxthe maximum depth of cells

Definition at line 5 of file grid.cc.


The documentation for this class was generated from the following files: