Contains the entire hierarchy of the HeadTool classes. calculateThermalResistance(): Calculates the operating pump head.
More...
#include <HeadTool.h>
- Author
- Preston Shires (pshires)
- Bug:
- No known bugs.
Head Tool Base class Contains all of the basic properties of a head tool. Used to calculateReynoldsNumber velocity and velocity head so those values can be used in the HeadToolSuctionTank class or HeadTool class to calculateThermalResistance all of the values in the returned map.
Definition at line 21 of file HeadTool.h.
◆ HeadToolBase()
HeadToolBase::HeadToolBase |
( |
const double |
specificGravity, |
|
|
const double |
flowRate, |
|
|
const double |
suctionPipeDiameter, |
|
|
const double |
suctionLineLossCoefficients, |
|
|
const double |
dischargePipeDiameter, |
|
|
const double |
dischargeGaugePressure, |
|
|
const double |
dischargeGaugeElevation, |
|
|
const double |
dischargeLineLossCoefficients |
|
) |
| |
|
inline |
Constructor for the abstract HeadToolBase class with all inputs specified
- Parameters
-
specificGravity | double, specific gravity - unitless |
flowRate | double, flow rate in gpm (gallons per minute) |
suctionPipeDiameter | double, diameter of suction pipe in inches |
suctionLineLossCoefficients | double, suction line loss coefficient - unitless |
dischargePipeDiameter | double, diameter of discharge pipe in inches |
dischargeGaugePressure | double, gauge pressure of discharge in psig (pounds per square inch gauge) |
dischargeGaugeElevation | double, gauge elevation of discharge in feet |
dischargeLineLossCoefficients | double, line loss coefficients of discharge - unitless |
Definition at line 48 of file HeadTool.h.
◆ calculate()
Calculates the operating pump head
- Returns
- unordered map with all its values calculated
Implemented in HeadToolSuctionTank, and HeadTool.
◆ velocity()
double HeadToolBase::velocity |
( |
double |
diameter, |
|
|
double |
flow |
|
) |
| |
Calculates the velocity
- Parameters
-
diameter | const double, diameter in inches |
flow | const double, flow rate in gpm |
- Returns
- double, velocity in ft/s
◆ velocityHead()
double HeadToolBase::velocityHead |
( |
double |
velocity, |
|
|
double |
gravity |
|
) |
| |
Calculates the velocity head
- Parameters
-
velocity | const double, velocity in ft/s |
gravity | const double, gravity in ft/s^2 |
◆ dischargeGaugeElevation
const double HeadToolBase::dischargeGaugeElevation |
◆ dischargeGaugePressure
const double HeadToolBase::dischargeGaugePressure |
◆ dischargeLineLossCoefficients
const double HeadToolBase::dischargeLineLossCoefficients |
◆ dischargePipeDiameter
const double HeadToolBase::dischargePipeDiameter |
◆ flowRate
const double HeadToolBase::flowRate |
◆ gravity
const double HeadToolBase::gravity = 32.1740 |
◆ PI
const double HeadToolBase::PI = 3.141592653589793238463 |
◆ specificGravity
const double HeadToolBase::specificGravity |
◆ suctionLineLossCoefficients
const double HeadToolBase::suctionLineLossCoefficients |
◆ suctionPipeDiameter
const double HeadToolBase::suctionPipeDiameter |
The documentation for this class was generated from the following file: