hydrobricks
Loading...
Searching...
No Matches
gr_uh Namespace Reference

Functions

double SH1 (double t, double x4)
 
double SH2 (double t, double x4)
 
void ComputeOrdinates (double x4, std::vector< double > &uh1Ord, std::vector< double > &uh2Ord)
 

Detailed Description

Shared GR unit-hydrograph S-curves and ordinate computation (Perrin et al., 2003).

Used by the GR6J routing process. GR4J keeps its own equivalent copy embedded in ProcessRoutingGR4J so that class stays untouched.

Function Documentation

◆ ComputeOrdinates()

void gr_uh::ComputeOrdinates ( double x4,
std::vector< double > & uh1Ord,
std::vector< double > & uh2Ord )
inline

Fill the UH1 and UH2 ordinates (successive differences of the S-curves) for the given time base x4 (clamped to a minimum of 0.5). The ordinate vectors are resized to ceil(x4) and ceil(2*x4) respectively.

Parameters
x4unit-hydrograph time base [d].
uh1Ordoutput UH1 ordinates.
uh2Ordoutput UH2 ordinates.

◆ SH1()

double gr_uh::SH1 ( double t,
double x4 )
inline

SH1 cumulative S-curve, time base x4.

◆ SH2()

double gr_uh::SH2 ( double t,
double x4 )
inline

SH2 cumulative S-curve, time base 2*x4.