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.