EPANET
3.0
EPANET Development Project
|
The interface for a pressure-dependent demand model. More...
#include <demandmodel.h>
Public Member Functions | |
DemandModel (double expon_) | |
virtual double | findDemand (Junction *junc, double h, double &dqdh) |
Finds demand flow and its derivative as a function of head. | |
virtual bool | isPressureDeficient (Junction *junc) |
Changes fixed grade status depending on pressure deficit. | |
Static Public Member Functions | |
static DemandModel * | factory (const std::string model, double expon_) |
Protected Attributes | |
double | expon |
The interface for a pressure-dependent demand model.
DemandModel is an abstract class from which a concrete demand model is derived. Four such models are currently available - Fixed, Constrained, Power, and Logistic.