Class MechanicalDesignResponse
java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesignResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CompressorMechanicalDesignResponse, HeatExchangerMechanicalDesignResponse, PumpMechanicalDesignResponse, SeparatorMechanicalDesignResponse, ValveMechanicalDesignResponse
Response class for mechanical design JSON export.
This class provides a structured representation of mechanical design data that can be easily serialized to JSON format. It supports both individual equipment mechanical design and system-wide aggregated data.
The response includes:
- Equipment identification and classification
- Weight breakdown (total, vessel, piping, E&I, structural)
- Design conditions (pressure, temperature)
- Dimensions and plot space
- Utility requirements (power, duty)
- System-level aggregations when applicable
Usage example:
// For individual equipment
MechanicalDesign mecDesign = valve.getMechanicalDesign();
mecDesign.calcDesign();
String json = mecDesign.toJson();
// For system-wide
SystemMechanicalDesign sysMecDesign = new SystemMechanicalDesign(process);
sysMecDesign.runDesignCalculation();
String json = sysMecDesign.toJson();
- Version:
- 1.0
- Author:
- esol
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSummary of individual equipment for system-level reports. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleCorrosion allowance in mm.Count breakdown by equipment type.private StringDesign standard used (e.g., "API 610", "ASME VIII").private doubleHeating/Cooling duty in kW (positive = heating, negative = cooling).private doubleElectrical and instrumentation weight in kg.private StringEquipment class name.private intTotal equipment count.Equipment list with summaries.private StringEquipment type (e.g., "Separator", "Compressor", "Valve").private doubleFootprint length in m.private doubleFootprint width in m.private StringHead material.private doubleInner diameter in meters.private doubleInternals weight in kg.private booleanFlag indicating if this is a system-level response.private doubleMaximum design pressure in bara.private doubleMaximum design temperature in °C.private doubleMaximum height in m.private doubleMaximum operating pressure in bara.private doubleMaximum operating temperature in °C.private doubleMinimum design pressure in bara.private doubleMinimum design temperature in °C.private doubleModule height in meters.private doubleModule length (plot space) in meters.private doubleModule width (plot space) in meters.private StringEquipment name.private doubleNet power requirement in kW.private doubleNozzles weight in kg.private doubleOperating weight (with contents) in kg.private doubleOuter diameter in meters.private doublePiping weight in kg.private doublePower requirement in kW (positive = consumed, negative = produced).private StringProcess/system name.private static final longSerialization version UID.private StringShell material.Equipment-specific design parameters.private doubleStructural steel weight in kg.private doubleTangent-to-tangent length in meters.private doubleTotal cooling duty in kW.private doubleTotal heating duty in kW.private doubleTotal plot space in m2.private doubleTotal power recovered in kW.private doubleTotal power required in kW.private doubleTotal volume in m3.private doubleTotal weight in kg.private doubleVessel shell weight in kg.private doubleWall thickness in mm.Weight breakdown by discipline.Weight breakdown by equipment type. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MechanicalDesignResponse(MechanicalDesign mecDesign) Constructor from individual MechanicalDesign.MechanicalDesignResponse(SystemMechanicalDesign sysMecDesign) Constructor from SystemMechanicalDesign. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpecificParameter(String key, Object value) static MechanicalDesignResponseParse from JSON string.doubledoublegetDuty()doubleintdoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoublegetName()doubledoubledoubledoubledoubledoublegetPower()doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoublebooleanmergeWithEquipmentJson(String equipmentJson) Merge this response with JSON from equipment toJson().voidpopulateFromMechanicalDesign(MechanicalDesign mecDesign) Populate from individual MechanicalDesign.voidpopulateFromSystemMechanicalDesign(SystemMechanicalDesign sysMecDesign) Populate from SystemMechanicalDesign.voidsetCorrosionAllowance(double corrosionAllowance) voidsetCountByType(Map<String, Integer> countByType) voidsetDesignStandard(String designStandard) voidsetDuty(double duty) voidsetEiWeight(double eiWeight) voidsetEquipmentClass(String equipmentClass) voidsetEquipmentCount(int equipmentCount) voidsetEquipmentList(List<MechanicalDesignResponse.EquipmentSummary> equipmentList) voidsetEquipmentType(String equipmentType) voidsetFootprintLength(double footprintLength) voidsetFootprintWidth(double footprintWidth) voidsetHeadMaterial(String headMaterial) voidsetInnerDiameter(double innerDiameter) voidsetInternalsWeight(double internalsWeight) voidsetMaxDesignPressure(double maxDesignPressure) voidsetMaxDesignTemperature(double maxDesignTemperature) voidsetMaxHeight(double maxHeight) voidsetMaxOperatingPressure(double maxOperatingPressure) voidsetMaxOperatingTemperature(double maxOperatingTemperature) voidsetMinDesignPressure(double minDesignPressure) voidsetMinDesignTemperature(double minDesignTemperature) voidsetModuleHeight(double moduleHeight) voidsetModuleLength(double moduleLength) voidsetModuleWidth(double moduleWidth) voidvoidsetNetPower(double netPower) voidsetNozzlesWeight(double nozzlesWeight) voidsetOperatingWeight(double operatingWeight) voidsetOuterDiameter(double outerDiameter) voidsetPipingWeight(double pipingWeight) voidsetPower(double power) voidsetProcessName(String processName) voidsetShellMaterial(String shellMaterial) voidsetSpecificParameters(Map<String, Object> specificParameters) voidsetStructuralWeight(double structuralWeight) voidsetSystemLevel(boolean isSystemLevel) voidsetTangentLength(double tangentLength) voidsetTotalCoolingDuty(double totalCoolingDuty) voidsetTotalHeatingDuty(double totalHeatingDuty) voidsetTotalPlotSpace(double totalPlotSpace) voidsetTotalPowerRecovered(double totalPowerRecovered) voidsetTotalPowerRequired(double totalPowerRequired) voidsetTotalVolume(double totalVolume) voidsetTotalWeight(double totalWeight) voidsetVesselWeight(double vesselWeight) voidsetWallThickness(double wallThickness) voidsetWeightByDiscipline(Map<String, Double> weightByDiscipline) voidsetWeightByType(Map<String, Double> weightByType) Convert to JSON string with compact format (no pretty printing).toJson()Convert to JSON string.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
name
Equipment name. -
equipmentType
Equipment type (e.g., "Separator", "Compressor", "Valve"). -
equipmentClass
Equipment class name. -
designStandard
Design standard used (e.g., "API 610", "ASME VIII"). -
totalWeight
private double totalWeightTotal weight in kg. -
vesselWeight
private double vesselWeightVessel shell weight in kg. -
internalsWeight
private double internalsWeightInternals weight in kg. -
pipingWeight
private double pipingWeightPiping weight in kg. -
nozzlesWeight
private double nozzlesWeightNozzles weight in kg. -
eiWeight
private double eiWeightElectrical and instrumentation weight in kg. -
structuralWeight
private double structuralWeightStructural steel weight in kg. -
operatingWeight
private double operatingWeightOperating weight (with contents) in kg. -
maxDesignPressure
private double maxDesignPressureMaximum design pressure in bara. -
minDesignPressure
private double minDesignPressureMinimum design pressure in bara. -
maxDesignTemperature
private double maxDesignTemperatureMaximum design temperature in °C. -
minDesignTemperature
private double minDesignTemperatureMinimum design temperature in °C. -
maxOperatingPressure
private double maxOperatingPressureMaximum operating pressure in bara. -
maxOperatingTemperature
private double maxOperatingTemperatureMaximum operating temperature in °C. -
innerDiameter
private double innerDiameterInner diameter in meters. -
outerDiameter
private double outerDiameterOuter diameter in meters. -
tangentLength
private double tangentLengthTangent-to-tangent length in meters. -
wallThickness
private double wallThicknessWall thickness in mm. -
moduleLength
private double moduleLengthModule length (plot space) in meters. -
moduleWidth
private double moduleWidthModule width (plot space) in meters. -
moduleHeight
private double moduleHeightModule height in meters. -
totalVolume
private double totalVolumeTotal volume in m3. -
shellMaterial
Shell material. -
headMaterial
Head material. -
corrosionAllowance
private double corrosionAllowanceCorrosion allowance in mm. -
power
private double powerPower requirement in kW (positive = consumed, negative = produced). -
duty
private double dutyHeating/Cooling duty in kW (positive = heating, negative = cooling). -
specificParameters
-
isSystemLevel
private boolean isSystemLevelFlag indicating if this is a system-level response. -
processName
Process/system name. -
equipmentCount
private int equipmentCountTotal equipment count. -
totalPowerRequired
private double totalPowerRequiredTotal power required in kW. -
totalPowerRecovered
private double totalPowerRecoveredTotal power recovered in kW. -
netPower
private double netPowerNet power requirement in kW. -
totalHeatingDuty
private double totalHeatingDutyTotal heating duty in kW. -
totalCoolingDuty
private double totalCoolingDutyTotal cooling duty in kW. -
totalPlotSpace
private double totalPlotSpaceTotal plot space in m2. -
footprintLength
private double footprintLengthFootprint length in m. -
footprintWidth
private double footprintWidthFootprint width in m. -
maxHeight
private double maxHeightMaximum height in m. -
weightByType
-
countByType
-
weightByDiscipline
-
equipmentList
Equipment list with summaries.
-
-
Constructor Details
-
MechanicalDesignResponse
public MechanicalDesignResponse()Default constructor. -
MechanicalDesignResponse
Constructor from individual MechanicalDesign.- Parameters:
mecDesign- the mechanical design object
-
MechanicalDesignResponse
Constructor from SystemMechanicalDesign.- Parameters:
sysMecDesign- the system mechanical design object
-
-
Method Details
-
populateFromMechanicalDesign
Populate from individual MechanicalDesign.- Parameters:
mecDesign- the mechanical design object
-
populateFromSystemMechanicalDesign
Populate from SystemMechanicalDesign.- Parameters:
sysMecDesign- the system mechanical design object
-
toJson
-
toCompactJson
Convert to JSON string with compact format (no pretty printing).- Returns:
- compact JSON representation
-
fromJson
Parse from JSON string.- Parameters:
json- the JSON string- Returns:
- MechanicalDesignResponse object
-
mergeWithEquipmentJson
-
getName
-
setName
-
getEquipmentType
-
setEquipmentType
-
getEquipmentClass
-
setEquipmentClass
-
getDesignStandard
-
setDesignStandard
-
getTotalWeight
public double getTotalWeight() -
setTotalWeight
public void setTotalWeight(double totalWeight) -
getVesselWeight
public double getVesselWeight() -
setVesselWeight
public void setVesselWeight(double vesselWeight) -
getInternalsWeight
public double getInternalsWeight() -
setInternalsWeight
public void setInternalsWeight(double internalsWeight) -
getPipingWeight
public double getPipingWeight() -
setPipingWeight
public void setPipingWeight(double pipingWeight) -
getNozzlesWeight
public double getNozzlesWeight() -
setNozzlesWeight
public void setNozzlesWeight(double nozzlesWeight) -
getEiWeight
public double getEiWeight() -
setEiWeight
public void setEiWeight(double eiWeight) -
getStructuralWeight
public double getStructuralWeight() -
setStructuralWeight
public void setStructuralWeight(double structuralWeight) -
getOperatingWeight
public double getOperatingWeight() -
setOperatingWeight
public void setOperatingWeight(double operatingWeight) -
getMaxDesignPressure
public double getMaxDesignPressure() -
setMaxDesignPressure
public void setMaxDesignPressure(double maxDesignPressure) -
getMinDesignPressure
public double getMinDesignPressure() -
setMinDesignPressure
public void setMinDesignPressure(double minDesignPressure) -
getMaxDesignTemperature
public double getMaxDesignTemperature() -
setMaxDesignTemperature
public void setMaxDesignTemperature(double maxDesignTemperature) -
getMinDesignTemperature
public double getMinDesignTemperature() -
setMinDesignTemperature
public void setMinDesignTemperature(double minDesignTemperature) -
getMaxOperatingPressure
public double getMaxOperatingPressure() -
setMaxOperatingPressure
public void setMaxOperatingPressure(double maxOperatingPressure) -
getMaxOperatingTemperature
public double getMaxOperatingTemperature() -
setMaxOperatingTemperature
public void setMaxOperatingTemperature(double maxOperatingTemperature) -
getInnerDiameter
public double getInnerDiameter() -
setInnerDiameter
public void setInnerDiameter(double innerDiameter) -
getOuterDiameter
public double getOuterDiameter() -
setOuterDiameter
public void setOuterDiameter(double outerDiameter) -
getTangentLength
public double getTangentLength() -
setTangentLength
public void setTangentLength(double tangentLength) -
getWallThickness
public double getWallThickness() -
setWallThickness
public void setWallThickness(double wallThickness) -
getModuleLength
public double getModuleLength() -
setModuleLength
public void setModuleLength(double moduleLength) -
getModuleWidth
public double getModuleWidth() -
setModuleWidth
public void setModuleWidth(double moduleWidth) -
getModuleHeight
public double getModuleHeight() -
setModuleHeight
public void setModuleHeight(double moduleHeight) -
getTotalVolume
public double getTotalVolume() -
setTotalVolume
public void setTotalVolume(double totalVolume) -
getShellMaterial
-
setShellMaterial
-
getHeadMaterial
-
setHeadMaterial
-
getCorrosionAllowance
public double getCorrosionAllowance() -
setCorrosionAllowance
public void setCorrosionAllowance(double corrosionAllowance) -
getPower
public double getPower() -
setPower
public void setPower(double power) -
getDuty
public double getDuty() -
setDuty
public void setDuty(double duty) -
getSpecificParameters
-
setSpecificParameters
-
addSpecificParameter
-
isSystemLevel
public boolean isSystemLevel() -
setSystemLevel
public void setSystemLevel(boolean isSystemLevel) -
getProcessName
-
setProcessName
-
getEquipmentCount
public int getEquipmentCount() -
setEquipmentCount
public void setEquipmentCount(int equipmentCount) -
getTotalPowerRequired
public double getTotalPowerRequired() -
setTotalPowerRequired
public void setTotalPowerRequired(double totalPowerRequired) -
getTotalPowerRecovered
public double getTotalPowerRecovered() -
setTotalPowerRecovered
public void setTotalPowerRecovered(double totalPowerRecovered) -
getNetPower
public double getNetPower() -
setNetPower
public void setNetPower(double netPower) -
getTotalHeatingDuty
public double getTotalHeatingDuty() -
setTotalHeatingDuty
public void setTotalHeatingDuty(double totalHeatingDuty) -
getTotalCoolingDuty
public double getTotalCoolingDuty() -
setTotalCoolingDuty
public void setTotalCoolingDuty(double totalCoolingDuty) -
getTotalPlotSpace
public double getTotalPlotSpace() -
setTotalPlotSpace
public void setTotalPlotSpace(double totalPlotSpace) -
getFootprintLength
public double getFootprintLength() -
setFootprintLength
public void setFootprintLength(double footprintLength) -
getFootprintWidth
public double getFootprintWidth() -
setFootprintWidth
public void setFootprintWidth(double footprintWidth) -
getMaxHeight
public double getMaxHeight() -
setMaxHeight
public void setMaxHeight(double maxHeight) -
getWeightByType
-
setWeightByType
-
getCountByType
-
setCountByType
-
getWeightByDiscipline
-
setWeightByDiscipline
-
getEquipmentList
-
setEquipmentList
-