Class SplitterMechanicalDesign
java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesign
neqsim.process.mechanicaldesign.splitter.SplitterMechanicalDesign
- All Implemented Interfaces:
Serializable
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 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 doubleDistribution manifold volume [m3].private StringMaterial grade for construction.private doubleMaximum allowable velocity [m/s].private intNumber of outlet branches.private static final longSerialization version UID.private double[]Split ratios for each branch.private StringSplitter type (tee, wye, header, manifold).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
ConstructorsConstructorDescriptionConstructor for SplitterMechanicalDesign. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcDesign.doubleCalculate cost for splitter 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.doubleGets the manifold volume.Gets the material grade.doubleGets the maximum allowable velocity.intGets the number of outlet branches.double[]Gets the split ratios.Gets the splitter type.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.voidsetSplitterType(String type) Sets the splitter 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]. -
manifoldVolume
private double manifoldVolumeDistribution manifold 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]. -
splitterType
Splitter type (tee, wye, header, manifold). -
numberOfBranches
private int numberOfBranchesNumber of outlet branches. -
materialGrade
Material grade for construction. -
designStandardCode
Design standard code. -
splitRatios
private double[] splitRatiosSplit ratios for each branch.
-
-
Constructor Details
-
SplitterMechanicalDesign
Constructor for SplitterMechanicalDesign.- 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
-
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
Gets the splitter type.- Returns:
- splitter type (tee, wye, header, manifold)
-
setSplitterType
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
-
setMaterialGrade
Sets the material grade.- Parameters:
grade- material grade
-
getDesignStandardCode
-
setDesignStandardCode
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
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
-