BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / multiphaseInterFoam / MRFMultiphaseInterFoam / zonePhaseVolumes.H
blob0c5d12217b5a4df9420a27bd341057f17dc9c48f
2     const scalarField& V = mesh.V();
4     forAll(mesh.cellZones(), czi)
5     {
6         const labelList& cellLabels = mesh.cellZones()[czi];
8         forAllConstIter(PtrDictionary<phase>, mixture.phases(), iter)
9         {
10             const volScalarField& alpha = iter();
11             scalar phaseVolume = 0;
13             forAll(cellLabels, cli)
14             {
15                 label celli = cellLabels[cli];
16                 phaseVolume += alpha[celli]*V[celli];
17             }
19             reduce(phaseVolume, sumOp<scalar>());
21             Info<< alpha.name()
22                 << " phase volume in zone " << mesh.cellZones()[czi].name()
23                 << " = " << phaseVolume*1e6 << " ml " << endl;
24         }
25     }