Class MixerMechanicalDesign
java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesign
neqsim.process.mechanicaldesign.mixer.MixerMechanicalDesign
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate doubleBranch connection diameter [m].private StringDesign standard code.private doubleDesign velocity in header [m/s].private doubleHeader internal diameter [m].private doubleHeader length [m].private doubleHeader wall thickness [mm].private StringMaterial grade for construction.private doubleMaximum allowable velocity [m/s].private StringMixer type (tee, wye, header, manifold).private doubleMixing chamber volume [m3].private intNumber of inlet branches.private static final longSerialization version UID.private doubleTotal pressure drop [bar].Fields inherited from class MechanicalDesign
costEstimate, designStandard, innerDiameter, maxDesignCv, maxDesignDuty, maxDesignGassVolumeFlow, maxDesignOilVolumeFlow, maxDesignPower, maxDesignPressureDrop, maxDesignVelocity, maxDesignVolumeFlow, maxDesignWaterVolumeFlow, minDesignDuty, minDesignGassVolumeFLow, minDesignOilFLow, minDesignPower, minDesignVolumeFLow, minDesignWaterVolumeFLow, moduleHeight, moduleLength, moduleWidth, outerDiameter, tantanLength, wallThickness, weightElectroInstrument, weightNozzle, weightPiping, weightStructualSteel, weightVessel, weigthInternals, weigthVesselShell -
Constructor Summary
ConstructorsConstructorDescriptionMixerMechanicalDesign(ProcessEquipmentInterface equipment) Constructor for MixerMechanicalDesign. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcDesign.doubleCalculate cost for mixing equipment.voidCalculate equipment weight for cost estimation.doubleGets the branch connection diameter.Gets the design standard code.doubleGets the design velocity.doubleGets the header diameter.doubleGets the header length.doubleGets the header wall thickness.Gets the material grade.doubleGets the maximum allowable velocity.Gets the mixer type.doubleGets the mixing chamber volume.intGets the number of inlet branches.doubleGets the total pressure drop.voidreadDesignSpecifications.private doubleroundToStandardPipeSize(double diameter) Rounds diameter to nearest standard pipe size.voidsetBranchDiameter(double diameter) Sets the branch connection diameter.voidsetDesignStandardCode(String code) Sets the design standard code.voidsetDesignVelocity(double velocity) Sets the design velocity.voidsetHeaderDiameter(double diameter) Sets the header diameter.voidsetHeaderLength(double length) Sets the header length.voidsetMaterialGrade(String grade) Sets the material grade.voidsetMaxAllowableVelocity(double velocity) Sets the maximum allowable velocity.voidsetMixerType(String type) Sets the mixer type.toJson()Export mechanical design data to JSON format.Methods inherited from class MechanicalDesign
addDesignDataSource, calculateCostEstimate, costEstimateToJson, displayResults, equals, generateBillOfMaterials, getApplicableStandards, getBareModuleCost, getCompanySpecificDesignStandards, getConstrutionMaterial, getCorrosionAllowance, getCostEstimate, getDefaultLiquidDensity, getDefaultLiquidViscosity, getDesignCorrosionAllowance, getDesignDataSources, getDesignJointEfficiency, getDesignLimitData, getDesignMaxPressureLimit, getDesignMaxTemperatureLimit, getDesignMinPressureLimit, getDesignMinTemperatureLimit, getDesignStandard, getDuty, getGrassRootsCost, getHeatTransferArea, getInnerDiameter, getInstallationManHours, getJointEfficiency, getLastMarginResult, getMaterialDesignStandard, getMaterialPipeDesignStandard, getMaxAllowableStress, getMaxDesignCv, getMaxDesignGassVolumeFlow, getMaxDesignOilVolumeFlow, getMaxDesignPressure, getMaxDesignPressureDrop, getMaxDesignVelocity, getMaxDesignVolumeFlow, getMaxDesignWaterVolumeFlow, getMaxOperationPressure, getMaxOperationTemperature, getMinDesignGassVolumeFLow, getMinDesignOilFLow, getMinDesignPressure, getMinDesignVolumeFLow, getMinDesignWaterVolumeFLow, getMinOperationPressure, getMinOperationTemperature, getModuleHeight, getModuleLength, getModuleWidth, getOuterDiameter, getPower, getPressureMarginFactor, getProcessEquipment, getPurchasedEquipmentCost, getRecommendedStandards, getResponse, getTantanLength, getTensileStrength, getTotalModuleCost, getVolumeTotal, getWallThickness, getWeightElectroInstrument, getWeightNozzle, getWeightPiping, getWeightStructualSteel, getWeightTotal, getWeightVessel, getWeigthInternals, getWeigthVesselShell, hasDesignStandard, hashCode, initMechanicalDesign, isHasSetCompanySpecificDesignStandards, setCompanySpecificDesignStandards, setConstrutionMaterial, setCorrosionAllowance, setCostEstimateCepci, setCostEstimateLocationFactor, setCostEstimateMaterial, setDefaultLiquidDensity, setDefaultLiquidViscosity, setDesign, setDesignDataSource, setDesignDataSources, setDesignStandard, setDesignStandard, setDesignStandard, setDesignStandard, setDesignStandards, setHasSetCompanySpecificDesignStandards, setInnerDiameter, setJointEfficiency, setMaterialDesignStandard, setMaterialPipeDesignStandard, setMaxDesignCv, setMaxDesignDuty, setMaxDesignGassVolumeFlow, setMaxDesignOilVolumeFlow, setMaxDesignPower, setMaxDesignPressureDrop, setMaxDesignVelocity, setMaxDesignVolumeFlow, setMaxDesignWaterVolumeFlow, setMaxOperationPressure, setMaxOperationTemperature, setMinDesignDuty, setMinDesignGassVolumeFLow, setMinDesignOilFLow, setMinDesignPower, setMinDesignVolumeFLow, setMinDesignWaterVolumeFLow, setMinOperationPressure, setMinOperationTemperature, setModuleHeight, setModuleLength, setModuleWidth, setOuterDiameter, setPressureMarginFactor, setProcessEquipment, setTantanLength, setTensileStrength, setWallThickness, setWeightElectroInstrument, setWeightNozzle, setWeightPiping, setWeightStructualSteel, setWeightTotal, setWeightVessel, setWeigthInternals, setWeigthVesselShell, toCompactJson, validateOperatingEnvelope, validateOperatingEnvelope
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
headerDiameter
private double headerDiameterHeader internal diameter [m]. -
headerWallThickness
private double headerWallThicknessHeader wall thickness [mm]. -
headerLength
private double headerLengthHeader length [m]. -
branchDiameter
private double branchDiameterBranch connection diameter [m]. -
mixingChamberVolume
private double mixingChamberVolumeMixing chamber volume [m3]. -
designVelocity
private double designVelocityDesign velocity in header [m/s]. -
maxAllowableVelocity
private double maxAllowableVelocityMaximum allowable velocity [m/s]. -
totalPressureDrop
private double totalPressureDropTotal pressure drop [bar]. -
mixerType
Mixer type (tee, wye, header, manifold). -
numberOfBranches
private int numberOfBranchesNumber of inlet branches. -
materialGrade
Material grade for construction. -
designStandardCode
Design standard code.
-
-
Constructor Details
-
MixerMechanicalDesign
Constructor for MixerMechanicalDesign.- Parameters:
equipment- the process equipment for this design
-
-
Method Details
-
readDesignSpecifications
public void readDesignSpecifications()readDesignSpecifications.
- Overrides:
readDesignSpecificationsin classMechanicalDesign
-
calcDesign
-
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
-
setMixerType
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
-
setMaterialGrade
Sets the material grade.- Parameters:
grade- material grade
-
getDesignStandardCode
-
setDesignStandardCode
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
Export mechanical design data to JSON format.This method creates a
MechanicalDesignResponseobject 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:
toJsonin classMechanicalDesign- Returns:
- JSON string representation of the mechanical design
-