Class MechanicalDesignResponse

java.lang.Object
neqsim.process.mechanicaldesign.MechanicalDesignResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CompressorMechanicalDesignResponse, HeatExchangerMechanicalDesignResponse, PumpMechanicalDesignResponse, SeparatorMechanicalDesignResponse, ValveMechanicalDesignResponse

public class MechanicalDesignResponse extends Object implements Serializable
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:
  • Field Details

    • serialVersionUID

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

      private String name
      Equipment name.
    • equipmentType

      private String equipmentType
      Equipment type (e.g., "Separator", "Compressor", "Valve").
    • equipmentClass

      private String equipmentClass
      Equipment class name.
    • designStandard

      private String designStandard
      Design standard used (e.g., "API 610", "ASME VIII").
    • totalWeight

      private double totalWeight
      Total weight in kg.
    • vesselWeight

      private double vesselWeight
      Vessel shell weight in kg.
    • internalsWeight

      private double internalsWeight
      Internals weight in kg.
    • pipingWeight

      private double pipingWeight
      Piping weight in kg.
    • nozzlesWeight

      private double nozzlesWeight
      Nozzles weight in kg.
    • eiWeight

      private double eiWeight
      Electrical and instrumentation weight in kg.
    • structuralWeight

      private double structuralWeight
      Structural steel weight in kg.
    • operatingWeight

      private double operatingWeight
      Operating weight (with contents) in kg.
    • maxDesignPressure

      private double maxDesignPressure
      Maximum design pressure in bara.
    • minDesignPressure

      private double minDesignPressure
      Minimum design pressure in bara.
    • maxDesignTemperature

      private double maxDesignTemperature
      Maximum design temperature in °C.
    • minDesignTemperature

      private double minDesignTemperature
      Minimum design temperature in °C.
    • maxOperatingPressure

      private double maxOperatingPressure
      Maximum operating pressure in bara.
    • maxOperatingTemperature

      private double maxOperatingTemperature
      Maximum operating temperature in °C.
    • innerDiameter

      private double innerDiameter
      Inner diameter in meters.
    • outerDiameter

      private double outerDiameter
      Outer diameter in meters.
    • tangentLength

      private double tangentLength
      Tangent-to-tangent length in meters.
    • wallThickness

      private double wallThickness
      Wall thickness in mm.
    • moduleLength

      private double moduleLength
      Module length (plot space) in meters.
    • moduleWidth

      private double moduleWidth
      Module width (plot space) in meters.
    • moduleHeight

      private double moduleHeight
      Module height in meters.
    • totalVolume

      private double totalVolume
      Total volume in m3.
    • shellMaterial

      private String shellMaterial
      Shell material.
    • headMaterial

      private String headMaterial
      Head material.
    • corrosionAllowance

      private double corrosionAllowance
      Corrosion allowance in mm.
    • power

      private double power
      Power requirement in kW (positive = consumed, negative = produced).
    • duty

      private double duty
      Heating/Cooling duty in kW (positive = heating, negative = cooling).
    • specificParameters

      private Map<String,Object> specificParameters
      Equipment-specific design parameters.
    • isSystemLevel

      private boolean isSystemLevel
      Flag indicating if this is a system-level response.
    • processName

      private String processName
      Process/system name.
    • equipmentCount

      private int equipmentCount
      Total equipment count.
    • totalPowerRequired

      private double totalPowerRequired
      Total power required in kW.
    • totalPowerRecovered

      private double totalPowerRecovered
      Total power recovered in kW.
    • netPower

      private double netPower
      Net power requirement in kW.
    • totalHeatingDuty

      private double totalHeatingDuty
      Total heating duty in kW.
    • totalCoolingDuty

      private double totalCoolingDuty
      Total cooling duty in kW.
    • totalPlotSpace

      private double totalPlotSpace
      Total plot space in m2.
    • footprintLength

      private double footprintLength
      Footprint length in m.
    • footprintWidth

      private double footprintWidth
      Footprint width in m.
    • maxHeight

      private double maxHeight
      Maximum height in m.
    • weightByType

      private Map<String,Double> weightByType
      Weight breakdown by equipment type.
    • countByType

      private Map<String,Integer> countByType
      Count breakdown by equipment type.
    • weightByDiscipline

      private Map<String,Double> weightByDiscipline
      Weight breakdown by discipline.
    • equipmentList

      Equipment list with summaries.
  • Constructor Details

    • MechanicalDesignResponse

      public MechanicalDesignResponse()
      Default constructor.
    • MechanicalDesignResponse

      public MechanicalDesignResponse(MechanicalDesign mecDesign)
      Constructor from individual MechanicalDesign.
      Parameters:
      mecDesign - the mechanical design object
    • MechanicalDesignResponse

      public MechanicalDesignResponse(SystemMechanicalDesign sysMecDesign)
      Constructor from SystemMechanicalDesign.
      Parameters:
      sysMecDesign - the system mechanical design object
  • Method Details

    • populateFromMechanicalDesign

      public void populateFromMechanicalDesign(MechanicalDesign mecDesign)
      Populate from individual MechanicalDesign.
      Parameters:
      mecDesign - the mechanical design object
    • populateFromSystemMechanicalDesign

      public void populateFromSystemMechanicalDesign(SystemMechanicalDesign sysMecDesign)
      Populate from SystemMechanicalDesign.
      Parameters:
      sysMecDesign - the system mechanical design object
    • toJson

      public String toJson()
      Convert to JSON string.
      Returns:
      JSON representation
    • toCompactJson

      public String toCompactJson()
      Convert to JSON string with compact format (no pretty printing).
      Returns:
      compact JSON representation
    • fromJson

      public static MechanicalDesignResponse fromJson(String json)
      Parse from JSON string.
      Parameters:
      json - the JSON string
      Returns:
      MechanicalDesignResponse object
    • mergeWithEquipmentJson

      public String mergeWithEquipmentJson(String equipmentJson)
      Merge this response with JSON from equipment toJson().
      Parameters:
      equipmentJson - JSON from equipment.toJson()
      Returns:
      merged JSON string
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getEquipmentType

      public String getEquipmentType()
    • setEquipmentType

      public void setEquipmentType(String equipmentType)
    • getEquipmentClass

      public String getEquipmentClass()
    • setEquipmentClass

      public void setEquipmentClass(String equipmentClass)
    • getDesignStandard

      public String getDesignStandard()
    • setDesignStandard

      public void setDesignStandard(String designStandard)
    • 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

      public String getShellMaterial()
    • setShellMaterial

      public void setShellMaterial(String shellMaterial)
    • getHeadMaterial

      public String getHeadMaterial()
    • setHeadMaterial

      public void setHeadMaterial(String headMaterial)
    • 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

      public Map<String,Object> getSpecificParameters()
    • setSpecificParameters

      public void setSpecificParameters(Map<String,Object> specificParameters)
    • addSpecificParameter

      public void addSpecificParameter(String key, Object value)
    • isSystemLevel

      public boolean isSystemLevel()
    • setSystemLevel

      public void setSystemLevel(boolean isSystemLevel)
    • getProcessName

      public String getProcessName()
    • setProcessName

      public void setProcessName(String processName)
    • 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

      public Map<String,Double> getWeightByType()
    • setWeightByType

      public void setWeightByType(Map<String,Double> weightByType)
    • getCountByType

      public Map<String,Integer> getCountByType()
    • setCountByType

      public void setCountByType(Map<String,Integer> countByType)
    • getWeightByDiscipline

      public Map<String,Double> getWeightByDiscipline()
    • setWeightByDiscipline

      public void setWeightByDiscipline(Map<String,Double> weightByDiscipline)
    • getEquipmentList

      public List<MechanicalDesignResponse.EquipmentSummary> getEquipmentList()
    • setEquipmentList

      public void setEquipmentList(List<MechanicalDesignResponse.EquipmentSummary> equipmentList)