Class ProcessEquipmentBaseClass
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface
- Direct Known Subclasses:
Adjuster, BatteryStorage, Calculator, CO2Electrolyzer, ComponentSplitter, DexpiProcessUnit, DexpiProcessUnit, DistillationColumn, Ejector, Electrolyzer, FlareStack, FurnaceBurner, Manifold, MembraneSeparator, Mixer, PipeFlowNetwork, ProducedWaterTreatmentTrain, Recycle, ReservoirCVDsim, ReservoirDiffLibsim, ReservoirTPsim, Separator, SetPoint, Setter, SimpleAdsorber, SimpleReservoir, SolarPanel, Splitter, Stream, Tank, TwoPortEquipment, VesselDepressurization, VirtualStream, WellFlowlineNetwork, WellSystem, WindTurbine
Abstract ProcessEquipmentBaseClass class.
- Version:
- $Id: $Id
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ControllerDeviceInterface(package private) ControllerDeviceInterfacebooleanprivate booleanprivate booleanprotected booleanprivate doubleString[][]private static final longSerialization version UID.private StringFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ProcessEquipmentBaseClass. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create deep copy.voiddisplayResult.booleangetConditionAnalysisMessage.getController.Getter for the fieldenergyStream.doublegetEntropyProduction(String unit) getEntropyProduction.doublegetExergyChange(String unit, double surroundingTemperature) Get exergy change production of the process equipment.doublegetMassBalance in kg/sec.doublegetMassBalance(String unit) getMassBalance.Get amechanicalDesignfor the equipment.doubleGetter for the fieldminimumFlow, e.g., the minimum flow rate for the pump.doubleGetter for the fieldpressure.doublegetPressure(String unit) Getter for the fieldpressureconverted to specified unit.getProperty(String propertyName) getProperty.getReport_json.String[][]getResultTable.getSpecification.doubleGetter for the fieldtemperature.doublegetTemperature(String unit) Getter for the fieldtemperatureconverted to specified unit.getThermoSystem.inthashCode()voidInitialize ainitMechanicalDesignfor the equipment.booleanisActive()Getter for the fieldisActive.voidisActive(boolean isActive) Setter for the fieldisActive.booleanisSetEnergyStream.String[][]reportResults.voidrun_stepvoidrunConditionAnalysis(ProcessEquipmentInterface refExchanger) runConditionAnalysis.voidsetController(ControllerDeviceInterface controller) setController.voidsetEnergyStream(boolean isSetEnergyStream) Setter for the fieldenergyStream.voidsetEnergyStream(EnergyStream energyStream) Setter for the fieldenergyStream.voidsetFlowValveController(ControllerDeviceInterface controller) Setter for the fieldflowValveController.voidsetMinimumFlow(double minimumFlow) Setter for the fieldminimumFlow, e.g., the minimum flow rate for the pump.voidsetPressure(double pressure) Setter for the fieldpressure.voidsetRegulatorOutSignal(double signal) setRegulatorOutSignal.voidsetSpecification(String specification) setSpecification.voidsetTemperature(double temperature) Setter for the fieldtemperature.booleansolved()Returns whether or not the module has been solved.toJson()Serializes the Process Equipment along with its state to a JSON string.toJson(ReportConfig cfg) Serializes the Process Equipment with configurable level of detail.Methods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getExergyChange, getFluid, getRestCapacity, needRecalculation, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
controller
-
flowValveController
ControllerDeviceInterface flowValveController -
hasController
public boolean hasController -
specification
-
report
-
properties
-
energyStream
-
isSetEnergyStream
private boolean isSetEnergyStream -
isSolved
protected boolean isSolved -
isActive
private boolean isActive -
minimumFlow
private double minimumFlow -
conditionAnalysisMessage
-
-
Constructor Details
-
ProcessEquipmentBaseClass
-
-
Method Details
-
getThermoSystem
getThermoSystem.
- Specified by:
getThermoSystemin interfaceProcessEquipmentInterface- Returns:
- a
SystemInterfaceobject
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface
-
copy
Create deep copy.- Returns:
- a deep copy of the unit operation/process equipment
-
getProperty
-
setRegulatorOutSignal
public void setRegulatorOutSignal(double signal) setRegulatorOutSignal.
- Specified by:
setRegulatorOutSignalin interfaceProcessEquipmentInterface- Parameters:
signal- a double
-
setController
setController.
- Specified by:
setControllerin interfaceProcessEquipmentInterface- Parameters:
controller- aControllerDeviceInterfaceobject
-
setFlowValveController
Setter for the field
flowValveController.- Parameters:
controller- aControllerDeviceInterfaceobject
-
getController
getController.
- Specified by:
getControllerin interfaceProcessEquipmentInterface- Returns:
- a
ControllerDeviceInterfaceobject
-
getMechanicalDesign
Get a
mechanicalDesignfor the equipment.- Specified by:
getMechanicalDesignin interfaceProcessEquipmentInterface- Returns:
- a
MechanicalDesignobject
-
initMechanicalDesign
public void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment.- Specified by:
initMechanicalDesignin interfaceProcessEquipmentInterface
-
getSpecification
getSpecification.
- Specified by:
getSpecificationin interfaceProcessEquipmentInterface- Returns:
- a
Stringobject
-
setSpecification
setSpecification.
- Specified by:
setSpecificationin interfaceProcessEquipmentInterface- Parameters:
specification- aStringobject
-
reportResults
reportResults.
- Specified by:
reportResultsin interfaceProcessEquipmentInterface- Returns:
- an array of
Stringobjects
-
solved
public boolean solved()Returns whether or not the module has been solved.
- Specified by:
solvedin interfaceSimulationInterface- Returns:
- a boolean
-
getEnergyStream
Getter for the field
energyStream.- Returns:
- a
EnergyStreamobject
-
setEnergyStream
Setter for the field
energyStream.- Parameters:
energyStream- aEnergyStreamobject
-
setEnergyStream
public void setEnergyStream(boolean isSetEnergyStream) Setter for the field
energyStream.- Parameters:
isSetEnergyStream- a boolean
-
isSetEnergyStream
public boolean isSetEnergyStream()isSetEnergyStream.
- Returns:
- a boolean
-
getPressure
public double getPressure()Getter for the field
pressure.- Specified by:
getPressurein interfaceProcessEquipmentInterface- Returns:
- Pressure in bara
-
getPressure
Getter for the field
pressureconverted to specified unit.- Specified by:
getPressurein interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
setPressure
public void setPressure(double pressure) Setter for the field
pressure.- Specified by:
setPressurein interfaceProcessEquipmentInterface- Parameters:
pressure- a double
-
getTemperature
public double getTemperature()Getter for the field
temperature.- Specified by:
getTemperaturein interfaceProcessEquipmentInterface- Returns:
- a double
-
getTemperature
Getter for the field
temperatureconverted to specified unit.- Specified by:
getTemperaturein interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
setTemperature
public void setTemperature(double temperature) Setter for the field
temperature.- Specified by:
setTemperaturein interfaceProcessEquipmentInterface- Parameters:
temperature- Temperature in Kelvin
-
getEntropyProduction
getEntropyProduction.
- Specified by:
getEntropyProductionin interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
getMassBalance
getMassBalance.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
getMassBalance
public double getMassBalance()getMassBalance in kg/sec.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Returns:
- The mass balance of the process equipment in kg/sec.
-
getExergyChange
Get exergy change production of the process equipment.- Specified by:
getExergyChangein interfaceProcessEquipmentInterface- Parameters:
unit- Supported units are J and kJsurroundingTemperature- The surrounding temperature in Kelvin- Returns:
- change in exergy in specified unit
-
runConditionAnalysis
runConditionAnalysis.
- Specified by:
runConditionAnalysisin interfaceProcessEquipmentInterface- Parameters:
refExchanger- aProcessEquipmentInterfaceobject
-
getConditionAnalysisMessage
getConditionAnalysisMessage.
- Specified by:
getConditionAnalysisMessagein interfaceProcessEquipmentInterface- Returns:
- a
Stringobject
-
getResultTable
getResultTable.
- Specified by:
getResultTablein interfaceProcessEquipmentInterface- Returns:
- an array of
Stringobjects
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceProcessEquipmentInterface- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceProcessEquipmentInterface- Overrides:
equalsin classObject
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Specified by:
toJsonin interfaceProcessEquipmentInterface- Parameters:
cfg- report configuration- Returns:
- json string
-
getReport_json
getReport_json.
Return results of simulation in json format- Specified by:
getReport_jsonin interfaceProcessEquipmentInterface- Specified by:
getReport_jsonin interfaceSimulationInterface- Returns:
- a String
-
run_step
run_step
In this method all thermodynamic and unit operations will be calculated in a steady state calculation. Sets calc identifier UUID. It does not solve recycles - only calculates one step- Specified by:
run_stepin interfaceSimulationInterface- Parameters:
id- Calc identifier UUID to set.
-
getMinimumFlow
public double getMinimumFlow()Getter for the field
minimumFlow, e.g., the minimum flow rate for the pump.- Returns:
- a double
-
setMinimumFlow
public void setMinimumFlow(double minimumFlow) Setter for the field
minimumFlow, e.g., the minimum flow rate for the pump.- Parameters:
minimumFlow- a double
-
isActive
public boolean isActive()Getter for the field
isActive.- Returns:
- a boolean
-
isActive
public void isActive(boolean isActive) Setter for the field
isActive.- Parameters:
isActive- a boolean
-