Interface BoundaryCurveInterface

All Superinterfaces:
Serializable
All Known Implementing Classes:
BoundaryCurve, SafeSplineStoneWallCurve, SafeSplineSurgeCurve, StoneWallCurve, SurgeCurve

public interface BoundaryCurveInterface extends Serializable
Common interface for compressor limit curves such as surge and stone wall curves.
Author:
esol
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getFlow(double head)
    Get the flow corresponding to a given head value on the curve.
    boolean
    Determine if the curve is active in calculations.
    boolean
    isLimit(double head, double flow)
    Check if a flow/head point is on the limiting side of the curve.
    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.
  • 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 null
      flow - array of flow values
      head - 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 value
      flow - 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