Class MixerMechanicalDesign

java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesign
neqsim.process.mechanicaldesign.mixer.MixerMechanicalDesign
All Implemented Interfaces:
Serializable

public class MixerMechanicalDesign extends MechanicalDesign
Mechanical design class for mixing equipment.

Handles design calculations for tees, manifolds, and mixing headers 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].
    • mixingChamberVolume

      private double mixingChamberVolume
      Mixing chamber 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].
    • mixerType

      private String mixerType
      Mixer type (tee, wye, header, manifold).
    • numberOfBranches

      private int numberOfBranches
      Number of inlet branches.
    • materialGrade

      private String materialGrade
      Material grade for construction.
    • designStandardCode

      private String designStandardCode
      Design standard code.
  • Constructor Details

    • MixerMechanicalDesign

      public MixerMechanicalDesign(ProcessEquipmentInterface equipment)
      Constructor for MixerMechanicalDesign.
      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
    • getMixingChamberVolume

      public double getMixingChamberVolume()
      Gets the mixing chamber volume.
      Returns:
      mixing chamber 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
    • getMixerType

      public String getMixerType()
      Gets the mixer type.
      Returns:
      mixer type (tee, wye, header, manifold)
    • setMixerType

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

      public int getNumberOfBranches()
      Gets the number of inlet 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
    • 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.

    • calculateMixerCost

      public double calculateMixerCost()
      Calculate cost for mixing 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