Class CompressorOptimizationHelper.CompressorBounds
java.lang.Object
neqsim.process.util.optimizer.CompressorOptimizationHelper.CompressorBounds
- Enclosing class:
CompressorOptimizationHelper
Container for compressor operating bounds extracted from performance charts.
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompressorBounds(double minSpeed, double maxSpeed, double minFlow, double maxFlow, double surgeFlow, double stoneWallFlow, String flowUnit) Constructs compressor bounds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the flow unit.doubleReturns maximum flow at maximum speed.doubleReturns maximum operating speed in RPM.doubleReturns minimum flow at minimum speed.doubleReturns minimum operating speed in RPM.double[]getRecommendedRange(double marginFraction) Returns the recommended operating range as a fraction of max flow.doubleReturns stone wall (choke) flow at reference speed.doubleReturns surge line flow at reference speed.toString()
-
Field Details
-
minSpeed
private final double minSpeed -
maxSpeed
private final double maxSpeed -
minFlow
private final double minFlow -
maxFlow
private final double maxFlow -
surgeFlow
private final double surgeFlow -
stoneWallFlow
private final double stoneWallFlow -
flowUnit
-
-
Constructor Details
-
CompressorBounds
public CompressorBounds(double minSpeed, double maxSpeed, double minFlow, double maxFlow, double surgeFlow, double stoneWallFlow, String flowUnit) Constructs compressor bounds.- Parameters:
minSpeed- minimum operating speed (RPM)maxSpeed- maximum operating speed (RPM)minFlow- minimum flow at minimum speedmaxFlow- maximum flow at maximum speedsurgeFlow- surge line flow at reference speedstoneWallFlow- stone wall (choke) flow at reference speedflowUnit- flow rate unit
-
-
Method Details
-
getMinSpeed
public double getMinSpeed()Returns minimum operating speed in RPM.- Returns:
- minimum speed
-
getMaxSpeed
public double getMaxSpeed()Returns maximum operating speed in RPM.- Returns:
- maximum speed
-
getMinFlow
public double getMinFlow()Returns minimum flow at minimum speed.- Returns:
- minimum flow
-
getMaxFlow
public double getMaxFlow()Returns maximum flow at maximum speed.- Returns:
- maximum flow
-
getSurgeFlow
public double getSurgeFlow()Returns surge line flow at reference speed.- Returns:
- surge flow
-
getStoneWallFlow
public double getStoneWallFlow()Returns stone wall (choke) flow at reference speed.- Returns:
- stone wall flow
-
getFlowUnit
-
getRecommendedRange
public double[] getRecommendedRange(double marginFraction) Returns the recommended operating range as a fraction of max flow.- Parameters:
marginFraction- safety margin (e.g., 0.1 for 10%)- Returns:
- array of [minRecommended, maxRecommended] flows
-
toString
-