EPANET  3.0
EPANET Development Project
Public Types | Public Member Functions | Static Public Attributes | List of all members
Curve Class Reference

An ordered collection of x,y data pairs. More...

#include <curve.h>

Inheritance diagram for Curve:
Element

Public Types

enum  CurveType {
  UNKNOWN, PUMP, EFFICIENCY, VOLUME,
  HEADLOSS
}
 
- Public Types inherited from Element
enum  ElementType {
  NODE, LINK, PATTERN, CURVE,
  CONTROL
}
 

Public Member Functions

 Curve (std::string name_)
 
void setType (int curveType)
 
void addData (double x, double y)
 
int size ()
 
int curveType ()
 
double x (int index)
 
double y (int index)
 
void findSegment (double xseg, double &slope, double &intercept)
 
double getYofX (double x)
 
double getXofY (double y)
 
- Public Member Functions inherited from Element
 Element (std::string name_)
 

Static Public Attributes

static const char * CurveTypeWords []
 

Additional Inherited Members

- Public Attributes inherited from Element
std::string name
 element's ID name
 
int index
 index in array of elements
 

Detailed Description

An ordered collection of x,y data pairs.

Curves can be used to describe how tank volume varies with height, how pump head or efficiency varies with flow, or how a valve's head loss varies with flow.

Member Data Documentation

const char * Curve::CurveTypeWords
static
Initial value:
=
{"", "PUMP", "EFFICIENCY", "VOLUME", "HEADLOSS", 0}

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