There are multiple branches with parts of the functionality that we want, i.e. sole aggregation, sole breakage, sole PBM and all of them combined. However, the code is not modular.
The respective branches are on @WFlynnZ fork of CADET.
We need to figure out a neat modularization and then incorporate the code from the aforementioned branches, which we will do on this branch here.
Things to consider when modularize the current code @jbreue16 :
Aggregation, Breakage and PBM (Population Balance with Mass Balance) should be able to be solved independently, and combined with two or three together.
Because Aggregation and Breakage are mass-conserving, the mass balance equation (and also PBM) is not needed when solving them independently.
When solving the PBM, two additional components are added: solute concentration is the first component and the solubility is the last component. These two components are absent in the Aggregation and Breakage code. When changing code, need to make sure the residual and Jacobian are also adapted.
Possible combinations are:
Aggregation
Breakage
PBM
Aggregation, Breakage
Aggregation, PBM
Breakage, PBM
Aggregation, Breakage, PBM
Only 1, 2, and 4 don't have the two additional components.
There are multiple branches with parts of the functionality that we want, i.e. sole aggregation, sole breakage, sole PBM and all of them combined. However, the code is not modular. The respective branches are on @WFlynnZ fork of CADET. We need to figure out a neat modularization and then incorporate the code from the aforementioned branches, which we will do on this branch here.
Before we start:
Smolouchowski Coagulation Equation:
Fragmentation Equation: