Class ProcessModuleBaseClass
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, ModuleInterface, SimulationInterface, NamedInterface
- Direct Known Subclasses:
AdsorptionDehydrationlModule, CO2RemovalModule, DPCUModule, GlycolDehydrationlModule, MEGReclaimerModule, MixerGasProcessingModule, PropaneCoolingModule, SeparationTrainModule, SeparationTrainModuleSimple, WellFluidModule
Abstract ProcessModuleBaseClass class.
- Version:
- $Id: $Id
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprotected booleanprotected booleanprivate ProcessSystemprotected Stringprivate static final longSerialization version UID.Fields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcalcDesign.voiddisplayResult.getConditionAnalysisMessage.getController.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.getOperations.getPreferedThermodynamicModel.doubleGetter for the fieldpressure.doublegetPressure(String unit) Getter for the fieldpressureconverted to specified unit.getReport_json.String[][]getResultTable.getSpecification.doubleGetter for the fieldtemperature.doublegetTemperature(String unit) Getter for the fieldtemperatureconverted to specified unit.getThermoSystem.getUnit.booleanisCalcDesign.String[][]reportResults.voidrun_stepvoidrunConditionAnalysis(ProcessEquipmentInterface refExchanger) runConditionAnalysis.voidrunTransient(double dt, UUID id) runTransientvoidsetController(ControllerDeviceInterface controller) setController.abstract voidsetDesign.voidsetIsCalcDesign(boolean isCalcDesign) setIsCalcDesign.voidsetPreferedThermodynamicModel(String preferedThermodynamicModel) setPreferedThermodynamicModel.voidsetPressure(double pressure) Setter for the fieldpressure.voidsetProperty(String propertyName, double value) setProperty.voidsetProperty(String propertyName, double value, String unit) setProperty.voidsetRegulatorOutSignal(double signal) setRegulatorOutSignal.voidsetSpecification(String specification) setSpecification.voidsetSpecification(String specificationName, double value) 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.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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleInterface
addInputStream, getOutputStream, initializeModule, initializeStreamsMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
equals, getCapacityDuty, getCapacityMax, getExergyChange, getFluid, getRestCapacity, hashCode, initMechanicalDesign, needRecalculation, toJson, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run, run_step, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
preferedThermodynamicModel
-
isInitializedModule
protected boolean isInitializedModule -
isInitializedStreams
protected boolean isInitializedStreams -
isCalcDesign
private boolean isCalcDesign -
operations
-
-
Constructor Details
-
ProcessModuleBaseClass
-
-
Method Details
-
getPreferedThermodynamicModel
getPreferedThermodynamicModel.
- Specified by:
getPreferedThermodynamicModelin interfaceModuleInterface- Returns:
- a
Stringobject
-
setPreferedThermodynamicModel
setPreferedThermodynamicModel.
- Specified by:
setPreferedThermodynamicModelin interfaceModuleInterface- Parameters:
preferedThermodynamicModel- aStringobject
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface
-
setRegulatorOutSignal
public void setRegulatorOutSignal(double signal) setRegulatorOutSignal.
- Specified by:
setRegulatorOutSignalin interfaceProcessEquipmentInterface- Parameters:
signal- a double
-
setController
setController.
- Specified by:
setControllerin interfaceProcessEquipmentInterface- 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
-
calcDesign
public abstract void calcDesign()calcDesign.
-
setDesign
public abstract void setDesign()setDesign.
-
reportResults
reportResults.
- Specified by:
reportResultsin interfaceProcessEquipmentInterface- Returns:
- an array of
Stringobjects
-
isCalcDesign
public boolean isCalcDesign()isCalcDesign.
- Specified by:
isCalcDesignin interfaceModuleInterface- Returns:
- a boolean
-
setIsCalcDesign
public void setIsCalcDesign(boolean isCalcDesign) setIsCalcDesign.
- Specified by:
setIsCalcDesignin interfaceModuleInterface- Parameters:
isCalcDesign- a boolean
-
getOperations
getOperations.
- Specified by:
getOperationsin interfaceModuleInterface- Returns:
- a
ProcessSystemobject
-
runTransient
runTransient
This method calculates thermodynamic and unit operations using difference equations if available and calculateSteadyState is true. Use setCalculateSteadyState to set the parameter. Sets calc identifier UUID.- Specified by:
runTransientin interfaceSimulationInterface- Parameters:
dt- Delta time [s]id- Calculation identifier
-
solved
public boolean solved()Returns whether or not the module has been solved.
- Specified by:
solvedin interfaceSimulationInterface- Returns:
- a boolean
-
getThermoSystem
getThermoSystem.
- Specified by:
getThermoSystemin interfaceProcessEquipmentInterface- Returns:
- a
SystemInterfaceobject
-
getSpecification
getSpecification.
- Specified by:
getSpecificationin interfaceProcessEquipmentInterface- Returns:
- a
Stringobject
-
setSpecification
-
setSpecification
setSpecification.
- Specified by:
setSpecificationin interfaceProcessEquipmentInterface- Parameters:
specification- aStringobject
-
getUnit
-
setProperty
setProperty.
- Specified by:
setPropertyin interfaceModuleInterface- Parameters:
propertyName- aStringobjectvalue- a double
-
setProperty
-
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
-
getEntropyProduction
getEntropyProduction.
- Specified by:
getEntropyProductionin interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
getMassBalance
getMassBalance.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
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
-
getMassBalance
public double getMassBalance()getMassBalance in kg/sec.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Returns:
- The mass balance of the process equipment in kg/sec.
-
getResultTable
getResultTable.
- Specified by:
getResultTablein interfaceProcessEquipmentInterface- Returns:
- an array of
Stringobjects
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- 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.
-
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
-