EPANET  3.0
EPANET Development Project
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
DemandModel Class Referenceabstract

The interface for a pressure-dependent demand model. More...

#include <demandmodel.h>

Inheritance diagram for DemandModel:
ConstrainedDemandModel FixedDemandModel LogisticDemandModel PowerDemandModel

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 DemandModelfactory (const std::string model, double expon_)
 

Protected Attributes

double expon
 

Detailed Description

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.


The documentation for this class was generated from the following files: