equipment.GravityChamber module¶
- class equipment.GravityChamber(**kwargs)[source]¶
Bases:
Separador_SolidGasClass to define a gravity chamber for separation of solid from gaseous stream
- Parameters:
entrada: Corriente instance to define the input stream to equipment metodo: Integer to define the calculate type
0 - Rating of a equipment with known geometry and input stream 1 - Design of a equipment to meet a required efficiency
- modelo: Integer to define the method to calculate
0 - Plug Flow model without vertical mixing 1 - Perfect mix
W, H, L: dimensión of equipment (width, height, length) rendimientoAdmisible: Required efficiency of equipment, mandatory if
chosen method of calculate is design
velocidadAdmisible: Maximum speed of gas in chamber, default 1 m/s deltaP: Pressure loss
>>> from lib.corriente import Corriente >>> from lib.solids import Solid >>> dm = [17.5e-6, 22.4e-6, 26.2e-6, 31.8e-6, 37e-6, 42.4e-6, 48e-6, 54e-6, 60e-6, 69e-6, 81.3e-6, 96.5e-6, 109e-6, 127e-6] >>> fracciones = [0.02, 0.03, 0.05, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.05, 0.03, 0.02] >>> solido = Solid(caudalSolido=[0.1], distribucion_diametro=dm, distribucion_fraccion=fracciones, solids=[638]) >>> kw = {"ids": [475], "fraccionMolar": [1.], "MEoS": True} >>> entrada = Corriente(T=300, P=1e5, caudalMasico=1, solido=solido, **kw) >>> camara = GravityChamber(entrada=entrada, modelo=0, H=1, W=1, L=1) >>> print("%0.4f %0.4f" % (camara.Vgas, camara.rendimiento)) 0.8611 0.3439
- Attributes:
isCalculableEach child class must define if its calculable for input kwargs
Methods
Calculate the efficiency of separation process for each diameter of solid fraction
calculo()Procedure to calcute equipment, defined in child class
propTxt()i: index of common properties in equipment subclas list
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 = 'Gravity settling chamber'¶
- kwargs = {'H': 0.0, 'L': 0.0, 'W': 0.0, 'deltaP': 0.0, 'entrada': None, 'metodo': 0, 'modelo': 0, 'rendimientoAdmisible': 0.0, 'velocidadAdmisible': 0.0}¶
- kwargsInput = ('entrada',)¶
- kwargsValue = ('W', 'H', 'L', 'rendimientoAdmisible', 'velocidadAdmisible', 'deltaP')¶
- kwargsList = ('metodo', 'modelo')¶
- calculateValue = ('Q', 'LCalc', 'WCalc', 'HCalc', 'Vgas', 'rendimiento')¶
- TEXT_TIPO = ['Rating', 'Design']¶
- TEXT_MODEL = ['Plug flow without vertical mix', 'Vertical mix']¶
- property isCalculable¶
Each child class must define if its calculable for input kwargs
- calcularRendimientos_parciales(L)[source]¶
Calculate the efficiency of separation process for each diameter of solid fraction