37 static const char* ValveTypeWords[];
40 Valve(std::string name_);
45 std::string typeStr();
47 double convertSetting(
Network* nw,
double s);
50 void setInitStatus(
int s);
51 void setInitSetting(
double s);
52 void initialize(
bool initFlow);
57 void findHeadLoss(
Network* nw,
double q);
58 void updateStatus(
double q,
double h1,
double h2);
59 bool changeStatus(
int newStatus,
61 const std::string reason,
62 std::ostream& msgLog);
63 bool changeSetting(
double newSetting,
65 const std::string reason,
66 std::ostream& msgLog);
67 void validateStatus(
Network* nw,
double qTol);
70 double getRe(
const double q,
const double viscos);
78 void findOpenHeadLoss(
double q);
79 void findPbvHeadLoss(
double q);
80 void findTcvHeadLoss(
double q);
81 void findGpvHeadLoss(
Network* nw,
double q);
82 void findFcvHeadLoss(
double q);
83 int updatePrvStatus(
double q,
double h1,
double h2);
84 int updatePsvStatus(
double q,
double h1,
double h2);
95 int Valve::type() {
return Link::VALVE; }
flow control valve
Definition: valve.h:32
general purpose valve
Definition: valve.h:35
ValveType
Definition: valve.h:29
A Link that controls flow or pressure.
Definition: valve.h:25
double elev
elevation of PRV/PSV valve
Definition: valve.h:87
ValveType valveType
valve type
Definition: valve.h:74
bool hasFixedStatus
true if Open/Closed status is fixed
Definition: valve.h:86
double lossFactor
minor loss factor
Definition: valve.h:75
pressure sustaining valve
Definition: valve.h:31
pressure breaker valve
Definition: valve.h:34
pressure reducing valve
Definition: valve.h:30
Describes the Link class.
Contains the data elements that describe a pipe network.
Definition: network.h:41
A conveyance element that connects two nodes together.
Definition: link.h:30
throttle control valve
Definition: valve.h:33