2 const scalarField& V = mesh.V();
4 forAll(mesh.cellZones(), czi)
6 const labelList& cellLabels = mesh.cellZones()[czi];
8 forAllConstIter(PtrDictionary<phase>, mixture.phases(), iter)
10 const volScalarField& alpha = iter();
11 scalar phaseVolume = 0;
13 forAll(cellLabels, cli)
15 label celli = cellLabels[cli];
16 phaseVolume += alpha[celli]*V[celli];
19 reduce(phaseVolume, sumOp<scalar>());
22 << " phase volume in zone " << mesh.cellZones()[czi].name()
23 << " = " << phaseVolume*1e6 << " ml " << endl;