HydParam#

module wntr.epanet.util

class HydParam[source]#

Bases: Enum

EPANET hydraulics and energy parameter conversion.

The hydraulic parameter enumerated type is used to perform unit conversion between EPANET internal units and SI units used by WNTR. The units for each parameter are determined based on the FlowUnits used.

Parameters that are unitless or otherwise require no conversion are not members of this Enum type.

Enum Members

Elevation

Nodal elevation

Demand

Nodal demand

HydraulicHead

Nodal head

Pressure

Nodal pressure

EmitterCoeff

Emitter coefficient

TankDiameter

Tank diameter

Volume

Tank volume

Length

Link length

PipeDiameter

Pipe diameter

Flow

Link flow

Velocity

Link velocity

HeadLoss

Link headloss (from start node to end node)

RoughnessCoeff

Link roughness (requires darcy_weisbach setting for conversion)

Energy

Pump energy

Power

Pump power


__init__(value)[source]#
DEMAND = 1#
Demand = 1#
ELEVATION = 0#
EMITTERCOEFF = 31#
ENERGY = 34#
Elevation = 0#
EmitterCoeff = 31#
Energy = 34#
FLOW = 7#
Flow = 7#
HEADLOSS = 9#
HYDRAULICHEAD = 2#
HeadLoss = 9#
HydraulicHead = 2#
LENGTH = 5#
Length = 5#
PIPEDIAMETER = 6#
POWER = 15#
PRESSURE = 3#
PipeDiameter = 6#
Power = 15#
Pressure = 3#
ROUGHNESSCOEFF = 32#
RoughnessCoeff = 32#
TANKDIAMETER = 33#
TankDiameter = 33#
VELOCITY = 8#
VOLUME = 17#
Velocity = 8#
Volume = 17#
demand = 1#
elevation = 0#
emittercoeff = 31#
energy = 34#
flow = 7#
headloss = 9#
hydraulichead = 2#
length = 5#
pipediameter = 6#
power = 15#
pressure = 3#
roughnesscoeff = 32#
tankdiameter = 33#
velocity = 8#
volume = 17#