equipment.Flash module¶
- class equipment.Flash(**kwargs)[source]¶
Bases:
equipmentClass to model a flash separation equipment
- Parameters:
entrada: Corriente instance to define the input stream to equipment flash: Calculate method
0 - Use temperature and pressure of input stream
- Cost:
- orientacion:
0 - Horizontal 1 - Vertical
- material:
0 - Carbon steel 1 - Stainless steel 304 2 - Stainless steel 316 3 - Carpenter 20CB-3 4 - Nickel 200 5 - Monel 400 6 - Inconel 600 7 - Incoloy 825 8 - Titanium
densidad: Material density diametro: Equipment diameter longitud: Height of equipment espesor: Width of cover cabeza: type of cover
0 - Ellipsoidal 1 - Hemispherical 2 - Bumped 3 - Flat
espesor_cabeza: Width of head of cover reborde: longitud reborde
>>> kw = {"MEoS": True, "coolProp": True, "ids": [5, 6, 7, 8, 10]} >>> entrada = Corriente(T=300, x=0.5, caudalMasico=0.01, fraccionMolar=[.3, 0.25, 0.15, 0.05, 0.25], **kw) >>> flash = Flash(entrada=entrada)
- Attributes:
isCalculableEach child class must define if its calculable for input kwargs
Methods
calculo()Procedure to calcute equipment, defined in child class
propTxt()txt equivalent to output properties of equipment
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)
propertiesListTitle(index)Define los titulos para los popup de listas
readStatefromJSON(state)Load instance parameter from saved file
writeStatetoJSON(state)Write instance parameter to file
coste
peso
volumen
- title = 'Flash Separator'¶
- help = ''¶
- kwargs = {'Base_index': 0.0, 'Current_index': 0.0, 'cabeza': 0, 'densidad': 0.0, 'diametro': 0.0, 'entrada': None, 'espesor': 0.0, 'espesor_cabeza': 0.0, 'f_install': 1.7, 'flash': 0, 'longitud': 0.0, 'material': 0, 'orientacion': 0, 'reborde': 0.0}¶
- kwargsInput = ('entrada',)¶
- kwargsList = ('flash', 'orientacion', 'material', 'cabeza')¶
- kwargsValue = ('diametro', 'longitud', 'espesor', 'espesor_cabeza', 'reborde')¶
- calculateCostos = ('C_adq', 'C_inst', 'Peso', 'Volumen')¶
- indiceCostos = 3¶
- TEXT_FLASH = ['Use P and T from input stream']¶
- TEXT_ORIENTATION = ['Horizontal', 'Vertical']¶
- TEXT_MATERIAL = ['Carbon steel', 'Stainless steel 304', 'Stainless steel 316', 'Carpenter 20CB-3', 'Nickel 200', 'Monel 400', 'Inconel 600', 'Incoloy 825', 'Titanium']¶
- TEXT_HEAD = ['Ellipsoidal', 'Hemispherical', 'Bumped', 'Flat']¶
- property isCalculable¶
Each child class must define if its calculable for input kwargs