Class SimpleTray
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.mixer.Mixer
neqsim.process.equipment.distillation.SimpleTray
- All Implemented Interfaces:
Serializable, Runnable, TrayInterface, MixerInterface, ProcessEquipmentInterface, SimulationInterface, NamedInterface
- Direct Known Subclasses:
Condenser, Reboiler, VLSolidTray
SimpleTray class.
- Version:
- $Id: $Id
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double(package private) static org.apache.logging.log4j.LoggerLogger object for class.private static final longSerialization version UID.private doubleprivate doubleFields inherited from class Mixer
mixedStream, streamsFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcMixStreamEnthalpy.doublecalcMixStreamEnthalpy0.doublegetFeedRate(String unit) getFeedRate.getGasOutStream.doublegetLiquidFlowRate(String unit) getLiquidFlowRate.getLiquidOutStream.doubleGetter for the fieldtemperature.doublegetVaporFlowRate(String unit) getVaporFlowRate.doubleguessTemperature.voidinit()init.doublemassBalance.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrun2()run2.voidsetHeatInput(double heatinp) setHeatInput.voidsetPressure(double pres) Setter for the fieldpressure.voidsetTemperature(double temperature) Setter for the fieldtemperature.voidTPflash()TPflash.Methods inherited from class Mixer
addStream, displayResult, equals, getEntropyProduction, getMassBalance, getMixedSalinity, getNumberOfInputStreams, getOutletStream, getOutTemperature, getStream, getThermoSystem, hashCode, isDoMultiPhaseCheck, isSetOutTemperature, isSetOutTemperature, mixStream, removeInputStream, replaceStream, setMultiPhaseCheck, setOutTemperature, toJson, toJson, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, getConditionAnalysisMessage, getController, getEnergyStream, getExergyChange, getMassBalance, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, initMechanicalDesign, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setRegulatorOutSignal, setSpecification, 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 MixerInterface
getOutStreamMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
displayResult, equals, getCapacityDuty, getCapacityMax, getConditionAnalysisMessage, getController, getEntropyProduction, getExergyChange, getExergyChange, getFluid, getMassBalance, getMassBalance, getMechanicalDesign, getPressure, getPressure, getReport_json, getRestCapacity, getResultTable, getSpecification, getTemperature, hashCode, initMechanicalDesign, needRecalculation, reportResults, runConditionAnalysis, setController, setRegulatorOutSignal, setSpecification, toJson, toJson, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface TrayInterface
addStream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
heatInput
double heatInput -
temperature
private double temperature -
trayPressure
private double trayPressure
-
-
Constructor Details
-
SimpleTray
-
-
Method Details
-
init
public void init()init.
-
setHeatInput
public void setHeatInput(double heatinp) setHeatInput.
- Specified by:
setHeatInputin interfaceTrayInterface- Parameters:
heatinp- a double
-
calcMixStreamEnthalpy0
public double calcMixStreamEnthalpy0()calcMixStreamEnthalpy0.
- Returns:
- a double
-
calcMixStreamEnthalpy
public double calcMixStreamEnthalpy()calcMixStreamEnthalpy.
- Overrides:
calcMixStreamEnthalpyin classMixer- Returns:
- a double
-
run2
public void run2()run2.
-
TPflash
public void TPflash()TPflash.
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Specified by:
runin interfaceSimulationInterface- Overrides:
runin classMixer- Parameters:
id- UUID
-
getGasOutStream
-
getLiquidOutStream
-
getTemperature
public double getTemperature()Getter for the field
temperature.- Specified by:
getTemperaturein interfaceProcessEquipmentInterface- Overrides:
getTemperaturein classProcessEquipmentBaseClass- Returns:
- a double
-
setPressure
public void setPressure(double pres) Setter for the field
pressure.- Specified by:
setPressurein interfaceProcessEquipmentInterface- Overrides:
setPressurein classMixer- Parameters:
pres- a double
-
setTemperature
public void setTemperature(double temperature) Setter for the field
temperature.- Specified by:
setTemperaturein interfaceProcessEquipmentInterface- Overrides:
setTemperaturein classMixer- Parameters:
temperature- Temperature in Kelvin
-
guessTemperature
public double guessTemperature()guessTemperature.
- Overrides:
guessTemperaturein classMixer- Returns:
- a double
-
getVaporFlowRate
-
getLiquidFlowRate
-
getFeedRate
-
massBalance
public double massBalance()massBalance.
Calculates the mass balance by comparing the total mass input and output.- Returns:
- the difference between mass input and mass output
-