Class SurgeCurve

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

public class SurgeCurve extends BoundaryCurve
SurgeCurve defines the compressor surge limit.
Author:
esol
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • logger

      static org.apache.logging.log4j.Logger logger
      Logger 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 values
      head - 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 value
      flow - 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 value
      flow - the flow value
      Returns:
      true if the point violates the limit represented by the curve