Class SplitterMechanicalDesign

java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesign
neqsim.process.mechanicaldesign.splitter.SplitterMechanicalDesign
All Implemented Interfaces:
Serializable

public class SplitterMechanicalDesign extends MechanicalDesign
Mechanical design class for splitter equipment.

Handles design calculations for flow splitters, distribution headers, and manifolds including header sizing, branch connections, and pressure drop calculations.

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

    • serialVersionUID

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

      private double headerDiameter
      Header internal diameter [m].
    • headerWallThickness

      private double headerWallThickness
      Header wall thickness [mm].
    • headerLength

      private double headerLength
      Header length [m].
    • branchDiameter

      private double branchDiameter
      Branch connection diameter [m].
    • manifoldVolume

      private double manifoldVolume
      Distribution manifold volume [m3].
    • designVelocity

      private double designVelocity
      Design velocity in header [m/s].
    • maxAllowableVelocity

      private double maxAllowableVelocity
      Maximum allowable velocity [m/s].
    • totalPressureDrop

      private double totalPressureDrop
      Total pressure drop [bar].
    • splitterType

      private String splitterType
      Splitter type (tee, wye, header, manifold).
    • numberOfBranches

      private int numberOfBranches
      Number of outlet branches.
    • materialGrade

      private String materialGrade
      Material grade for construction.
    • designStandardCode

      private String designStandardCode
      Design standard code.
    • splitRatios

      private double[] splitRatios
      Split ratios for each branch.
  • Constructor Details

    • SplitterMechanicalDesign

      public SplitterMechanicalDesign(ProcessEquipmentInterface equipment)
      Constructor for SplitterMechanicalDesign.
      Parameters:
      equipment - the process equipment for this design
  • Method Details

    • readDesignSpecifications

      public void readDesignSpecifications()

      readDesignSpecifications.

      Overrides:
      readDesignSpecifications in class MechanicalDesign
    • calcDesign

      public void calcDesign()

      calcDesign.

      Overrides:
      calcDesign in class MechanicalDesign
    • roundToStandardPipeSize

      private double roundToStandardPipeSize(double diameter)
      Rounds diameter to nearest standard pipe size.
      Parameters:
      diameter - diameter in meters
      Returns:
      nearest standard pipe diameter in meters
    • getHeaderDiameter

      public double getHeaderDiameter()
      Gets the header diameter.
      Returns:
      header diameter in meters
    • setHeaderDiameter

      public void setHeaderDiameter(double diameter)
      Sets the header diameter.
      Parameters:
      diameter - header diameter in meters
    • getHeaderWallThickness

      public double getHeaderWallThickness()
      Gets the header wall thickness.
      Returns:
      wall thickness in mm
    • getHeaderLength

      public double getHeaderLength()
      Gets the header length.
      Returns:
      header length in meters
    • setHeaderLength

      public void setHeaderLength(double length)
      Sets the header length.
      Parameters:
      length - header length in meters
    • getBranchDiameter

      public double getBranchDiameter()
      Gets the branch connection diameter.
      Returns:
      branch diameter in meters
    • setBranchDiameter

      public void setBranchDiameter(double diameter)
      Sets the branch connection diameter.
      Parameters:
      diameter - branch diameter in meters
    • getManifoldVolume

      public double getManifoldVolume()
      Gets the manifold volume.
      Returns:
      manifold volume in m3
    • getDesignVelocity

      public double getDesignVelocity()
      Gets the design velocity.
      Returns:
      design velocity in m/s
    • setDesignVelocity

      public void setDesignVelocity(double velocity)
      Sets the design velocity.
      Parameters:
      velocity - design velocity in m/s
    • getMaxAllowableVelocity

      public double getMaxAllowableVelocity()
      Gets the maximum allowable velocity.
      Returns:
      max allowable velocity in m/s
    • setMaxAllowableVelocity

      public void setMaxAllowableVelocity(double velocity)
      Sets the maximum allowable velocity.
      Parameters:
      velocity - max velocity in m/s
    • getTotalPressureDrop

      public double getTotalPressureDrop()
      Gets the total pressure drop.
      Returns:
      pressure drop in bar
    • getSplitterType

      public String getSplitterType()
      Gets the splitter type.
      Returns:
      splitter type (tee, wye, header, manifold)
    • setSplitterType

      public void setSplitterType(String type)
      Sets the splitter type.
      Parameters:
      type - splitter type (tee, wye, header, manifold)
    • getNumberOfBranches

      public int getNumberOfBranches()
      Gets the number of outlet branches.
      Returns:
      number of branches
    • getMaterialGrade

      public String getMaterialGrade()
      Gets the material grade.
      Returns:
      material grade
    • setMaterialGrade

      public void setMaterialGrade(String grade)
      Sets the material grade.
      Parameters:
      grade - material grade
    • getDesignStandardCode

      public String getDesignStandardCode()
      Gets the design standard code.
      Returns:
      design standard code
    • setDesignStandardCode

      public void setDesignStandardCode(String code)
      Sets the design standard code.
      Parameters:
      code - design standard code
    • getSplitRatios

      public double[] getSplitRatios()
      Gets the split ratios.
      Returns:
      array of split ratios for each branch
    • calculateWeights

      public void calculateWeights()
      Calculate equipment weight for cost estimation.

      Calculates header weight, branch weight, and total piping weight based on dimensions and wall thickness.

    • calculateSplitterCost

      public double calculateSplitterCost()
      Calculate cost for splitter equipment.
      Returns:
      estimated cost in USD
    • 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();
      
      
      Overrides:
      toJson in class MechanicalDesign
      Returns:
      JSON string representation of the mechanical design