SharpCrestedWeir

SharpCrestedWeir class. Contains fields and methods for hydraulic calculations of sharp crested weirs.

Constructors

this
this()

Empty constructor.

Members

Functions

analysis
bool analysis()

Performs the hydraulic analysis for sharp-crested (gated) weirs/diversion dams.

Variables

co
double co;
correction
double correction;
cs
double cs;

//////////////////////////////////// ////////////////////////////////////

dA
double dA;
eE
double eE;
h1
double h1;
h2
double h2;
h2_h1
double h2_h1;
hA
double hA;
ho
double ho;
vA
double vA;

//////////////////////////////////// ////////////////////////////////////

Inherited Members

From Weir

Units
enum Units
Undocumented in source.
ERROR
double ERROR;

//////////////////////////////////// ////////////////////////////////////

TRIAL_INCREMENT
double TRIAL_INCREMENT;

//////////////////////////////////// ////////////////////////////////////

discharge
double discharge;

Total discharge that will flow over a weir.

crestLength
double crestLength;

Length of the topmost of the crest

crestElev
double crestElev;

Elevation of crest.

usApronElev
double usApronElev;

Elevation of upstream apron.

dsApronElev
double dsApronElev;

Elevation of downstream apron.

tailwaterElev
double tailwaterElev;

Water elevation if there will be no weir.

dischargeIntensity
double dischargeIntensity;

Discharge intensity. Discharge per unit width.

calculatedDischargeIntensity
double calculatedDischargeIntensity;

Discharge intensity used for trial and error.

affluxElevation
double affluxElevation;

Elevation of the highest water elevation after weir construction.

lengthOfHydraulicJump
double lengthOfHydraulicJump;

Length of hydraulic jump. Downstream apron length can be designed based on this.

preJumpElev
double preJumpElev;

Elevation of pre-jump

jumpElev
double jumpElev;

Elevation of hydraulic jump.

errorMessage
string errorMessage;

Info about calculation error.

unit
Units unit;
Undocumented in source.
setDischarge
void setDischarge(double pDischarge)

Sets the discharge.

setUSApronElev
void setUSApronElev(double elev)
Undocumented in source. Be warned that the author may not have intended to support it.
setDSApronElev
void setDSApronElev(double elev)
Undocumented in source. Be warned that the author may not have intended to support it.
setCrestLength
void setCrestLength(double l)
Undocumented in source. Be warned that the author may not have intended to support it.
setCrestElev
void setCrestElev(double elev)
Undocumented in source. Be warned that the author may not have intended to support it.
setTailwaterElev
void setTailwaterElev(double elev)
Undocumented in source. Be warned that the author may not have intended to support it.
getDischarge
double getDischarge()

Returns the rate of flow in either cubic meter per second (metric) or cubic feet per second (english).

getAffluxElevation
double getAffluxElevation()
Undocumented in source. Be warned that the author may not have intended to support it.
getLengthOfHydraulicJump
double getLengthOfHydraulicJump()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta