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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • tableName

      private String tableName
    • flowRates

      private double[] flowRates
    • compressorNames

      private List<String> compressorNames
    • flowRateUnit

      private String flowRateUnit
    • pressureUnit

      private String pressureUnit
    • inletPressure

      private double inletPressure
    • operatingPoints

      private FlowRateOptimizer.ProcessOperatingPoint[] operatingPoints
  • Constructor Details

    • ProcessPerformanceTable

      public ProcessPerformanceTable(String tableName, double[] flowRates, List<String> compressorNames)
      Creates a new process performance table.
      Parameters:
      tableName - name of the table
      flowRates - array of flow rates
      compressorNames - list of compressor names in the process
  • Method Details

    • setOperatingPoint

      public void setOperatingPoint(int index, FlowRateOptimizer.ProcessOperatingPoint point)
      Sets an operating point at the specified index.
      Parameters:
      index - flow rate index
      point - the operating point
    • getOperatingPoint

      public FlowRateOptimizer.ProcessOperatingPoint getOperatingPoint(int index)
      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

      public FlowRateOptimizer.ProcessOperatingPoint findMinimumPowerPoint()
      Finds the operating point with minimum total power.
      Returns:
      the minimum power operating point, or null if no feasible points
    • toFormattedString

      public String toFormattedString()
      Returns a formatted string representation of the table.
      Returns:
      formatted table string
    • getTableName

      public String getTableName()
      Returns:
      the tableName
    • setTableName

      public void setTableName(String tableName)
      Parameters:
      tableName - the tableName to set
    • getFlowRates

      public double[] getFlowRates()
      Returns:
      the flowRates
    • getFlowRateUnit

      public String getFlowRateUnit()
      Returns:
      the flowRateUnit
    • setFlowRateUnit

      public void setFlowRateUnit(String flowRateUnit)
      Parameters:
      flowRateUnit - the flowRateUnit to set
    • getPressureUnit

      public String getPressureUnit()
      Returns:
      the pressureUnit
    • setPressureUnit

      public void setPressureUnit(String pressureUnit)
      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