carbatpy.models.components.flow_devices
Started a class for flow devices, especially mixing chambers, but could also be used for heat exchangers or machines?
at the moment, the only device is for adiabtaic mixing, but also of fluid mixtures of different compounds and composition. ouputs as dictionary (state variables to be fixed?) inputs=list of states (Fluid) mix = list of 2 lists [[input 1(number), input 2 (number)], [output (number? or different?)]]
Created on Fri May 31 15:16:09 2024
@author: atakan
Attributes
Classes
Flow Device = mixing chamber |
Module Contents
- class carbatpy.models.components.flow_devices.MixFlowDevice(inputs, outputs, flow_rates_in, mix=[], name='flow-device', **calc_parameters)[source]
Flow Device = mixing chamber
At the moment the species, the mass balance, and the energy balance for an adiabatic chanber with given output pressure is calculated. Two fluids entering, at the moment only one is exiting.
- Parameters:
inputs (list of Fluids) – the (2) fluids entering with the correct states.
outputs (List of Fluids) – the (actually single) fluid state exiting.
flow_rates_in (list) – the mass flow rates in kg/s.
mix (List of two lists, optional) – In the first list the input states are numbered, in the second the output states example: [[0,1],[0]]. The default is [].
name (string, optional) – the name of the device. The default is “flow-device”.
**calc_parameters (dictionary) – example {“calc_type”: “HP”, “H”: “const”, “p_out”: 1e5}, at the moment only p_out values should be changed.
- Return type:
None.