Interface BoundaryCurveInterface
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BoundaryCurve, SafeSplineStoneWallCurve, SafeSplineSurgeCurve, StoneWallCurve, SurgeCurve
Common interface for compressor limit curves such as surge and stone wall curves.
- Author:
- esol
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetFlow(double head) Get the flow corresponding to a given head value on the curve.booleanisActive()Determine if the curve is active in calculations.booleanisLimit(double head, double flow) Check if a flow/head point is on the limiting side of the curve.voidsetActive(boolean isActive) Activate or deactivate the curve.voidsetCurve(double[] chartConditions, double[] flow, double[] head) Define the curve from arrays of flow and head values with optional chart conditions.
-
Method Details
-
setCurve
void setCurve(double[] chartConditions, double[] flow, double[] head) Define the curve from arrays of flow and head values with optional chart conditions.- Parameters:
chartConditions- conditions for the reference curve, or nullflow- array of flow valueshead- array of head values
-
getFlow
double getFlow(double head) Get the flow corresponding to a given head value on the curve.- Parameters:
head- the head value- Returns:
- the corresponding flow
-
isLimit
boolean isLimit(double head, double flow) Check if a flow/head point is on the limiting side of the curve.- Parameters:
head- the head valueflow- the flow value- Returns:
- true if the point violates the limit represented by the curve
-
isActive
boolean isActive()Determine if the curve is active in calculations.- Returns:
- true if the curve is active
-
setActive
void setActive(boolean isActive) Activate or deactivate the curve.- Parameters:
isActive- true to activate the curve
-