mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
fvcAverage and fvcReconstruct both do divisions or inverses of surface summed fields. A single-cell zero-dimension case, has no genuine faces on which to sum, so surface sums are identically zero. This change detects this situation and returns a zero value instead of failing due to a divide by zero. This allows the multiphase test cases to be reduced to just one cell.
The cases contained in this directory can be used for testing the populationBalanceModel class which is a part of the reactingEulerFoam framework. They represent single-cell setups, i.e. they solve the population balance equation without spatial transport. The setups already represent the inhomogeneous case, i.e. the populationBalance is split over multiple velocityGroups. This can help to identify whether the populationBalance-induced mass transfer terms are handled correctly. The cases can also be used to study the influence of certain parameters on the form of the size distribution, before running a simulation with spatial transport. Further test cases are contained in test/multiphase/reactingTwoPhaseEulerFoam/populationBalanceModeling