equipment.Mixer module¶
- class equipment.Mixer(**kwargs)[source]¶
Bases:
equipmentClass to define a simple stream mixer, only apply a mass balance and specified the output pressure
- Parameters
n_entradas: Input number entrada: Corriente instance to define a input stream to equipment,
if use a list of them, it fix all the input stream
id_entrada: id of defined input criterio: mode of define output pressure
0 - Minimum pressure of input streams 1 - Mean pressure of input streams 2 - Specified pressure, must be input in Pout parameter
Pout: Output pressure
>>> agua=Corriente(T=300, P=101325, caudalMasico=1, ids=[62], fraccionMasica=[1.]) >>> agua2=Corriente(T=350, P=101325, caudalMasico=5, ids=[62], fraccionMasica=[1.]) >>> mezclador=Mixer(entrada=[agua, agua2], criterio=0) >>> print(mezclador.salida[0].T) 341.6818851215901
- Attributes:
isCalculableCheck equipment input parameter
Methods
calculo()Calculate procedure, only a mass balance
cleanOldValues(**kwargs)Clean incompatible kwargs parameters New defined entrada delete old entrada Entrada as list not need the id_entrada
propTxt()Text format for report
Properties availables to show in report
readStatefromJSON(state)Load instance parameter from saved file
writeStatetoJSON(state)Write instance parameter to file
- title = 'Mixer'¶
- help = ''¶
- kwargs = {'Pout': 0.0, 'criterio': 0, 'entrada': [], 'id_entrada': 0}¶
- kwargs_forbidden = ['entrada', 'id_entrada']¶
- kwargsValue = ('Pout',)¶
- kwargsList = ('criterio',)¶
- TEXT_METODO = ['Inputs minimum pressure', 'Inputs mean pressure', 'Custom']¶
- property isCalculable¶
Check equipment input parameter
- Mandatory parameter:
entrada Pout if criterio is setted to 2
- Incompatibilities:
All corriente instance in entrada must be defined fine salidas must be equal to len of split
- Warnings:
Some input stream have a warning status definitions