Class BlockConfig

java.lang.Object
neqsim.process.fielddevelopment.facility.BlockConfig
All Implemented Interfaces:
Serializable

public final class BlockConfig extends Object implements Serializable
Configuration for a single facility block.

Captures the parameters needed to configure a specific block type within a facility.

Version:
1.0
Author:
ESOL
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • of

      public static BlockConfig of(BlockType type)
      Creates a block configuration with default parameters.
      Parameters:
      type - block type
      Returns:
      block configuration
    • of

      public static BlockConfig of(BlockType type, String name)
      Creates a block configuration with a custom name.
      Parameters:
      type - block type
      name - custom name
      Returns:
      block configuration
    • of

      public static BlockConfig of(BlockType type, Map<String,Object> parameters)
      Creates a block configuration with parameters.
      Parameters:
      type - block type
      parameters - configuration parameters
      Returns:
      block configuration
    • compression

      public static BlockConfig compression(int stages)
      Creates a compression block with specified stages.
      Parameters:
      stages - number of compression stages
      Returns:
      compression block config
    • compression

      public static BlockConfig compression(int stages, double outletPressure)
      Creates a compression block with specified stages and outlet pressure.
      Parameters:
      stages - number of compression stages
      outletPressure - target outlet pressure in bara
      Returns:
      compression block config
    • tegDehydration

      public static BlockConfig tegDehydration(double waterSpecPpm)
      Creates a TEG dehydration block with specified water spec.
      Parameters:
      waterSpecPpm - target water content in ppm
      Returns:
      TEG block config
    • co2Membrane

      public static BlockConfig co2Membrane(double co2SpecPercent)
      Creates a CO2 membrane removal block.
      Parameters:
      co2SpecPercent - target CO2 content in %
      Returns:
      membrane block config
    • co2Amine

      public static BlockConfig co2Amine(double co2SpecPercent)
      Creates a CO2 amine removal block.
      Parameters:
      co2SpecPercent - target CO2 content in %
      Returns:
      amine block config
    • inletSeparation

      public static BlockConfig inletSeparation(double pressure, double temperature)
      Creates an inlet separation block.
      Parameters:
      pressure - separation pressure in bara
      temperature - separation temperature in degC
      Returns:
      inlet sep block config
    • oilStabilization

      public static BlockConfig oilStabilization(int stages, double rvp)
      Creates an oil stabilization block.
      Parameters:
      stages - number of flash stages
      rvp - target RVP in bara
      Returns:
      stabilization block config
    • getType

      public BlockType getType()
    • getName

      public String getName()
    • getParameters

      public Map<String,Object> getParameters()
    • getParameter

      public <T> T getParameter(String key, T defaultValue)
    • getIntParameter

      public int getIntParameter(String key, int defaultValue)
    • getDoubleParameter

      public double getDoubleParameter(String key, double defaultValue)
    • toString

      public String toString()
      Overrides:
      toString in class Object