Class StreamSaturatorUtil
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.TwoPortEquipment
neqsim.process.equipment.util.StreamSaturatorUtil
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
StreamSaturatorUtil class.
- Version:
- $Id: $Id
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double(package private) static org.apache.logging.log4j.LoggerLogger object for class.private booleanprotected doubleprivate static final longSerialization version UID.(package private) SystemInterfaceFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionStreamSaturatorUtil(String name, StreamInterface inStream) Constructor for StreamSaturatorUtil. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMultiPhase.booleanCheck if process equipment needs recalculating.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetApprachToSaturation(double approachToSaturation) setApprachToSaturation.voidsetInletStream(StreamInterface inletStream) Set inlet Stream of twoport.voidsetMultiPhase(boolean multiPhase) Setter for the fieldmultiPhase.Methods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature, toJson, toJson, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, displayResult, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, initMechanicalDesign, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, solvedMethods 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, getRestCapacityMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from interface TwoPortInterface
getInStream, getOutStream
-
Field Details
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
thermoSystem
SystemInterface thermoSystem -
multiPhase
private boolean multiPhase -
approachToSaturation
private double approachToSaturation -
oldInletFlowRate
protected double oldInletFlowRate
-
-
Constructor Details
-
StreamSaturatorUtil
Constructor for StreamSaturatorUtil.- Parameters:
name- name of unit opeationinStream- input stream
-
-
Method Details
-
setInletStream
Set inlet Stream of twoport.Setter for the field
inletStream.- Specified by:
setInletStreamin interfaceTwoPortInterface- Overrides:
setInletStreamin classTwoPortEquipment- Parameters:
inletStream- value to set
-
needRecalculation
public boolean needRecalculation()Check if process equipment needs recalculating.
- Returns:
- true or false
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
isMultiPhase
public boolean isMultiPhase()isMultiPhase.
- Returns:
- a boolean
-
setMultiPhase
public void setMultiPhase(boolean multiPhase) Setter for the field
multiPhase.- Parameters:
multiPhase- a boolean
-
setApprachToSaturation
public void setApprachToSaturation(double approachToSaturation) setApprachToSaturation.
- Parameters:
approachToSaturation- a double
-