Class VirtualStream
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.stream.VirtualStream
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface
VirtualStream class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double[]protected Stringprotected doubleprotected String(package private) static org.apache.logging.log4j.LoggerLogger object for class.protected StreamInterfaceprotected doubleprotected Stringprotected StreamInterfaceprivate static final longSerialization version UID.protected booleanprotected booleanprotected booleanprotected booleanprotected doubleprotected StringFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionVirtualStream(String name) Constructor for VirtualStream.VirtualStream(String name, StreamInterface stream) Constructor for VirtualStream. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldoutStream.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetComposition(double[] comps, String unit) Setter for the fieldcomposition.voidsetFlowRate(double rate, String unit) Setter for the fieldflowRate.voidsetPressure(double pres, String unit) Setter for the fieldpressure.voidsetReferenceStream(StreamInterface stream) setReferenceStream.voidsetTemperature(double temp, String unit) Setter for the fieldtemperature.booleansolved()Returns whether or not the module has been solved.Methods inherited from class ProcessEquipmentBaseClass
copy, displayResult, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, 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, toJson, toJsonMethods 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_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
refStream
-
outStream
-
flowRate
protected double flowRate -
flowUnit
-
setFlowRate
protected boolean setFlowRate -
temperature
protected double temperature -
temperatureUnit
-
setTemperature
protected boolean setTemperature -
pressure
protected double pressure -
pressureUnit
-
setPressure
protected boolean setPressure -
composition
protected double[] composition -
compositionUnit
-
setComposition
protected boolean setComposition
-
-
Constructor Details
-
VirtualStream
Constructor for VirtualStream.
- Parameters:
name- aStringobjectstream- aStreamInterfaceobject
-
VirtualStream
-
-
Method Details
-
setReferenceStream
setReferenceStream.
- Parameters:
stream- aStreamInterfaceobject
-
setFlowRate
-
setComposition
-
setTemperature
-
setPressure
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
getOutStream
Getter for the field
outStream.- Returns:
- a
StreamInterfaceobject
-
solved
public boolean solved()Returns whether or not the module has been solved.
- Specified by:
solvedin interfaceSimulationInterface- Overrides:
solvedin classProcessEquipmentBaseClass- Returns:
- a boolean
-