Class FlowRateOptimizer.ProcessPerformanceTable
java.lang.Object
neqsim.process.util.optimizer.FlowRateOptimizer.ProcessPerformanceTable
- All Implemented Interfaces:
Serializable
- Enclosing class:
FlowRateOptimizer
public static class FlowRateOptimizer.ProcessPerformanceTable
extends Object
implements Serializable
Performance table for a process system at different flow rates.
Stores operating points for a range of flow rates at a fixed inlet pressure, providing methods to access and format process performance data.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[]private Stringprivate doubleprivate FlowRateOptimizer.ProcessOperatingPoint[]private Stringprivate static final longSerialization version UID.private String -
Constructor Summary
ConstructorsConstructorDescriptionProcessPerformanceTable(String tableName, double[] flowRates, List<String> compressorNames) Creates a new process performance table. -
Method Summary
Modifier and TypeMethodDescriptionFinds the operating point with minimum total power.double[]doublegetOperatingPoint(int index) Gets an operating point at the specified index.doublegetOutletPressure(int index) Gets the outlet pressure at the specified flow rate index.doublegetTotalPower(int index) Gets the total power at the specified flow rate index.voidsetFlowRateUnit(String flowRateUnit) voidsetInletPressure(double inletPressure) voidsetOperatingPoint(int index, FlowRateOptimizer.ProcessOperatingPoint point) Sets an operating point at the specified index.voidsetPressureUnit(String pressureUnit) voidsetTableName(String tableName) Returns a formatted string representation of the table.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
tableName
-
flowRates
private double[] flowRates -
compressorNames
-
flowRateUnit
-
pressureUnit
-
inletPressure
private double inletPressure -
operatingPoints
-
-
Constructor Details
-
ProcessPerformanceTable
-
-
Method Details
-
setOperatingPoint
Sets an operating point at the specified index.- Parameters:
index- flow rate indexpoint- the operating point
-
getOperatingPoint
Gets an operating point at the specified index.- Parameters:
index- flow rate index- Returns:
- the operating point, or null if not set
-
getTotalPower
public double getTotalPower(int index) Gets the total power at the specified flow rate index.- Parameters:
index- flow rate index- Returns:
- total power in kW, or NaN if not feasible
-
getOutletPressure
public double getOutletPressure(int index) Gets the outlet pressure at the specified flow rate index.- Parameters:
index- flow rate index- Returns:
- outlet pressure, or NaN if not feasible
-
findMinimumPowerPoint
Finds the operating point with minimum total power.- Returns:
- the minimum power operating point, or null if no feasible points
-
toFormattedString
Returns a formatted string representation of the table.- Returns:
- formatted table string
-
getTableName
- Returns:
- the tableName
-
setTableName
- Parameters:
tableName- the tableName to set
-
getFlowRates
public double[] getFlowRates()- Returns:
- the flowRates
-
getFlowRateUnit
- Returns:
- the flowRateUnit
-
setFlowRateUnit
- Parameters:
flowRateUnit- the flowRateUnit to set
-
getPressureUnit
- Returns:
- the pressureUnit
-
setPressureUnit
- Parameters:
pressureUnit- the pressureUnit to set
-
getInletPressure
public double getInletPressure()- Returns:
- the inletPressure
-
setInletPressure
public void setInletPressure(double inletPressure) - Parameters:
inletPressure- the inletPressure to set
-