Class VirtualStream

All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface

public class VirtualStream extends ProcessEquipmentBaseClass

VirtualStream class.

Version:
$Id: $Id
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

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

      static org.apache.logging.log4j.Logger logger
      Logger object for class.
    • refStream

      protected StreamInterface refStream
    • outStream

      protected StreamInterface outStream
    • flowRate

      protected double flowRate
    • flowUnit

      protected String flowUnit
    • setFlowRate

      protected boolean setFlowRate
    • temperature

      protected double temperature
    • temperatureUnit

      protected String temperatureUnit
    • setTemperature

      protected boolean setTemperature
    • pressure

      protected double pressure
    • pressureUnit

      protected String pressureUnit
    • setPressure

      protected boolean setPressure
    • composition

      protected double[] composition
    • compositionUnit

      protected String compositionUnit
    • setComposition

      protected boolean setComposition
  • Constructor Details

    • VirtualStream

      public VirtualStream(String name, StreamInterface stream)

      Constructor for VirtualStream.

      Parameters:
      name - a String object
      stream - a StreamInterface object
    • VirtualStream

      public VirtualStream(String name)

      Constructor for VirtualStream.

      Parameters:
      name - a String object
  • Method Details

    • setReferenceStream

      public void setReferenceStream(StreamInterface stream)

      setReferenceStream.

      Parameters:
      stream - a StreamInterface object
    • setFlowRate

      public void setFlowRate(double rate, String unit)

      Setter for the field flowRate.

      Parameters:
      rate - a double
      unit - a String object
    • setComposition

      public void setComposition(double[] comps, String unit)

      Setter for the field composition.

      Parameters:
      comps - an array of type double
      unit - a String object
    • setTemperature

      public void setTemperature(double temp, String unit)

      Setter for the field temperature.

      Parameters:
      temp - a double
      unit - a String object
    • setPressure

      public void setPressure(double pres, String unit)

      Setter for the field pressure.

      Parameters:
      pres - a double
      unit - a String object
    • run

      public void run(UUID id)

      In this method all thermodynamic and unit operations will be calculated in a steady state calculation.

      Parameters:
      id - UUID
    • getOutStream

      public StreamInterface getOutStream()

      Getter for the field outStream.

      Returns:
      a StreamInterface object
    • solved

      public boolean solved()

      Returns whether or not the module has been solved.

      Specified by:
      solved in interface SimulationInterface
      Overrides:
      solved in class ProcessEquipmentBaseClass
      Returns:
      a boolean