Class SurgeCurve
java.lang.Object
neqsim.process.equipment.compressor.BoundaryCurve
neqsim.process.equipment.compressor.SurgeCurve
- All Implemented Interfaces:
Serializable, BoundaryCurveInterface
- Direct Known Subclasses:
SafeSplineSurgeCurve
SurgeCurve defines the compressor surge limit.
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static org.apache.logging.log4j.LoggerLogger object for class.private static final longFields inherited from class BoundaryCurve
chartConditions, flow, flowFitter, flowFitterFunc, head, isActive -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SurgeCurve(double[] flow, double[] head) Create a surge curve from flow and head arrays. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetSurgeFlow(double head) Get the surge flow for a given head.booleanisLimit(double head, double flow) Check if a flow/head point is on the limiting side of the curve.booleanisSurge(double head, double flow) Check if the given point is in surge.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class.
-
-
Constructor Details
-
SurgeCurve
public SurgeCurve()Default constructor. -
SurgeCurve
public SurgeCurve(double[] flow, double[] head) Create a surge curve from flow and head arrays.- Parameters:
flow- array of flow valueshead- array of head values
-
-
Method Details
-
getSurgeFlow
public double getSurgeFlow(double head) Get the surge flow for a given head.- Parameters:
head- head value- Returns:
- surge flow
-
isSurge
public boolean isSurge(double head, double flow) Check if the given point is in surge.- Parameters:
head- head valueflow- flow value- Returns:
- true if the point is in surge
-
isLimit
public 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
-