Class MoleFractionControllerUtil

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

public class MoleFractionControllerUtil extends TwoPortEquipment

MoleFractionControllerUtil class.

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

    • serialVersionUID

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

      SystemInterface thermoSystem
    • thermoOps

    • compName

      String compName
    • moleFrac

      double moleFrac
    • molesChange

      double molesChange
    • moleFractionReductionRatio

      double moleFractionReductionRatio
    • moleFractionReduction

      boolean moleFractionReduction
  • Constructor Details

    • MoleFractionControllerUtil

      public MoleFractionControllerUtil(StreamInterface inletStream)

      Constructor for MoleFractionControllerUtil.

      Parameters:
      inletStream - a StreamInterface object
  • Method Details

    • setInletStream

      public void setInletStream(StreamInterface inletStream)
      Set inlet Stream of twoport.

      Setter for the field inletStream.

      Specified by:
      setInletStream in interface TwoPortInterface
      Overrides:
      setInletStream in class TwoPortEquipment
      Parameters:
      inletStream - value to set
    • getMolesChange

      public double getMolesChange()

      Getter for the field molesChange.

      Returns:
      a double
    • setMoleFraction

      public void setMoleFraction(String compName, double moleFrac)

      setMoleFraction.

      Parameters:
      compName - a String object
      moleFrac - a double
    • setComponentRate

      public void setComponentRate(String compName, double rate, String unit)

      setComponentRate.

      Parameters:
      compName - a String object
      rate - a double
      unit - a String object
    • setRelativeMoleFractionReduction

      public void setRelativeMoleFractionReduction(String compName, double moleFracRatio)

      setRelativeMoleFractionReduction.

      Parameters:
      compName - a String object
      moleFracRatio - a double
    • 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
    • displayResult

      public void displayResult()

      displayResult.

      Specified by:
      displayResult in interface ProcessEquipmentInterface
      Overrides:
      displayResult in class ProcessEquipmentBaseClass