Class DehydrationTemplate

java.lang.Object
neqsim.process.design.template.DehydrationTemplate
All Implemented Interfaces:
ProcessTemplate

public class DehydrationTemplate extends Object implements ProcessTemplate
Template for creating TEG (Triethylene Glycol) gas dehydration systems.

This template creates a standard TEG dehydration unit consisting of an absorber column, glycol regeneration system, and associated equipment. The design follows industry standards for natural gas dehydration.

Features

  • TEG absorber with configurable number of theoretical stages
  • Rich glycol flash drum for hydrocarbon recovery
  • Glycol-glycol heat exchanger for heat recovery
  • Regeneration still with configurable reboiler temperature
  • Lean glycol pump and cooler

Usage Example

ProcessBasis basis = new ProcessBasis();
basis.setFeedFluid(wetGasFluid);
basis.setParameter("tegCirculationRate", 5.0); // m3/hr
basis.setParameter("reboilerTemperature", 204.0); // °C
basis.setParameter("numberOfStages", 4);

DehydrationTemplate template = new DehydrationTemplate();
ProcessSystem dehy = template.create(basis);
dehy.run();

Water Content Targets

  • Pipeline specification: 7 lb/MMscf
  • Cryogenic processing: < 1 ppm
  • LNG feed: < 0.1 ppm
Version:
1.0
Author:
NeqSim Development Team
  • Field Details

    • DEFAULT_ABSORBER_STAGES

      private static final int DEFAULT_ABSORBER_STAGES
      Default number of theoretical stages in absorber.
      See Also:
    • DEFAULT_REBOILER_TEMP_C

      private static final double DEFAULT_REBOILER_TEMP_C
      Default reboiler temperature in Celsius.
      See Also:
    • DEFAULT_LEAN_TEG_PURITY

      private static final double DEFAULT_LEAN_TEG_PURITY
      Default lean TEG purity (mass fraction).
      See Also:
    • DEFAULT_TEG_RATE_PER_MMSCFD

      private static final double DEFAULT_TEG_RATE_PER_MMSCFD
      Default TEG circulation rate in m3/hr per MMscfd of gas.
      See Also:
    • DEFAULT_LEAN_GLYCOL_TEMP_C

      private static final double DEFAULT_LEAN_GLYCOL_TEMP_C
      Default lean glycol temperature in Celsius.
      See Also:
  • Constructor Details

    • DehydrationTemplate

      public DehydrationTemplate()
      Creates a new DehydrationTemplate.
  • Method Details

    • create

      public ProcessSystem create(ProcessBasis basis)
      Create a process system from this template using the given process basis.
      Specified by:
      create in interface ProcessTemplate
      Parameters:
      basis - the process basis containing feed conditions and constraints
      Returns:
      a configured ProcessSystem
    • createTEGFluid

      private SystemInterface createTEGFluid(double purity, double pressure)
      Creates a TEG fluid for the dehydration system.
      Parameters:
      purity - TEG mass fraction (typically 0.98-0.995)
      pressure - system pressure in bara
      Returns:
      TEG fluid system
    • isApplicable

      public boolean isApplicable(SystemInterface fluid)
      Check if this template is applicable for the given fluid.
      Specified by:
      isApplicable in interface ProcessTemplate
      Parameters:
      fluid - the fluid to check
      Returns:
      true if template is applicable
    • getRequiredEquipmentTypes

      public String[] getRequiredEquipmentTypes()
      Get the required equipment types for this template.
      Specified by:
      getRequiredEquipmentTypes in interface ProcessTemplate
      Returns:
      array of equipment type names
    • getExpectedOutputs

      public String[] getExpectedOutputs()
      Get the expected outputs from this process template.
      Specified by:
      getExpectedOutputs in interface ProcessTemplate
      Returns:
      array of output stream names/types
    • getName

      public String getName()
      Get the template name.
      Specified by:
      getName in interface ProcessTemplate
      Returns:
      template name
    • getDescription

      public String getDescription()
      Get a description of the process template.
      Specified by:
      getDescription in interface ProcessTemplate
      Returns:
      template description
    • calculateTEGRate

      public static double calculateTEGRate(double gasFlowRate, double inletWaterContent, double outletWaterContent)
      Calculates required TEG circulation rate for target water content.
      Parameters:
      gasFlowRate - gas flow rate in MMscfd
      inletWaterContent - inlet water content in lb/MMscf
      outletWaterContent - target outlet water content in lb/MMscf
      Returns:
      required TEG circulation rate in gal/hr
    • estimateEquilibriumWater

      public static double estimateEquilibriumWater(double tegPurity, double temperature, double pressure)
      Estimates equilibrium water content above TEG at given conditions.
      Parameters:
      tegPurity - TEG mass fraction
      temperature - temperature in Celsius
      pressure - pressure in bara
      Returns:
      equilibrium water content in lb/MMscf