Class BoundaryCurve
java.lang.Object
neqsim.process.equipment.compressor.BoundaryCurve
- All Implemented Interfaces:
Serializable, BoundaryCurveInterface
- Direct Known Subclasses:
StoneWallCurve, SurgeCurve
Abstract base implementation for compressor limit curves such as surge and stone wall curves.
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double[]protected double[]protected org.apache.commons.math3.fitting.WeightedObservedPointsprotected org.apache.commons.math3.analysis.polynomials.PolynomialFunctionprotected double[]protected booleanprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for BoundaryCurve.protectedBoundaryCurve(double[] flow, double[] head) Constructor for BoundaryCurve. -
Method Summary
Modifier and TypeMethodDescriptionbooleandouble[]getFlow()Get flow values defining the curve.doublegetFlow(double head) Get the flow corresponding to a given head value on the curve.double[]getHead()Get head values defining the curve.inthashCode()booleanisActive()Determine if the curve is active in calculations.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.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BoundaryCurveInterface
isLimit
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
flow
protected double[] flow -
head
protected double[] head -
chartConditions
protected double[] chartConditions -
isActive
protected boolean isActive -
flowFitter
protected org.apache.commons.math3.fitting.WeightedObservedPoints flowFitter -
flowFitterFunc
protected org.apache.commons.math3.analysis.polynomials.PolynomialFunction flowFitterFunc
-
-
Constructor Details
-
BoundaryCurve
protected BoundaryCurve()Constructor for BoundaryCurve.
-
BoundaryCurve
protected BoundaryCurve(double[] flow, double[] head) Constructor for BoundaryCurve.
- Parameters:
flow- an array ofobjectsinvalid reference
doublehead- an array ofobjectsinvalid reference
double
-
-
Method Details
-
setCurve
public void setCurve(double[] chartConditions, double[] flow, double[] head) Define the curve from arrays of flow and head values with optional chart conditions.- Specified by:
setCurvein interfaceBoundaryCurveInterface- Parameters:
chartConditions- conditions for the reference curve, or nullflow- array of flow valueshead- array of head values
-
getFlow
public double[] getFlow()Get flow values defining the curve.- Returns:
- an array of
objects
invalid reference
double
-
getFlow
public double getFlow(double head) Get the flow corresponding to a given head value on the curve.- Specified by:
getFlowin interfaceBoundaryCurveInterface- Parameters:
head- the head value- Returns:
- the corresponding flow
-
isActive
public boolean isActive()Determine if the curve is active in calculations.- Specified by:
isActivein interfaceBoundaryCurveInterface- Returns:
- true if the curve is active
-
setActive
public void setActive(boolean isActive) Activate or deactivate the curve.- Specified by:
setActivein interfaceBoundaryCurveInterface- Parameters:
isActive- true to activate the curve
-
getHead
public double[] getHead()Get head values defining the curve.- Returns:
- an array of
objects
invalid reference
double
-
hashCode
-
equals
-