LSDTopoTools
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
runoffGrid Class Reference

Object for storing and calculating the saturation and hence surface runoff when using spatially variable rainfall input (j_mean, but 2D, i.e. j_mean_array[i][j], same as model. More...

#include <LSDRainfallRunoff.hpp>

Public Member Functions

 runoffGrid (int imax, int jmax)
 Basic constructor – initialises arrays to domain size.
 
 runoffGrid (int current_rainfall_timestep, int imax, int jmax, int rain_factor, double M, const rainGrid &current_rainGrid, const TNT::Array2D< double > &elevations)
 Create a rainfallrunoffGrid from passing params and refs to params.
 
void calculate_runoff (int rain_factor, double M, int jmax, int imax, const rainGrid &current_rainGrid, const TNT::Array2D< double > &elevations)
 
void write_runoffGrid_to_raster_file (double xmin, double ymin, double cellsize, std::string RUNOFFGRID_FNAME, std::string RUNOFFGRID_EXTENSION)
 
double get_j (int m, int n) const
 
double get_jo (int m, int n) const
 
double get_j_mean (int m, int n) const
 
double get_old_j_mean (int m, int n) const
 
double get_new_j_mean (int m, int n) const
 
void set_j_mean (int m, int n, double cell_j_mean)
 

Protected Attributes

TNT::Array2D< double > j_array
 
TNT::Array2D< double > jo_array
 
TNT::Array2D< double > j_mean_array
 
TNT::Array2D< double > old_j_mean_array
 
TNT::Array2D< double > new_j_mean_array
 

Detailed Description

Object for storing and calculating the saturation and hence surface runoff when using spatially variable rainfall input (j_mean, but 2D, i.e. j_mean_array[i][j], same as model.

This object treats runoff production as spatially variable at the same resolution as the model domain DEM. It calculates runoff separately for every grid cell, so is slightly different from the TOPMODEL formulation which divides the runoff response into zones with similar attributes.

Author
DAV

Member Function Documentation

void runoffGrid::calculate_runoff ( int  rain_factor,
double  M,
int  jmax,
int  imax,
const rainGrid current_rainGrid,
const TNT::Array2D< double > &  elevations 
)

Calculates runoff and updates the rainfallrunoffGrid object accordingly Introduced to be able to create an empty runoff object and then later initialise it, or update an exisiting runoff grid for a new timestep, Takes a ref to a rainGrid object and the elevations array from LSDCatchmentModel

void runoffGrid::set_j_mean ( int  m,
int  n,
double  cell_j_mean 
)
inline

Sets the value of j_mean when calculating the hydrograh

Parameters
m,narray indices, new value to set (double)

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