Class Heater
- All Implemented Interfaces:
Serializable, Runnable, HeaterInterface, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
- Direct Known Subclasses:
Cooler, HeatExchanger, MultiStreamHeatExchanger, MultiStreamHeatExchanger2, NeqHeater, SteamHeater
Heater class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) doubleprotected doubleprivate doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected HeatExchangerMechanicalDesignprivate doubleprotected doubleprivate Stringprivate static final longSerialization version UID.private boolean(package private) boolean(package private) boolean(package private) SystemInterfaceprotected doubleprivate Stringprivate UtilityStreamSpecificationFields 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
ConstructorsConstructorDescriptionConstructor for Heater.Heater(String name, StreamInterface inStream) Constructor for Heater. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResult.doublegetCapacityDuty.doublegetCapacityMax.doublegetDuty()getDuty.doublegetDuty.doubleGetter for the fieldenergyInput.doublegetEntropyProduction(String unit) getEntropyProduction.doublegetExergyChange(String unit, double surroundingTemperature) Get exergy change production of the process equipment.Get amechanicalDesignfor the equipment.doubleGetter for the fieldpressureDrop.Returns the utility-side specification used by the mechanical design calculation.voidInitialize ainitMechanicalDesignfor the equipment.booleanisSetEnergyInput.booleanCheck if process equipment needs recalculating.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrunTransient(double dt, UUID id) runTransientvoidsetdT(double dT) setdT.voidsetDuty(double energyInput) setDuty.voidsetEnergyInput(double energyInput) Setter for the fieldenergyInput.voidsetOutPressure(double pressure) setOutPressure.voidsetOutPressure(double pressure, String unit) Set the outlet pressure of the heater in a specified unit.voidsetOutStream(StreamInterface outStream) Deprecated.voidsetOutTemperature(double temperature) Set the outlet temperature of the heater.voidsetOutTemperature(double temperature, String unit) Set the outlet temperature of the heater in a specified unit.voidsetOutTP(double temperature, double pressure) Set the outlet temperature and pressure of the heater.voidsetPressureDrop(double pressureDrop) Setter for the fieldpressureDrop.voidsetSetEnergyInput(boolean setEnergyInput) Setter for the fieldsetEnergyInput.voidsetUtilityApproachTemperature(double approach, String unit) Convenience method to set the minimum approach temperature between process and utility.voidsetUtilityHeatCapacityRate(double heatCapacityRate) Convenience method to set the assumed utility-side heat capacity rate.voidsetUtilityOverallHeatTransferCoefficient(double u) Convenience method to set the assumed overall heat-transfer coefficient for sizing.voidsetUtilityReturnTemperature(double temperature, String unit) Convenience method to set the utility return temperature.voidsetUtilitySpecification(UtilityStreamSpecification specification) Replace the current utility-side specification.voidsetUtilitySupplyTemperature(double temperature, String unit) Convenience method to set the utility supply temperature.toJson()Serializes the Process Equipment along with its state to a JSON string.toJson(ReportConfig cfg) Serializes the Process Equipment with configurable level of detail.Methods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletStream, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, equals, getConditionAnalysisMessage, getController, getEnergyStream, getMassBalance, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, 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
getExergyChange, getFluid, getRestCapacityMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, run_step, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface TwoPortInterface
getInStream, getOutStream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
setTemperature
boolean setTemperature -
setOutPressure
boolean setOutPressure -
system
SystemInterface system -
temperatureOut
protected double temperatureOut -
dT
protected double dT -
pressureOut
protected double pressureOut -
setEnergyInput
private boolean setEnergyInput -
energyInput
private double energyInput -
pressureDrop
private double pressureDrop -
temperatureUnit
-
pressureUnit
-
coolingMediumTemperature
double coolingMediumTemperature -
lastTemperature
protected double lastTemperature -
lastPressure
protected double lastPressure -
lastFlowRate
protected double lastFlowRate -
lastOutPressure
protected double lastOutPressure -
lastOutTemperature
protected double lastOutTemperature -
lastDuty
protected double lastDuty -
lastPressureDrop
protected double lastPressureDrop -
mechanicalDesign
-
utilitySpecification
-
-
Constructor Details
-
Heater
-
Heater
Constructor for Heater.
- Parameters:
name- aStringobjectinStream- aStreamInterfaceobject
-
-
Method Details
-
getMechanicalDesign
Get a
mechanicalDesignfor the equipment.- Specified by:
getMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
getMechanicalDesignin classProcessEquipmentBaseClass- Returns:
- a
MechanicalDesignobject
-
initMechanicalDesign
public void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment.- Specified by:
initMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
initMechanicalDesignin classProcessEquipmentBaseClass
-
getCapacityDuty
public double getCapacityDuty()getCapacityDuty.
- Specified by:
getCapacityDutyin interfaceProcessEquipmentInterface- Returns:
- a double
-
getCapacityMax
public double getCapacityMax()getCapacityMax.
- Specified by:
getCapacityMaxin interfaceProcessEquipmentInterface- Returns:
- a double
-
getUtilitySpecification
Returns the utility-side specification used by the mechanical design calculation.- Returns:
- the utility specification instance for this heater/cooler
-
setUtilitySpecification
Replace the current utility-side specification.- Parameters:
specification- new utility specification instance
-
setUtilitySupplyTemperature
Convenience method to set the utility supply temperature.- Parameters:
temperature- utility temperature valueunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityReturnTemperature
Convenience method to set the utility return temperature.- Parameters:
temperature- utility temperature valueunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityApproachTemperature
Convenience method to set the minimum approach temperature between process and utility.- Parameters:
approach- minimum temperature differenceunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityHeatCapacityRate
public void setUtilityHeatCapacityRate(double heatCapacityRate) Convenience method to set the assumed utility-side heat capacity rate.- Parameters:
heatCapacityRate- utility heat capacity rate in W/K
-
setUtilityOverallHeatTransferCoefficient
public void setUtilityOverallHeatTransferCoefficient(double u) Convenience method to set the assumed overall heat-transfer coefficient for sizing.- Parameters:
u- overall heat-transfer coefficient in W/(m^2*K)
-
setdT
public void setdT(double dT) setdT.
- Specified by:
setdTin interfaceHeaterInterface- Parameters:
dT- a double
-
setOutPressure
public void setOutPressure(double pressure) setOutPressure.
- Parameters:
pressure- Pressure in bara
-
setOutPressure
Set the outlet pressure of the heater in a specified unit.
- Specified by:
setOutPressurein interfaceHeaterInterface- Parameters:
pressure- Outlet pressure.unit- aStringobject
-
setOutTemperature
public void setOutTemperature(double temperature) Set the outlet temperature of the heater.
- Parameters:
temperature- Temperature in Kelvin
-
setOutTemperature
Set the outlet temperature of the heater in a specified unit.
- Specified by:
setOutTemperaturein interfaceHeaterInterface- Parameters:
temperature- Outlet temperature.unit- aStringobject
-
setOutTP
public void setOutTP(double temperature, double pressure) Set the outlet temperature and pressure of the heater.
- Specified by:
setOutTPin interfaceHeaterInterface- Parameters:
temperature- Temperature in Kelvinpressure- Pressure in bara
-
needRecalculation
public boolean needRecalculation()Check if process equipment needs recalculating.
- Specified by:
needRecalculationin interfaceProcessEquipmentInterface- Returns:
- true or false
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Specified by:
runin interfaceSimulationInterface- Parameters:
id- UUID
-
runTransient
runTransient
This method calculates thermodynamic and unit operations using difference equations if available and calculateSteadyState is true. Use setCalculateSteadyState to set the parameter. Sets calc identifier UUID.- Specified by:
runTransientin interfaceSimulationInterface- Parameters:
dt- Delta time [s]id- Calculation identifier
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface- Overrides:
displayResultin classProcessEquipmentBaseClass
-
getEnergyInput
public double getEnergyInput()Getter for the field
energyInput.- Returns:
- a double
-
getDuty
public double getDuty()getDuty.
- Returns:
- a double
-
getDuty
-
setEnergyInput
public void setEnergyInput(double energyInput) Setter for the field
energyInput.- Parameters:
energyInput- a double
-
setDuty
public void setDuty(double energyInput) setDuty.
- Parameters:
energyInput- a double
-
isSetEnergyInput
public boolean isSetEnergyInput()isSetEnergyInput.
- Returns:
- a boolean
-
setSetEnergyInput
public void setSetEnergyInput(boolean setEnergyInput) Setter for the field
setEnergyInput.- Parameters:
setEnergyInput- a boolean
-
getPressureDrop
public double getPressureDrop()Getter for the field
pressureDrop.- Returns:
- the pressureDrop
-
setPressureDrop
public void setPressureDrop(double pressureDrop) Setter for the field
pressureDrop.- Parameters:
pressureDrop- the pressureDrop to set
-
setOutStream
Deprecated.Setter for the field
outStream.- Parameters:
outStream- the outStream to set
-
getEntropyProduction
getEntropyProduction.
- Specified by:
getEntropyProductionin interfaceProcessEquipmentInterface- Overrides:
getEntropyProductionin classProcessEquipmentBaseClass- Parameters:
unit- aStringobject- Returns:
- a double
-
getExergyChange
Get exergy change production of the process equipment.- Specified by:
getExergyChangein interfaceProcessEquipmentInterface- Overrides:
getExergyChangein classProcessEquipmentBaseClass- Parameters:
unit- Supported units are J and kJsurroundingTemperature- The surrounding temperature in Kelvin- Returns:
- change in exergy in specified unit
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classTwoPortEquipment- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classTwoPortEquipment- Parameters:
cfg- report configuration- Returns:
- json string
-