equipment.Heat_Exchanger module

class equipment.Heat_Exchanger(**kwargs)[source]

Bases: equipment

Define a simple heat exchanger, only make energy balance

Parameters:

entrada: Corriente instance to define input stream Heat: global heat value exchanged Tout: Output temperature DeltaT: Increase temperature in stream A: area for heat exchange U: Global coefficient of heat transmision Text: Ambient external temperature DeltaP: Opcional pressure losses of equipment

>>> from lib.corriente import Corriente
>>> agua = Corriente(T=300, P=101325., caudalMasico=1., fraccionMolar=[1.])
>>> Cambiador = Heat_Exchanger(entrada=agua, Tout=350)
>>> print("%6g" % Cambiador.HeatCalc.MJh)
753.063
Attributes:
isCalculable

modo: unknown variable to calculate

Methods

calculo()

Procedure to calcute equipment, defined in child class

cleanOldValues(**kwargs)

Clean kwargs values for old heat exchanger definition

propTxt()

txt equivalent to output properties of equipment

propertiesEquipment()

procedure to define output values in a list with format: (Name, kwargs name, units), if kwargs name if a combobox element the index isn't useful so use a tuple (Txt_Values kwargs_name)

readStatefromJSON(state)

Load instance parameter from saved file

writeStatetoJSON(state)

Write instance parameter to file

title = 'Heat Exchanger'
help = ''
kwargs = {'A': 0.0, 'DeltaP': 0.0, 'DeltaT': 0.0, 'Heat': 0.0, 'Text': 0.0, 'Tout': 0.0, 'U': 0.0, 'entrada': None}
kwargsInput = ('entrada',)
kwargsValue = ('Heat', 'Tout', 'DeltaT', 'A', 'U', 'Text', 'DeltaP')
calculateValue = ('HeatCalc', 'ToutCalc')
cleanOldValues(**kwargs)[source]

Clean kwargs values for old heat exchanger definition

property isCalculable
modo: unknown variable to calculate

1 - Known output temperature, calculate other variables 2 - known heat exchange 3 - known heat exchanger characteristic, calculate output stream

calculo()[source]

Procedure to calcute equipment, defined in child class

propTxt()[source]

txt equivalent to output properties of equipment

classmethod propertiesEquipment()[source]

procedure to define output values in a list with format: (Name, kwargs name, units), if kwargs name if a combobox element the index isn’t useful so use a tuple (Txt_Values kwargs_name)

writeStatetoJSON(state)[source]

Write instance parameter to file

readStatefromJSON(state)[source]

Load instance parameter from saved file