Class NeqSimUnit
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.TwoPortEquipment
neqsim.process.equipment.util.NeqSimUnit
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
NeqSimUnit class.
- Version:
- $Id: $Id
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String(package private) Stringprivate doubledoubleprivate doubleintprivate 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
ConstructorsConstructorDescriptionNeqSimUnit(StreamInterface inletStream, String equipment, String flowPattern) Constructor for NeqSimUnit. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldequipment.doublegetID()getID.doubleGetter for the fieldinterfacialArea.doubleGetter for the fieldlength.intGetter for the fieldnumberOfNodes.doubleGetter for the fieldouterTemperature.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrunAnnular.voidrunDroplet.voidrunStratified.voidsetEquipment(String equipment) Setter for the fieldequipment.voidsetID(double iD) setID.voidsetInletStream(StreamInterface inletStream) Set inlet Stream of twoport.voidsetLength(double length) Setter for the fieldlength.voidsetNumberOfNodes(int numberOfNodes) Setter for the fieldnumberOfNodes.voidsetOuterTemperature(double outerTemperature) Setter for the fieldouterTemperature.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, getRestCapacity, needRecalculationMethods 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
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
thermoSystem
SystemInterface thermoSystem -
equipment
-
flowPattern
String flowPattern -
length
private double length -
numberOfNodes
public int numberOfNodes -
ID
private double ID -
outerTemperature
private double outerTemperature -
interfacialArea
public double interfacialArea
-
-
Constructor Details
-
NeqSimUnit
-
-
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
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
runDroplet
public void runDroplet()runDroplet.
-
runStratified
public void runStratified()runStratified.
-
runAnnular
public void runAnnular()runAnnular.
-
getLength
public double getLength()Getter for the field
length.- Returns:
- a double
-
setLength
public void setLength(double length) Setter for the field
length.- Parameters:
length- a double
-
getID
public double getID()getID.
- Returns:
- a double
-
setID
public void setID(double iD) setID.
- Parameters:
iD- a double
-
getOuterTemperature
public double getOuterTemperature()Getter for the field
outerTemperature.- Returns:
- a double
-
setOuterTemperature
public void setOuterTemperature(double outerTemperature) Setter for the field
outerTemperature.- Parameters:
outerTemperature- a double
-
getEquipment
-
setEquipment
-
getInterfacialArea
public double getInterfacialArea()Getter for the field
interfacialArea.- Returns:
- a double
-
getNumberOfNodes
public int getNumberOfNodes()Getter for the field
numberOfNodes.- Returns:
- a int
-
setNumberOfNodes
public void setNumberOfNodes(int numberOfNodes) Setter for the field
numberOfNodes.- Parameters:
numberOfNodes- a int
-