Class BoundaryCurve

java.lang.Object
neqsim.process.equipment.compressor.BoundaryCurve
All Implemented Interfaces:
Serializable, BoundaryCurveInterface
Direct Known Subclasses:
StoneWallCurve, SurgeCurve

public abstract class BoundaryCurve extends Object implements BoundaryCurveInterface
Abstract base implementation for compressor limit curves such as surge and stone wall curves.
Author:
esol
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double[]
     
    protected double[]
     
    protected org.apache.commons.math3.fitting.WeightedObservedPoints
     
    protected org.apache.commons.math3.analysis.polynomials.PolynomialFunction
     
    protected double[]
     
    protected boolean
     
    private static final long
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor for BoundaryCurve.
    protected
    BoundaryCurve(double[] flow, double[] head)
    Constructor for BoundaryCurve.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    double[]
    Get flow values defining the curve.
    double
    getFlow(double head)
    Get the flow corresponding to a given head value on the curve.
    double[]
    Get head values defining the curve.
    int
    boolean
    Determine if the curve is active in calculations.
    void
    setActive(boolean isActive)
    Activate or deactivate the curve.
    void
    setCurve(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, wait

    Methods inherited from interface BoundaryCurveInterface

    isLimit
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • flow

      protected double[] flow
    • 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 of
      invalid reference
      double
      objects
      head - an array of
      invalid reference
      double
      objects
  • 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:
      setCurve in interface BoundaryCurveInterface
      Parameters:
      chartConditions - conditions for the reference curve, or null
      flow - array of flow values
      head - array of head values
    • getFlow

      public double[] getFlow()
      Get flow values defining the curve.
      Returns:
      an array of
      invalid reference
      double
      objects
    • getFlow

      public double getFlow(double head)
      Get the flow corresponding to a given head value on the curve.
      Specified by:
      getFlow in interface BoundaryCurveInterface
      Parameters:
      head - the head value
      Returns:
      the corresponding flow
    • isActive

      public boolean isActive()
      Determine if the curve is active in calculations.
      Specified by:
      isActive in interface BoundaryCurveInterface
      Returns:
      true if the curve is active
    • setActive

      public void setActive(boolean isActive)
      Activate or deactivate the curve.
      Specified by:
      setActive in interface BoundaryCurveInterface
      Parameters:
      isActive - true to activate the curve
    • getHead

      public double[] getHead()
      Get head values defining the curve.
      Returns:
      an array of
      invalid reference
      double
      objects
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object