Interface SimulationInterface
- All Superinterfaces:
NamedInterface, Runnable, Serializable
- All Known Subinterfaces:
AbsorberInterface, CompressorInterface, DistillationInterface, ExpanderInterface, HeaterInterface, HeatExchangerInterface, MixerInterface, ModuleInterface, MultiStreamHeatExchangerInterface, PipeLineInterface, ProcessEquipmentInterface, PumpInterface, SeparatorInterface, 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, ProcessModule, ProcessModuleBaseClass, ProcessSystem, 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, SimulationBaseClass, 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
Interface for simulation objects.
- Version:
- $Id: $Id
- Author:
- ASMF
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGetter for property calculateSteadyState.Getter for property calcIdentifier.getReport_json.doublegetTime()Getter for the fieldtime.voidincreaseTime(double dt) Method to increase fieldtimeby a given value.booleanisRunInSteps.default voidrun()voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.default voidrun_step()In this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrun_stepdefault voidrunTransient(double dt) runTransientdefault voidrunTransient(double dt, UUID id) runTransientvoidsetCalculateSteadyState(boolean steady) Setter for property calculateSteadyState.voidsetCalculationIdentifier(UUID value) Setter for property calcIdentifier.voidsetRunInSteps(boolean setRunSteps) setRunInSteps.voidsetTime(double value) Setter for fieldtime.booleansolved()Returns whether or not the module has been solved.Methods inherited from interface NamedInterface
getName, getTagName, setName, setTagName
-
Method Details
-
getCalculationIdentifier
UUID getCalculationIdentifier()Getter for property calcIdentifier.- Returns:
- Value of calcIdentifier.
-
setCalculationIdentifier
Setter for property calcIdentifier.- Parameters:
value- Value to set.
-
getCalculateSteadyState
boolean getCalculateSteadyState()Getter for property calculateSteadyState.- Returns:
- Value of property calculateSteadyState
-
setCalculateSteadyState
void setCalculateSteadyState(boolean steady) Setter for property calculateSteadyState.- Parameters:
steady- Set true to do steady state calculation when calling runTransient.
-
getTime
double getTime()Getter for the fieldtime.- Returns:
- Value of property time.
-
setTime
void setTime(double value) Setter for fieldtime.- Parameters:
value- Value to set.
-
increaseTime
void increaseTime(double dt) Method to increase fieldtimeby a given value.- Parameters:
dt- Value to increase time by.
-
setRunInSteps
void setRunInSteps(boolean setRunSteps) setRunInSteps.
- Parameters:
setRunSteps- boolean set true to run in steps
-
isRunInSteps
boolean isRunInSteps()isRunInSteps.
- Returns:
- boolean
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
run
-
run_step
default void run_step()In this method all thermodynamic and unit operations will be calculated in a steady state calculation. It does not solve recycles - only calculates one step.
-
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- Parameters:
value- Calc identifier UUID to set.
-
runTransient
default void runTransient(double dt) 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.- Parameters:
dt- Delta time [s]
-
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.- Parameters:
dt- Delta time [s]id- Calculation identifier
-
solved
boolean solved()Returns whether or not the module has been solved.
- Returns:
- a boolean
-
getReport_json
String getReport_json()getReport_json.
Return results of simulation in json format- Returns:
- a String
-