Class Condenser

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

public class Condenser extends SimpleTray

Condenser class.

Version:
$Id: $Id
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

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

      private double refluxRatio
    • refluxIsSet

      boolean refluxIsSet
    • duty

      double duty
    • totalCondenser

      boolean totalCondenser
    • mixedStreamSplitter

      Splitter mixedStreamSplitter
    • separation_with_liquid_reflux

      private boolean separation_with_liquid_reflux
    • reflux_value

      private double reflux_value
    • reflux_unit

      private String reflux_unit
  • Constructor Details

    • Condenser

      public Condenser(String name)
      Constructor for the Condenser class.
      Parameters:
      name - a String object
  • Method Details

    • isSeparation_with_liquid_reflux

      public boolean isSeparation_with_liquid_reflux()
      Checks if the separation process involves liquid reflux.
      Returns:
      true if the separation process involves liquid reflux, false otherwise.
    • setSeparation_with_liquid_reflux

      public void setSeparation_with_liquid_reflux(boolean separation_with_liquid_reflux, double value, String unit)
      Sets the separation with liquid reflux parameters.
      Parameters:
      separation_with_liquid_reflux - a boolean indicating if separation with liquid reflux is set
      value - the value of the reflux
      unit - the unit of the reflux value
    • setTotalCondenser

      public void setTotalCondenser(boolean isTotalCondenser)

      Setter for the field totalCondenser.

      Parameters:
      isTotalCondenser - a boolean
    • getRefluxRatio

      public double getRefluxRatio()

      Getter for the field refluxRatio.

      Returns:
      the refluxRatio
    • setRefluxRatio

      public void setRefluxRatio(double refluxRatio)

      Setter for the field refluxRatio.

      Parameters:
      refluxRatio - the refluxRatio to set
    • getDuty

      public double getDuty()

      Getter for the field duty.

      Returns:
      a double
    • getDuty

      public double getDuty(String unit)

      getDuty.

      Parameters:
      unit - a String object
      Returns:
      a double
    • getGasOutStream

      public StreamInterface getGasOutStream()

      getGasOutStream.

      Overrides:
      getGasOutStream in class SimpleTray
      Returns:
      a Stream object
    • getProductOutStream

      public StreamInterface getProductOutStream()

      getProductOutStream.

      Returns:
      a Stream object
    • getLiquidOutStream

      public StreamInterface getLiquidOutStream()

      getLiquidOutStream.

      Overrides:
      getLiquidOutStream in class SimpleTray
      Returns:
      a Stream object
    • getLiquidProductStream

      public StreamInterface getLiquidProductStream()
      Get the liquid product stream from the condenser.
      Returns:
      a StreamInterface object
    • run

      public void run(UUID id)

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

      Specified by:
      run in interface SimulationInterface
      Overrides:
      run in class SimpleTray
      Parameters:
      id - UUID