Class PressureDrop

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

public class PressureDrop extends ThrottlingValve

PressureDrop class.

The pressure drop unit is used to simulate pressure drops in process plant. The proessure drop is simulated using a constant enthalpy flash.
Version:
$Id: $Id
Author:
esol
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.
    • thermoSystem

      SystemInterface thermoSystem
    • pressureDrop

      double pressureDrop
  • Constructor Details

    • PressureDrop

      public PressureDrop(String name)

      Constructor for PressureDrop.

      Parameters:
      name - the name of the pressure drop unit
    • PressureDrop

      public PressureDrop(String name, StreamInterface inletStream)

      Constructor for PressureDropUnit.

      Parameters:
      name - a String object
      inletStream - a StreamInterface object
  • Method Details

    • setPressureDrop

      public void setPressureDrop(double pressureDrop, String unit)

      Setter for the field pressureDrop.

      Parameters:
      pressureDrop - 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.

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