Class SeparatorMechanicalDesign

java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesign
neqsim.process.mechanicaldesign.separator.SeparatorMechanicalDesign
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbsorberMechanicalDesign, GasScrubberMechanicalDesign

public class SeparatorMechanicalDesign extends MechanicalDesign

SeparatorMechanicalDesign class.

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

    • serialVersionUID

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

      double gasLoadFactor
    • volumeSafetyFactor

      double volumeSafetyFactor
    • Fg

      double Fg
    • retentionTime

      double retentionTime
  • Constructor Details

  • Method Details

    • readDesignSpecifications

      public void readDesignSpecifications()

      readDesignSpecifications.

      Overrides:
      readDesignSpecifications in class MechanicalDesign
    • displayResults

      public void displayResults()

      displayResults.

      Overrides:
      displayResults in class MechanicalDesign
    • calcDesign

      public void calcDesign()

      calcDesign.

      Overrides:
      calcDesign in class MechanicalDesign
    • setDesign

      public void setDesign()

      setDesign.

      Overrides:
      setDesign in class MechanicalDesign
    • getResponse

      public SeparatorMechanicalDesignResponse getResponse()
      Get the mechanical design response object.

      This method returns a MechanicalDesignResponse object that can be further customized or combined with other data before serialization.

      Returns a separator-specific response with additional fields for vessel sizing, internals, and process design data.

      Overrides:
      getResponse in class MechanicalDesign
      Returns:
      MechanicalDesignResponse object
    • toJson

      public String toJson()
      Export mechanical design data to JSON format.

      This method creates a MechanicalDesignResponse object and serializes it to JSON using Gson. The JSON includes equipment identification, weight breakdown, design conditions, dimensions, and materials information.

      Usage example:

      
      MechanicalDesign mecDesign = separator.getMechanicalDesign();
      mecDesign.calcDesign();
      String json = mecDesign.toJson();
      
      

      Returns JSON with separator-specific fields.

      Overrides:
      toJson in class MechanicalDesign
      Returns:
      JSON string representation of the mechanical design
    • getGasLoadFactor

      public double getGasLoadFactor()
      Get gas load factor (K-factor).
      Returns:
      gas load factor
    • getVolumeSafetyFactor

      public double getVolumeSafetyFactor()
      Get volume safety factor.
      Returns:
      volume safety factor
    • getFg

      public double getFg()
      Get liquid level fraction (Fg).
      Returns:
      liquid level fraction
    • getRetentionTime

      public double getRetentionTime()
      Get retention time in seconds.
      Returns:
      retention time