CADETProcess.processModel.FlowSheet.get_flow_rates

CADETProcess.processModel.FlowSheet.get_flow_rates#

FlowSheet.get_flow_rates(state=None)[source]#

Calculate the volumetric flow rate for all connections in the process.

Parameters:
stateDict, optional

Updated flow rates and output states for process sections. Default is None.

Returns:
Dict

Volumetric flow rate for each unit operation.

Raises:
CADETProcessError

If flow sheet connectivity matrix is singular, indicating a potential issue in flow sheet configuration.

Notes

To calculate the flow rates, a system of equations is set up:

\[Q_i = \sum_{j=1}^{n_{units}} q_{ji} = \sum_{j=1}^{n_{units}} Q_j * w_{ji},\]

where \(Q_i\) is the total flow exiting unit \(i\), and \(w_{ij}\) is the percentile of the total flow of unit \(j\) directed to unit \(i\). If the unit is an Inlet or a Cstr with a given flow rate, \(Q_i\) is given and the system is simplified. This system is solved using numpy.linalg.solve. Then, the individual flows \(q_{ji}\) are extracted.

References

Forum discussion on flow rate calculation: https://forum.cadet-web.de/t/improving-the-flowrate-calculation/795