Class FlowRateAdjuster

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

public class FlowRateAdjuster extends TwoPortEquipment

Adjuster 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.
    • name

      String name
    • desiredGasFlow

      public double desiredGasFlow
    • desiredOilFlow

      public double desiredOilFlow
    • desiredWaterFlow

      public double desiredWaterFlow
    • unit

      private String unit
    • adjustedEquipment

      ProcessEquipmentInterface adjustedEquipment
    • targetEquipment

      ProcessEquipmentInterface targetEquipment
    • adjustedVariable

      String adjustedVariable
    • adjustedVariableUnit

      String adjustedVariableUnit
    • maxAdjustedValue

      double maxAdjustedValue
    • minAdjustedValue

      double minAdjustedValue
    • targetVariable

      String targetVariable
    • targetPhase

      String targetPhase
    • targetComponent

      String targetComponent
    • targetValue

      double targetValue
    • targetUnit

      String targetUnit
    • tolerance

      private double tolerance
    • inputValue

      double inputValue
    • oldInputValue

      double oldInputValue
    • error

      private double error
    • oldError

      private double oldError
    • iterations

      int iterations
    • activateWhenLess

      private boolean activateWhenLess
    • waterStream

      Stream waterStream
    • waterDensity

      double waterDensity
  • Constructor Details

    • FlowRateAdjuster

      public FlowRateAdjuster(String name)

      Constructor for FlowRateAdjuster.

      Parameters:
      name - a String object
    • FlowRateAdjuster

      public FlowRateAdjuster(String name, StreamInterface inStream)

      Constructor for FlowRateAdjuster.

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

    • setAdjustedFlowRates

      public void setAdjustedFlowRates(Double desiredGasFlow, Double desiredOilFlow, Double desiredWaterFlow, String unit)

      setAdjustedVariable.

      Parameters:
      desiredGasFlow - a Double object
      desiredOilFlow - a Double object
      desiredWaterFlow - a Double object
      unit - a String object
    • setAdjustedFlowRates

      public void setAdjustedFlowRates(Double desiredGasFlow, Double desiredOilFlow, String unit)

      setAdjustedVariable.

      Parameters:
      desiredGasFlow - a Double object
      desiredOilFlow - a Double object
      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