carbatpy.models.components.flow_devices ======================================= .. py:module:: carbatpy.models.components.flow_devices .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: carbatpy.models.components.flow_devices.FLUID Classes ------- .. autoapisummary:: carbatpy.models.components.flow_devices.MixFlowDevice Module Contents --------------- .. py:class:: MixFlowDevice(inputs, outputs, flow_rates_in, mix=[], name='flow-device', **calc_parameters) 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. :param inputs: the (2) fluids entering with the correct states. :type inputs: list of Fluids :param outputs: the (actually single) fluid state exiting. :type outputs: List of Fluids :param flow_rates_in: the mass flow rates in kg/s. :type flow_rates_in: list :param mix: In the first list the input states are numbered, in the second the output states example: [[0,1],[0]]. The default is []. :type mix: List of two lists, optional :param name: the name of the device. The default is "flow-device". :type name: string, optional :param \*\*calc_parameters: example {"calc_type": "HP", "H": "const", "p_out": 1e5}, at the moment only p_out values should be changed. :type \*\*calc_parameters: dictionary :rtype: None. .. py:attribute:: inputs .. py:attribute:: outputs .. py:attribute:: flow_rates_in .. py:attribute:: name :value: 'flow-device' .. py:data:: FLUID :value: 'Propane * Pentane'