Interface StreamInterface
- All Superinterfaces:
NamedInterface, ProcessEquipmentInterface, Runnable, Serializable, SimulationInterface
- All Known Implementing Classes:
DexpiStream, DexpiStream, EquilibriumStream, IronIonSaturationStream, NeqStream, ScalePotentialCheckStream, Stream
StreamInterface interface.
- Version:
- $Id: $Id
- Author:
- esol
-
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculate and return cricondenbar.doubleCalculate and return cricondentherm.clone()Clone object.Clone object and set a new name.booleanvoidflashStream.doubleGCV()GCV.default doublegetFlowRate(String unit) getFlowRate.doublegetGCV.doublegetHydrateEquilibriumTemperature.doublegetHydrocarbonDewPoint(String temperatureUnit, double refpressure, String refPressureUnit) Calculates the hydrocarbon dew point of the stream.getISO6976(String unit, double refTVolume, double refTCombustion) getWI.doublegetMolarRate.doubleGetter for the fieldpressure.doublegetPressure(String unit) Getter for the fieldpressureconverted to specified unit.doubleCalculates the Reid Vapor Pressure (RVP) of the stream.doubleCalculates the Reid Vapor Pressure (RVP) of the stream.doubleGetter for the fieldtemperature.doublegetTemperature(String unit) Getter for the fieldtemperatureconverted to specified unit.getThermoSystem.doubleCalculates the True Vapor Pressure (TVP) of the stream.doublegetWI.inthashCode()doubleLCV()LCV.voidrunTPflash.voidsetEmptyThermoSystem(SystemInterface thermoSystem) setEmptyThermoSystem.voidsetFlowRate(double flowrate, String unit) setFlowRate.voidsetFluid(SystemInterface fluid) setFluid.voidSetter for the fieldname.voidsetPressure(double pressure, String unit) setPressure.voidsetTemperature(double temperature, String unit) setTemperature.voidsetThermoSystem(SystemInterface thermoSystem) setThermoSystem.voidsetThermoSystemFromPhase(SystemInterface thermoSystem, String phaseTypeName) setThermoSystemFromPhase.doubleCalculates the True Vapor Pressure (TVP) of the stream.Methods inherited from interface NamedInterface
getName, getTagName, setTagNameMethods inherited from interface ProcessEquipmentInterface
displayResult, getCapacityDuty, getCapacityMax, getConditionAnalysisMessage, getController, getEntropyProduction, getExergyChange, getExergyChange, getFluid, getMassBalance, getMassBalance, getMechanicalDesign, getReport_json, getRestCapacity, getResultTable, getSpecification, initMechanicalDesign, needRecalculation, reportResults, runConditionAnalysis, setController, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, toJson, toJson, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run, run_step, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solved
-
Method Details
-
getThermoSystem
SystemInterface getThermoSystem()getThermoSystem.
- Specified by:
getThermoSystemin interfaceProcessEquipmentInterface- Returns:
- a
SystemInterfaceobject
-
setThermoSystem
setThermoSystem.
- Parameters:
thermoSystem- aSystemInterfaceobject
-
setFlowRate
-
getPressure
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
-
runTPflash
void runTPflash()runTPflash.
-
getTemperature
Getter for the field
temperatureconverted to specified unit.- Specified by:
getTemperaturein interfaceProcessEquipmentInterface- Parameters:
unit- aStringobject- Returns:
- a double
-
getTemperature
double getTemperature()Getter for the field
temperature.- Specified by:
getTemperaturein interfaceProcessEquipmentInterface- Returns:
- a double
-
setName
Setter for the field
name.- Specified by:
setNamein interfaceNamedInterface- Parameters:
name- aStringobject
-
CCT
-
CCB
-
getFlowRate
getFlowRate. Wrapper for SystemInterface.getFlowRate().
- Parameters:
unit- Supported units are kg/sec, kg/min, kg/hr, kg/day, m3/sec, m3/min, m3/hr, Sm3/sec, Sm3/hr, Sm3/day, MSm3/day, mole/sec, mole/min, mole/hr- Returns:
- flow rate in specified unit
-
TVP
-
getTVP
-
getRVP
-
getRVP
Calculates the Reid Vapor Pressure (RVP) of the stream.- Parameters:
referenceTemperature- the reference temperature at which RVP is calculatedunit- the unit of the reference temperaturereturnUnit- the unit in which the RVP should be returnedrvpMethod- the method used to calculate RVP- Returns:
- the calculated RVP in the specified return unit
-
setFluid
-
getMolarRate
double getMolarRate()getMolarRate.
- Returns:
- a double
-
clone
-
clone
Clone object and set a new name.
- Parameters:
name- Name of cloned object- Returns:
- a
StreamInterfaceobject
-
flashStream
void flashStream()flashStream.
-
getHydrateEquilibriumTemperature
double getHydrateEquilibriumTemperature()getHydrateEquilibriumTemperature.
- Returns:
- a double
-
setThermoSystemFromPhase
setThermoSystemFromPhase.
- Parameters:
thermoSystem- aSystemInterfaceobjectphaseTypeName- aStringobject
-
setEmptyThermoSystem
setEmptyThermoSystem.
- Parameters:
thermoSystem- aSystemInterfaceobject
-
setPressure
-
setTemperature
-
GCV
double GCV()GCV.
- Returns:
- a double
-
getGCV
getGCV.
- Parameters:
unit- a StringrefTVolume- a double in CelciusrefTCombustion- a double in Celcius- Returns:
- a double
-
getWI
getWI.
- Parameters:
unit- a StringrefTVolume- a double in CelciusrefTCombustion- a double in Celcius- Returns:
- a double
-
getISO6976
getWI.
- Parameters:
unit- a StringrefTVolume- a double in CelciusrefTCombustion- a double in Celcius- Returns:
- a Standard_ISO6976
-
LCV
double LCV()LCV.
- Returns:
- a double
-
equals
- Specified by:
equalsin interfaceProcessEquipmentInterface- Overrides:
equalsin classObject
-
hashCode
int hashCode()- Specified by:
hashCodein interfaceProcessEquipmentInterface- Overrides:
hashCodein classObject
-
getHydrocarbonDewPoint
Calculates the hydrocarbon dew point of the stream.- Parameters:
temperatureUnit- the unit of the temperature to be used (e.g., "C" for Celsius, "K" for Kelvin)refpressure- the reference pressure at which the dew point is to be calculatedrefPressureUnit- the unit of the reference pressure (e.g., "bar", "Pa")- Returns:
- the hydrocarbon dew point temperature in the specified temperature unit
-