Add EN_PRESS_UNITS to EN_getoption & EN_setoption
This commit is contained in:
@@ -291,6 +291,19 @@ typedef enum {
|
||||
EN_CMS = 10 //!< Cubic meters per second
|
||||
} EN_FlowUnits;
|
||||
|
||||
/// Pressure units
|
||||
/**
|
||||
The available choices for pressure units for the \b EN_PRESS_UNITS option in @ref EN_getoption
|
||||
and @ref EN_setoption. For networks using US Customary units for flow ( \b EN_CFS through
|
||||
\b EN_AFD ) pressure units can only be set as PSI. For network using metric units, you can
|
||||
select either \b EN_MTR or \b EN_KPA.
|
||||
*/
|
||||
typedef enum {
|
||||
EN_PSI = 0, //!< Pounds per square inch
|
||||
EN_KPA = 1, //!< Kilopascals
|
||||
EN_METERS = 2 //!< Meters
|
||||
} EN_PressUnits;
|
||||
|
||||
/// Demand models
|
||||
/**
|
||||
These choices for modeling consumer demands are used with @ref EN_getdemandmodel
|
||||
@@ -337,7 +350,8 @@ typedef enum {
|
||||
EN_TANKORDER = 21, //!< Bulk water reaction order for tanks
|
||||
EN_CONCENLIMIT = 22, //!< Limiting concentration for growth reactions
|
||||
EN_DEMANDPATTERN = 23, //!< Name of default demand pattern
|
||||
EN_EMITBACKFLOW = 24 //!< 1 if emitters can backflow, 0 if not
|
||||
EN_EMITBACKFLOW = 24, //!< 1 if emitters can backflow, 0 if not
|
||||
EN_PRESS_UNITS = 25 //!< Pressure units (see @ref EN_PressUnits)
|
||||
} EN_Option;
|
||||
|
||||
/// Simple control types
|
||||
|
||||
Reference in New Issue
Block a user