EPANET
3.0
EPANET Development Project
|
An ordered collection of x,y data pairs. More...
#include <curve.h>
Public Types | |
enum | CurveType { UNKNOWN, PUMP, EFFICIENCY, VOLUME, HEADLOSS } |
![]() | |
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) |
![]() | |
Element (std::string name_) | |
Static Public Attributes | |
static const char * | CurveTypeWords [] |
Additional Inherited Members | |
![]() | |
std::string | name |
element's ID name | |
int | index |
index in array of elements | |
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.
|
static |