Class MechanicalDesign
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdsorberMechanicalDesign, CompressorMechanicalDesign, EjectorMechanicalDesign, ExpanderMechanicalDesign, HeatExchangerMechanicalDesign, PipelineMechanicalDesign, PumpMechanicalDesign, SeparatorMechanicalDesign, TankMechanicalDesign, ValveMechanicalDesign
MechanicalDesign class.
- Version:
- $Id: $Id
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate double(package private) double(package private) doubleprivate List<MechanicalDesignDataSource> private DesignLimitDataprivate booleandoubleprivate doubleprivate MechanicalDesignMarginResultprivate MaterialPipeDesignStandardprivate MaterialPlateDesignStandarddoubledoubledoubledoubledoubledoubleprivate doubleprivate doubledoubledoubledoubledoubledoubledoubleprivate doubleprivate doubledoubledoubledoubledoubleprivate doubleprivate ProcessEquipmentInterfaceprivate static final longSerialization version UID.doubleprivate doubleprivate doubledoubleWall thickness in mm.doubledoubledoubledoubleprivate doubledoubledoubledouble -
Constructor Summary
ConstructorsConstructorDescriptionMechanicalDesign(ProcessEquipmentInterface processEquipment) Constructor for MechanicalDesign. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDesignDataSource(MechanicalDesignDataSource dataSource) Add an additional data source used when loading design limits.voidcalcDesign.voiddisplayResults.booleanprivate List<MechanicalDesignDataSource> Get a list of applicable international standards for this equipment type.Getter for the fieldcompanySpecificDesignStandards.Getter for the fieldconstrutionMaterial.doubleGetter for the fieldcorrosionAllowance.Getter for the fieldcostEstimate.doubleGetter for the fielddefaultLiquidDensity.doubleGetter for the fielddefaultLiquidViscosity.doubleGet the immutable list of configured data sources.doubledoubledoubledoubledoubleGetter for the fielddesignStandard.doubleGetter for the fieldinnerDiameter.doubleGetter for the fieldjointEfficiency.getMaterialDesignStandard.Getter for the fieldmaterialPipeDesignStandard.doublegetMaxAllowableStress.doubleGetter for the fieldmaxDesignGassVolumeFlow.doubleGetter for the fieldmaxDesignOilVolumeFlow.doublegetMaxDesignPressure.doubleGetter for the fieldmaxDesignVolumeFlow.doubleGetter for the fieldmaxDesignWaterVolumeFlow.doubleGetter for the fieldmaxOperationPressure.doubleGetter for the fieldmaxOperationTemperature.doubleGetter for the fieldminDesignGassVolumeFLow.doubleGetter for the fieldminDesignOilFLow.doublegetMinDesignPressure.doubleGetter for the fieldminDesignVolumeFLow.doubleGetter for the fieldminDesignWaterVolumeFLow.doubleGetter for the fieldminOperationPressure.doubleGetter for the fieldminOperationTemperature.doubleGetter for the fieldmoduleHeight.doubleGetter for the fieldmoduleLength.doubleGetter for the fieldmoduleWidth.doubleGetter for the fieldouterDiameter.doubleGetter for the fieldpressureMarginFactor.Getter for the fieldprocessEquipment.Get recommended standards for this equipment type organized by category.Get the mechanical design response object.doubleGetter for the fieldtantanLength.doubleGetter for the fieldtensileStrength.doubleGetter for the fieldvolumeTotal.doubleGetter for the fieldwallThickness.doubleGetter for the fieldweightElectroInstrument.doubleGetter for the fieldweightNozzle.doubleGetter for the fieldweightPiping.doubleGetter for the fieldweightStructualSteel.doubleGetter for the fieldweightTotal.doubleGetter for the fieldweightVessel.doubleGetter for the fieldweigthInternals.doubleGetter for the fieldweigthVesselShell.booleanCheck if this mechanical design has any design standards assigned.inthashCode()voidInitialize design data using configured data sources.booleanisHasSetCompanySpecificDesignStandards.private voidprivate doublemarginFromLowerLimit(double value, double limit) private doublemarginToUpperLimit(double limit, double value) voidreadDesignSpecifications.private StringvoidsetCompanySpecificDesignStandards(String companySpecificDesignStandards) Setter for the fieldcompanySpecificDesignStandards.voidsetConstrutionMaterial(String construtionMaterial) Setter for the fieldconstrutionMaterial.voidsetCorrosionAllowance(double corrosionAllowance) Setter for the fieldcorrosionAllowance.voidsetDefaultLiquidDensity(double defaultLiqDens) Setter for the fielddefaultLiquidDensity.voidsetDefaultLiquidViscosity(double defaultLiqVisc) Setter for the fielddefaultLiquidViscosity.voidsetDesign.voidsetDesignDataSource(MechanicalDesignDataSource dataSource) Configure a single data source to load design limits from.voidsetDesignDataSources(List<MechanicalDesignDataSource> dataSources) Configure the list of data sources to use when loading design limits.voidsetDesignStandard(String category, DesignStandard standard) Set a design standard for a specific category.voidsetDesignStandard(Hashtable<String, DesignStandard> designStandard) Setter for the fielddesignStandard.voidsetDesignStandard(StandardType standardType) Set a design standard using an international standard type.voidsetDesignStandard(StandardType standardType, String version) Set a design standard using an international standard type with a specific version.voidsetDesignStandards(List<StandardType> standardTypes) Set multiple design standards using international standard types.voidsetHasSetCompanySpecificDesignStandards(boolean hasSetCompanySpecificDesignStandards) Setter for the fieldhasSetCompanySpecificDesignStandards.voidsetInnerDiameter(double innerDiameter) Setter for the fieldinnerDiameter.voidsetJointEfficiency(double jointEfficiency) Setter for the fieldjointEfficiency.voidsetMaterialDesignStandard(MaterialPlateDesignStandard materialDesignStandard) setMaterialDesignStandard.voidsetMaterialPipeDesignStandard(MaterialPipeDesignStandard materialPipeDesignStandard) Setter for the fieldmaterialPipeDesignStandard.voidsetMaxDesignDuty(double maxDesignDuty) voidsetMaxDesignGassVolumeFlow(double maxDesignGassVolumeFlow) Setter for the fieldmaxDesignGassVolumeFlow.voidsetMaxDesignOilVolumeFlow(double maxDesignOilVolumeFlow) Setter for the fieldmaxDesignOilVolumeFlow.voidsetMaxDesignPower(double maxDesignPower) voidsetMaxDesignVolumeFlow(double maxDesignVolumeFlow) Setter for the fieldmaxDesignVolumeFlow.voidsetMaxDesignWaterVolumeFlow(double maxDesignWaterVolumeFlow) Setter for the fieldmaxDesignWaterVolumeFlow.voidsetMaxOperationPressure(double maxPressure) Setter for the fieldmaxOperationPressure.voidsetMaxOperationTemperature(double maxTemperature) Setter for the fieldmaxOperationTemperature.voidsetMinDesignDuty(double minDesignDuty) voidsetMinDesignGassVolumeFLow(double minDesignGassVolumeFLow) Setter for the fieldminDesignGassVolumeFLow.voidsetMinDesignOilFLow(double minDesignOilFLow) Setter for the fieldminDesignOilFLow.voidsetMinDesignPower(double minDesignPower) voidsetMinDesignVolumeFLow(double minDesignVolumeFLow) Setter for the fieldminDesignVolumeFLow.voidsetMinDesignWaterVolumeFLow(double minDesignWaterVolumeFLow) Setter for the fieldminDesignWaterVolumeFLow.voidsetMinOperationPressure(double minPressure) Setter for the fieldminOperationPressure.voidsetMinOperationTemperature(double minTemperature) Setter for the fieldminOperationTemperature.voidsetModuleHeight(double moduleHeight) Setter for the fieldmoduleHeight.voidsetModuleLength(double moduleLength) Setter for the fieldmoduleLength.voidsetModuleWidth(double moduleWidth) Setter for the fieldmoduleWidth.voidsetOuterDiameter(double outerDiameter) Setter for the fieldouterDiameter.voidsetPressureMarginFactor(double pressureMarginFactor) Setter for the fieldpressureMarginFactor.voidsetProcessEquipment(ProcessEquipmentInterface processEquipment) Setter for the fieldprocessEquipment.voidsetTantanLength(double tantanLength) Setter for the fieldtantanLength.voidsetTensileStrength(double tensileStrength) Setter for the fieldtensileStrength.voidsetWallThickness(double wallThickness) Setter for the fieldwallThickness.voidsetWeightElectroInstrument(double weightElectroInstrument) Setter for the fieldweightElectroInstrument.voidsetWeightNozzle(double weightNozzle) Setter for the fieldweightNozzle.voidsetWeightPiping(double weightPiping) Setter for the fieldweightPiping.voidsetWeightStructualSteel(double weightStructualSteel) Setter for the fieldweightStructualSteel.voidsetWeightTotal(double weightTotal) Setter for the fieldweightTotal.voidsetWeightVessel(double weightVessel) Setter for the fieldweightVessel.voidsetWeigthInternals(double weigthInternals) Setter for the fieldweigthInternals.voidsetWeigthVesselShell(double weigthVesselShell) Setter for the fieldweigthVesselShell.Export mechanical design data to compact JSON format (no pretty printing).toJson()Export mechanical design data to JSON format.Validate the current operating envelope against design limits.validateOperatingEnvelope(double operatingMaxPressure, double operatingMinPressure, double operatingMaxTemperature, double operatingMinTemperature, double operatingCorrosionAllowance, double operatingJointEfficiency) Validate a specific operating envelope against design limits.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
hasSetCompanySpecificDesignStandards
private boolean hasSetCompanySpecificDesignStandards -
maxOperationPressure
private double maxOperationPressure -
minOperationPressure
private double minOperationPressure -
maxOperationTemperature
private double maxOperationTemperature -
minOperationTemperature
private double minOperationTemperature -
maxDesignVolumeFlow
public double maxDesignVolumeFlow -
minDesignVolumeFLow
public double minDesignVolumeFLow -
maxDesignGassVolumeFlow
public double maxDesignGassVolumeFlow -
minDesignGassVolumeFLow
public double minDesignGassVolumeFLow -
maxDesignOilVolumeFlow
public double maxDesignOilVolumeFlow -
minDesignOilFLow
public double minDesignOilFLow -
maxDesignWaterVolumeFlow
public double maxDesignWaterVolumeFlow -
minDesignWaterVolumeFLow
public double minDesignWaterVolumeFLow -
maxDesignPower
public double maxDesignPower -
minDesignPower
public double minDesignPower -
maxDesignDuty
public double maxDesignDuty -
minDesignDuty
public double minDesignDuty -
companySpecificDesignStandards
-
processEquipment
-
tensileStrength
private double tensileStrength -
jointEfficiency
private double jointEfficiency -
materialPlateDesignStandard
-
materialPipeDesignStandard
-
construtionMaterial
-
corrosionAllowance
private double corrosionAllowance -
pressureMarginFactor
private double pressureMarginFactor -
designLimitData
-
lastMarginResult
-
designDataSources
-
innerDiameter
public double innerDiameter -
outerDiameter
public double outerDiameter -
wallThickness
public double wallThicknessWall thickness in mm. -
tantanLength
public double tantanLength -
weightTotal
private double weightTotal -
volumeTotal
private double volumeTotal -
weigthInternals
public double weigthInternals -
weightNozzle
public double weightNozzle -
weightPiping
public double weightPiping -
weightElectroInstrument
public double weightElectroInstrument -
weightStructualSteel
public double weightStructualSteel -
weightVessel
public double weightVessel -
weigthVesselShell
public double weigthVesselShell -
moduleHeight
public double moduleHeight -
moduleWidth
public double moduleWidth -
moduleLength
public double moduleLength -
designStandard
-
costEstimate
-
defaultLiquidDensity
double defaultLiquidDensity -
defaultLiquidViscosity
double defaultLiquidViscosity
-
-
Constructor Details
-
MechanicalDesign
Constructor for MechanicalDesign.
- Parameters:
processEquipment- aProcessEquipmentInterfaceobject
-
-
Method Details
-
getMaterialPipeDesignStandard
Getter for the field
materialPipeDesignStandard.- Returns:
- the materialPipeDesignStandard
-
setMaterialPipeDesignStandard
Setter for the field
materialPipeDesignStandard.- Parameters:
materialPipeDesignStandard- the materialPipeDesignStandard to set
-
getMaterialDesignStandard
getMaterialDesignStandard.
- Returns:
- the materialDesignStandard
-
setMaterialDesignStandard
setMaterialDesignStandard.
- Parameters:
materialDesignStandard- the materialDesignStandard to set
-
setMaxDesignPower
public void setMaxDesignPower(double maxDesignPower) -
setMinDesignPower
public void setMinDesignPower(double minDesignPower) -
setMaxDesignDuty
public void setMaxDesignDuty(double maxDesignDuty) -
setMinDesignDuty
public void setMinDesignDuty(double minDesignDuty) -
initMechanicalDesign
public void initMechanicalDesign()Initialize design data using configured data sources. -
loadDesignLimits
private void loadDesignLimits() -
getActiveDesignDataSources
-
resolveEquipmentType
-
setDesignDataSource
Configure a single data source to load design limits from.- Parameters:
dataSource- data source to use,nullclears existing sources.
-
setDesignDataSources
Configure the list of data sources to use when loading design limits.- Parameters:
dataSources- ordered list of data sources.
-
addDesignDataSource
Add an additional data source used when loading design limits.- Parameters:
dataSource- the data source to add
-
getDesignDataSources
Get the immutable list of configured data sources.- Returns:
- list of data sources.
-
getDesignLimitData
-
getDesignMaxPressureLimit
public double getDesignMaxPressureLimit() -
getDesignMinPressureLimit
public double getDesignMinPressureLimit() -
getDesignMaxTemperatureLimit
public double getDesignMaxTemperatureLimit() -
getDesignMinTemperatureLimit
public double getDesignMinTemperatureLimit() -
getDesignCorrosionAllowance
public double getDesignCorrosionAllowance() -
getDesignJointEfficiency
public double getDesignJointEfficiency() -
validateOperatingEnvelope
Validate the current operating envelope against design limits.- Returns:
- computed margin result.
-
validateOperatingEnvelope
public MechanicalDesignMarginResult validateOperatingEnvelope(double operatingMaxPressure, double operatingMinPressure, double operatingMaxTemperature, double operatingMinTemperature, double operatingCorrosionAllowance, double operatingJointEfficiency) Validate a specific operating envelope against design limits.- Parameters:
operatingMaxPressure- maximum operating pressure.operatingMinPressure- minimum operating pressure.operatingMaxTemperature- maximum operating temperature.operatingMinTemperature- minimum operating temperature.operatingCorrosionAllowance- corrosion allowance used in operation.operatingJointEfficiency- joint efficiency achieved in operation.- Returns:
- computed margin result.
-
getLastMarginResult
-
marginToUpperLimit
private double marginToUpperLimit(double limit, double value) -
marginFromLowerLimit
private double marginFromLowerLimit(double value, double limit) -
getMaxOperationPressure
public double getMaxOperationPressure()Getter for the field
maxOperationPressure.- Returns:
- the maxPressure
-
getMaxDesignPressure
public double getMaxDesignPressure()getMaxDesignPressure.
- Returns:
- a double
-
getMinDesignPressure
public double getMinDesignPressure()getMinDesignPressure.
- Returns:
- a double
-
readDesignSpecifications
public void readDesignSpecifications()readDesignSpecifications.
-
setMaxOperationPressure
public void setMaxOperationPressure(double maxPressure) Setter for the field
maxOperationPressure.- Parameters:
maxPressure- the maxPressure to set
-
getMinOperationPressure
public double getMinOperationPressure()Getter for the field
minOperationPressure.- Returns:
- the minPressure
-
setMinOperationPressure
public void setMinOperationPressure(double minPressure) Setter for the field
minOperationPressure.- Parameters:
minPressure- the minPressure to set
-
getMaxOperationTemperature
public double getMaxOperationTemperature()Getter for the field
maxOperationTemperature.- Returns:
- the maxTemperature
-
setMaxOperationTemperature
public void setMaxOperationTemperature(double maxTemperature) Setter for the field
maxOperationTemperature.- Parameters:
maxTemperature- the maxTemperature to set
-
getMinOperationTemperature
public double getMinOperationTemperature()Getter for the field
minOperationTemperature.- Returns:
- the minTemperature
-
setMinOperationTemperature
public void setMinOperationTemperature(double minTemperature) Setter for the field
minOperationTemperature.- Parameters:
minTemperature- the minTemperature to set
-
getProcessEquipment
Getter for the field
processEquipment.- Returns:
- the processEquipment
-
setProcessEquipment
Setter for the field
processEquipment.- Parameters:
processEquipment- the processEquipment to set
-
calcDesign
public void calcDesign()calcDesign.
-
setDesign
public void setDesign()setDesign.
-
getTensileStrength
public double getTensileStrength()Getter for the field
tensileStrength.- Returns:
- the tensileStrength
-
setTensileStrength
public void setTensileStrength(double tensileStrength) Setter for the field
tensileStrength.- Parameters:
tensileStrength- the tensileStrength to set
-
getConstrutionMaterial
Getter for the field
construtionMaterial.- Returns:
- the construtionMaterial
-
setConstrutionMaterial
Setter for the field
construtionMaterial.- Parameters:
construtionMaterial- the construtionMaterial to set
-
getJointEfficiency
public double getJointEfficiency()Getter for the field
jointEfficiency.- Returns:
- the jointEfficiency
-
getMaxAllowableStress
public double getMaxAllowableStress()getMaxAllowableStress.
- Returns:
- a double
-
setJointEfficiency
public void setJointEfficiency(double jointEfficiency) Setter for the field
jointEfficiency.- Parameters:
jointEfficiency- the jointEfficiency to set
-
getCorrosionAllowance
public double getCorrosionAllowance()Getter for the field
corrosionAllowance.- Returns:
- the corrosionAllowance
-
setCorrosionAllowance
public void setCorrosionAllowance(double corrosionAllowance) Setter for the field
corrosionAllowance.- Parameters:
corrosionAllowance- the corrosionAllowance to set
-
getPressureMarginFactor
public double getPressureMarginFactor()Getter for the field
pressureMarginFactor.- Returns:
- the pressureMarginFactor
-
setPressureMarginFactor
public void setPressureMarginFactor(double pressureMarginFactor) Setter for the field
pressureMarginFactor.- Parameters:
pressureMarginFactor- the pressureMarginFactor to set
-
getOuterDiameter
public double getOuterDiameter()Getter for the field
outerDiameter.- Returns:
- a double
-
getCompanySpecificDesignStandards
Getter for the field
companySpecificDesignStandards.- Returns:
- the companySpecificDesignStandards
-
setCompanySpecificDesignStandards
Setter for the field
companySpecificDesignStandards.- Parameters:
companySpecificDesignStandards- the companySpecificDesignStandards to set
-
setDesignStandard
Set a design standard using an international standard type.This method allows setting design standards based on international standards like NORSOK, ASME, API, DNV, ISO, ASTM, etc. The standard is placed in the appropriate category based on its type.
Example usage:
equipment.getMechanicalDesign().setDesignStandard(StandardType.ASME_VIII_DIV1); equipment.getMechanicalDesign().setDesignStandard(StandardType.NORSOK_P_001);
- Parameters:
standardType- the international standard type to use- Throws:
IllegalArgumentException- if standardType is null
-
setDesignStandard
Set a design standard using an international standard type with a specific version.- Parameters:
standardType- the international standard type to useversion- the specific version of the standard (e.g., "2021", "Rev 6")- Throws:
IllegalArgumentException- if standardType is null
-
setDesignStandards
Set multiple design standards using international standard types.Each standard is placed in its appropriate category. If multiple standards have the same category, the last one in the list takes precedence.
- Parameters:
standardTypes- the list of standard types to apply
-
getApplicableStandards
Get a list of applicable international standards for this equipment type.- Returns:
- list of applicable StandardType values
-
getRecommendedStandards
Get recommended standards for this equipment type organized by category.- Returns:
- map of category name to list of applicable standards
-
setDesignStandard
Set a design standard for a specific category.This method allows direct assignment of a DesignStandard instance to a specific design category. It is used internally by the TorgManager and can be used for custom standard configurations.
- Parameters:
category- the design category (e.g., "pressure vessel design code")standard- the DesignStandard instance to set
-
getInnerDiameter
public double getInnerDiameter()Getter for the field
innerDiameter.- Returns:
- the innerDiameter
-
setInnerDiameter
public void setInnerDiameter(double innerDiameter) Setter for the field
innerDiameter.- Parameters:
innerDiameter- the innerDiameter to set
-
setOuterDiameter
public void setOuterDiameter(double outerDiameter) Setter for the field
outerDiameter.- Parameters:
outerDiameter- the outerDiameter to set
-
getWallThickness
public double getWallThickness()Getter for the field
wallThickness.- Returns:
- the wallThickness
-
setWallThickness
public void setWallThickness(double wallThickness) Setter for the field
wallThickness.- Parameters:
wallThickness- the wallThickness to set
-
getTantanLength
public double getTantanLength()Getter for the field
tantanLength.- Returns:
- the tantanLength
-
setTantanLength
public void setTantanLength(double tantanLength) Setter for the field
tantanLength.- Parameters:
tantanLength- the tantanLength to set
-
getWeightTotal
public double getWeightTotal()Getter for the field
weightTotal.- Returns:
- the weightTotal
-
setWeightTotal
public void setWeightTotal(double weightTotal) Setter for the field
weightTotal.- Parameters:
weightTotal- the weightTotal to set
-
getWeigthInternals
public double getWeigthInternals()Getter for the field
weigthInternals.- Returns:
- the wigthInternals
-
setWeigthInternals
public void setWeigthInternals(double weigthInternals) Setter for the field
weigthInternals.- Parameters:
weigthInternals- the weigthInternals to set
-
getWeightVessel
public double getWeightVessel()Getter for the field
weightVessel.- Returns:
- the weightShell
-
setWeightVessel
public void setWeightVessel(double weightVessel) Setter for the field
weightVessel.- Parameters:
weightVessel- the weightShell to set
-
getWeightNozzle
public double getWeightNozzle()Getter for the field
weightNozzle.- Returns:
- the weightNozzle
-
setWeightNozzle
public void setWeightNozzle(double weightNozzle) Setter for the field
weightNozzle.- Parameters:
weightNozzle- the weightNozzle to set
-
getWeightPiping
public double getWeightPiping()Getter for the field
weightPiping.- Returns:
- the weightPiping
-
setWeightPiping
public void setWeightPiping(double weightPiping) Setter for the field
weightPiping.- Parameters:
weightPiping- the weightPiping to set
-
getWeightElectroInstrument
public double getWeightElectroInstrument()Getter for the field
weightElectroInstrument.- Returns:
- the weightElectroInstrument
-
setWeightElectroInstrument
public void setWeightElectroInstrument(double weightElectroInstrument) Setter for the field
weightElectroInstrument.- Parameters:
weightElectroInstrument- the weightElectroInstrument to set
-
getWeightStructualSteel
public double getWeightStructualSteel()Getter for the field
weightStructualSteel.- Returns:
- the weightStructualSteel
-
setWeightStructualSteel
public void setWeightStructualSteel(double weightStructualSteel) Setter for the field
weightStructualSteel.- Parameters:
weightStructualSteel- the weightStructualSteel to set
-
getWeigthVesselShell
public double getWeigthVesselShell()Getter for the field
weigthVesselShell.- Returns:
- the weigthVesselShell
-
setWeigthVesselShell
public void setWeigthVesselShell(double weigthVesselShell) Setter for the field
weigthVesselShell.- Parameters:
weigthVesselShell- the weigthVesselShell to set
-
getModuleHeight
public double getModuleHeight()Getter for the field
moduleHeight.- Returns:
- the moduleHeight
-
setModuleHeight
public void setModuleHeight(double moduleHeight) Setter for the field
moduleHeight.- Parameters:
moduleHeight- the moduleHeight to set
-
getModuleWidth
public double getModuleWidth()Getter for the field
moduleWidth.- Returns:
- the moduleWidth
-
setModuleWidth
public void setModuleWidth(double moduleWidth) Setter for the field
moduleWidth.- Parameters:
moduleWidth- the moduleWidth to set
-
getModuleLength
public double getModuleLength()Getter for the field
moduleLength.- Returns:
- the moduleLength
-
setModuleLength
public void setModuleLength(double moduleLength) Setter for the field
moduleLength.- Parameters:
moduleLength- the moduleLength to set
-
getDesignStandard
Getter for the field
designStandard.- Returns:
- the designStandard
-
setDesignStandard
Setter for the field
designStandard.- Parameters:
designStandard- the designStandard to set
-
hasDesignStandard
public boolean hasDesignStandard()Check if this mechanical design has any design standards assigned.- Returns:
- true if at least one design standard is assigned
-
getMaxDesignVolumeFlow
public double getMaxDesignVolumeFlow()Getter for the field
maxDesignVolumeFlow.- Returns:
- the maxDesignVolumeFlow
-
setMaxDesignVolumeFlow
public void setMaxDesignVolumeFlow(double maxDesignVolumeFlow) Setter for the field
maxDesignVolumeFlow.- Parameters:
maxDesignVolumeFlow- the maxDesignVolumeFlow to set
-
getMinDesignVolumeFLow
public double getMinDesignVolumeFLow()Getter for the field
minDesignVolumeFLow.- Returns:
- the minDesignVolumeFLow
-
setMinDesignVolumeFLow
public void setMinDesignVolumeFLow(double minDesignVolumeFLow) Setter for the field
minDesignVolumeFLow.- Parameters:
minDesignVolumeFLow- the minDesignVolumeFLow to set
-
getMaxDesignGassVolumeFlow
public double getMaxDesignGassVolumeFlow()Getter for the field
maxDesignGassVolumeFlow.- Returns:
- the maxDesignGassVolumeFlow
-
setMaxDesignGassVolumeFlow
public void setMaxDesignGassVolumeFlow(double maxDesignGassVolumeFlow) Setter for the field
maxDesignGassVolumeFlow.- Parameters:
maxDesignGassVolumeFlow- the maxDesignGassVolumeFlow to set
-
getMinDesignGassVolumeFLow
public double getMinDesignGassVolumeFLow()Getter for the field
minDesignGassVolumeFLow.- Returns:
- the minDesignGassVolumeFLow
-
setMinDesignGassVolumeFLow
public void setMinDesignGassVolumeFLow(double minDesignGassVolumeFLow) Setter for the field
minDesignGassVolumeFLow.- Parameters:
minDesignGassVolumeFLow- the minDesignGassVolumeFLow to set
-
getMaxDesignOilVolumeFlow
public double getMaxDesignOilVolumeFlow()Getter for the field
maxDesignOilVolumeFlow.- Returns:
- the maxDesignOilVolumeFlow
-
setMaxDesignOilVolumeFlow
public void setMaxDesignOilVolumeFlow(double maxDesignOilVolumeFlow) Setter for the field
maxDesignOilVolumeFlow.- Parameters:
maxDesignOilVolumeFlow- the maxDesignOilVolumeFlow to set
-
getMinDesignOilFLow
public double getMinDesignOilFLow()Getter for the field
minDesignOilFLow.- Returns:
- the minDesignOilFLow
-
setMinDesignOilFLow
public void setMinDesignOilFLow(double minDesignOilFLow) Setter for the field
minDesignOilFLow.- Parameters:
minDesignOilFLow- the minDesignOilFLow to set
-
getMaxDesignWaterVolumeFlow
public double getMaxDesignWaterVolumeFlow()Getter for the field
maxDesignWaterVolumeFlow.- Returns:
- the maxDesignWaterVolumeFlow
-
setMaxDesignWaterVolumeFlow
public void setMaxDesignWaterVolumeFlow(double maxDesignWaterVolumeFlow) Setter for the field
maxDesignWaterVolumeFlow.- Parameters:
maxDesignWaterVolumeFlow- the maxDesignWaterVolumeFlow to set
-
getMinDesignWaterVolumeFLow
public double getMinDesignWaterVolumeFLow()Getter for the field
minDesignWaterVolumeFLow.- Returns:
- the minDesignWaterVolumeFLow
-
setMinDesignWaterVolumeFLow
public void setMinDesignWaterVolumeFLow(double minDesignWaterVolumeFLow) Setter for the field
minDesignWaterVolumeFLow.- Parameters:
minDesignWaterVolumeFLow- the minDesignWaterVolumeFLow to set
-
displayResults
public void displayResults()displayResults.
-
getVolumeTotal
public double getVolumeTotal()Getter for the field
volumeTotal.- Returns:
- the volumeTotal
-
isHasSetCompanySpecificDesignStandards
public boolean isHasSetCompanySpecificDesignStandards()isHasSetCompanySpecificDesignStandards.
- Returns:
- the hasSetCompanySpecificDesignStandards
-
setHasSetCompanySpecificDesignStandards
public void setHasSetCompanySpecificDesignStandards(boolean hasSetCompanySpecificDesignStandards) Setter for the field
hasSetCompanySpecificDesignStandards.- Parameters:
hasSetCompanySpecificDesignStandards- the hasSetCompanySpecificDesignStandards to set
-
getCostEstimate
Getter for the field
costEstimate.- Returns:
- the costEstimate
-
setDefaultLiquidDensity
public void setDefaultLiquidDensity(double defaultLiqDens) Setter for the field
defaultLiquidDensity.- Parameters:
defaultLiqDens- a double
-
getDefaultLiquidDensity
public double getDefaultLiquidDensity()Getter for the field
defaultLiquidDensity.- Returns:
- a double
-
setDefaultLiquidViscosity
public void setDefaultLiquidViscosity(double defaultLiqVisc) Setter for the field
defaultLiquidViscosity.- Parameters:
defaultLiqVisc- a double
-
getDefaultLiquidViscosity
public double getDefaultLiquidViscosity()Getter for the field
defaultLiquidViscosity.- Returns:
- a double
-
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();- Returns:
- JSON string representation of the mechanical design
-
toCompactJson
Export mechanical design data to compact JSON format (no pretty printing).- Returns:
- compact JSON string
-
getResponse
Get the mechanical design response object.This method returns a
MechanicalDesignResponseobject that can be further customized or combined with other data before serialization.- Returns:
- MechanicalDesignResponse object
-
hashCode
-
equals
-