Interface ProcessEquipmentInterface
- All Superinterfaces:
NamedInterface, Runnable, Serializable, SimulationInterface
- All Known Subinterfaces:
AbsorberInterface, CompressorInterface, DistillationInterface, ExpanderInterface, MixerInterface, ModuleInterface, MultiStreamHeatExchangerInterface, PumpInterface, SplitterInterface, StreamInterface, TrayInterface, ValveInterface
- All Known Implementing Classes:
AdiabaticPipe, AdiabaticTwoPhasePipe, Adjuster, AdsorptionDehydrationlModule, AirCooler, BatteryStorage, BlowdownValve, Calculator, CharCoalFilter, CheckValve, CO2Electrolyzer, CO2RemovalModule, ComponentSplitter, Compressor, Condenser, ControlValve, Cooler, DexpiProcessUnit, DexpiProcessUnit, DexpiStream, DexpiStream, DistillationColumn, DPCUModule, Ejector, Electrolyzer, EquilibriumStream, ESDValve, ESPPump, Expander, ExpanderOld, Filter, Flare, FlareStack, FlowRateAdjuster, FlowSetter, FuelCell, FurnaceBurner, GasScrubber, GasScrubberSimple, GasTurbine, GibbsReactor, GibbsReactorCO2, GlycolDehydrationlModule, GORfitter, Heater, HeatExchanger, HIPPSValve, Hydrocyclone, Hydrocyclone, IncompressiblePipeFlow, IronIonSaturationStream, LevelControlValve, Manifold, MEGReclaimerModule, MembraneSeparator, Mixer, MixerGasProcessingModule, MoleFractionControllerUtil, MPFMfitter, MultiStreamHeatExchanger, MultiStreamHeatExchanger2, NeqGasScrubber, NeqHeater, NeqSimUnit, NeqStream, OnePhasePipeLine, Orifice, PipeBeggsAndBrills, PipeFlowNetwork, Pipeline, PressureControlValve, PressureDrop, ProcessEquipmentBaseClass, ProcessModuleBaseClass, ProducedWaterTreatmentTrain, PropaneCoolingModule, PSDValve, Pump, Reboiler, ReBoiler, Recycle, ReservoirCVDsim, ReservoirDiffLibsim, ReservoirTPsim, RuptureDisk, SafetyReliefValve, SafetyValve, ScalePotentialCheckStream, SeparationTrainModule, SeparationTrainModuleSimple, Separator, SetPoint, Setter, SimpleAbsorber, SimpleAdsorber, SimpleFlowLine, SimpleReservoir, SimpleTEGAbsorber, SimpleTPoutPipeline, SimpleTray, SolarPanel, Splitter, StaticMixer, StaticNeqMixer, StaticPhaseMixer, SteamHeater, Stream, StreamSaturatorUtil, StreamTransition, SubseaWell, Tank, ThreePhaseSeparator, ThrottlingValve, TransientPipe, TubingPerformance, TubingPerformance, TurboExpanderCompressor, TwoFluidPipe, TwoPhasePipeLine, TwoPhaseSeparator, TwoPortEquipment, VesselDepressurization, VirtualStream, VLSolidTray, WaterCooler, WaterHammerPipe, WaterStripperColumn, WellFlow, WellFlowlineNetwork, WellFluidModule, WellSystem, WindTurbine
ProcessEquipmentInterface interface.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResult.booleandefault doublegetCapacityDuty.default doublegetCapacityMax.getConditionAnalysisMessage.getController.default doublegetEntropyProduction(String unit) getEntropyProduction.default doublegetExergyChange(String unit) getExergyChange.doublegetExergyChange(String unit, double surroundingTemperature) Get exergy change production of the process equipment.default SystemInterfacegetFluid()getFluid.doublegetMassBalance in kg/sec.default doublegetMassBalance(String unit) getMassBalance.Get amechanicalDesignfor the equipment.doubleGetter for the fieldpressure.doublegetPressure(String unit) Getter for the fieldpressureconverted to specified unit.getReport_json.default doublegetRestCapacity.String[][]getResultTable.getSpecification.doubleGetter for the fieldtemperature.doublegetTemperature(String unit) Getter for the fieldtemperatureconverted to specified unit.getThermoSystem.inthashCode()default voidInitialize ainitMechanicalDesignfor the equipment.default booleanCheck if process equipment needs recalculating.String[][]reportResults.voidrunConditionAnalysis(ProcessEquipmentInterface refExchanger) runConditionAnalysis.voidsetController(ControllerDeviceInterface controller) setController.voidsetPressure(double pressure) Setter for the fieldpressure.voidsetRegulatorOutSignal(double signal) setRegulatorOutSignal.voidsetSpecification(String specification) setSpecification.voidsetTemperature(double temperature) Setter for the fieldtemperature.toJson()Serializes the Process Equipment along with its state to a JSON string.default StringtoJson(ReportConfig cfg) Serializes the Process Equipment with configurable level of detail.default ValidationResultValidate the process equipment before execution.Methods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run, run_step, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solved
-
Method Details
-
reportResults
-
initMechanicalDesign
default void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment. -
getMechanicalDesign
MechanicalDesign getMechanicalDesign()Get a
mechanicalDesignfor the equipment.- Returns:
- a
MechanicalDesignobject
-
needRecalculation
default boolean needRecalculation()Check if process equipment needs recalculating.
- Returns:
- true or false
-
getSpecification
-
setSpecification
-
displayResult
void displayResult()displayResult.
-
setRegulatorOutSignal
void setRegulatorOutSignal(double signal) setRegulatorOutSignal.
- Parameters:
signal- a double
-
setController
setController.
- Parameters:
controller- aControllerDeviceInterfaceobject
-
getController
ControllerDeviceInterface getController()getController.
- Returns:
- a
ControllerDeviceInterfaceobject
-
getFluid
-
getThermoSystem
-
getMassBalance
double getMassBalance()getMassBalance in kg/sec.
- Returns:
- The mass balance of the process equipment in kg/sec.
-
getPressure
double getPressure()Getter for the field
pressure.- Returns:
- Pressure in bara
-
getPressure
-
getTemperature
-
getTemperature
double getTemperature()Getter for the field
temperature.- Returns:
- a double
-
setPressure
void setPressure(double pressure) Setter for the field
pressure.- Parameters:
pressure- a double
-
setTemperature
void setTemperature(double temperature) Setter for the field
temperature.- Parameters:
temperature- Temperature in Kelvin
-
runConditionAnalysis
runConditionAnalysis.
- Parameters:
refExchanger- aProcessEquipmentInterfaceobject
-
getConditionAnalysisMessage
-
getExergyChange
Get exergy change production of the process equipment.- Parameters:
unit- Supported units are J and kJsurroundingTemperature- The surrounding temperature in Kelvin- Returns:
- change in exergy in specified unit
-
getResultTable
-
equals
-
hashCode
-
toJson
String toJson()Serializes the Process Equipment along with its state to a JSON string.
- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Parameters:
cfg- report configuration- Returns:
- json string
-
getReport_json
String getReport_json()getReport_json.
Return results of simulation in json format- Specified by:
getReport_jsonin interfaceSimulationInterface- Returns:
- a String
-
getEntropyProduction
-
getMassBalance
-
getExergyChange
-
getCapacityDuty
default double getCapacityDuty()getCapacityDuty.
- Returns:
- a double
-
getCapacityMax
default double getCapacityMax()getCapacityMax.
- Returns:
- a double
-
getRestCapacity
default double getRestCapacity()getRestCapacity.
- Returns:
- a double
-
validateSetup
Validate the process equipment before execution.Checks for common setup errors:
- Equipment has a valid name
- Input streams connected
- Operating parameters in valid ranges
- Returns:
- validation result with errors and warnings
-