Class ProcessSystemState.StreamState

java.lang.Object
neqsim.process.processmodel.lifecycle.ProcessSystemState.StreamState
All Implemented Interfaces:
Serializable
Enclosing class:
ProcessSystemState

public static class ProcessSystemState.StreamState extends Object implements Serializable
Represents the state of a process stream with key thermodynamic properties.
Version:
1.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • temperature

      private double temperature
    • pressure

      private double pressure
    • molarFlowRate

      private double molarFlowRate
    • composition

      private Map<String,Double> composition
  • Constructor Details

    • StreamState

      public StreamState()
      Default constructor.
  • Method Details

    • fromStream

      public static ProcessSystemState.StreamState fromStream(StreamInterface stream)
      Creates a StreamState from a StreamInterface.
      Parameters:
      stream - the stream to capture
      Returns:
      a new StreamState
    • getTemperature

      public double getTemperature()
      Gets the stream temperature in Kelvin.
      Returns:
      temperature in K
    • getPressure

      public double getPressure()
      Gets the stream pressure in bara.
      Returns:
      pressure in bara
    • getMolarFlowRate

      public double getMolarFlowRate()
      Gets the molar flow rate in mole/sec.
      Returns:
      molar flow rate
    • getComposition

      public Map<String,Double> getComposition()
      Gets the stream composition (mole fractions).
      Returns:
      composition map of component name to mole fraction