Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / interFoam / MRFInterFoam / zonePhaseVolumes.H
blobe0355fe4b14c30c6fbf146f65f1fa36648359bee
2     const scalarField& V = mesh.V();
4     forAll(mesh.cellZones(), czi)
5     {
6         const labelList& cellLabels = mesh.cellZones()[czi];
8         scalar phaseVolume = 0;
10         forAll(cellLabels, cli)
11         {
12             label celli = cellLabels[cli];
13             phaseVolume += alpha1[celli]*V[celli];
14         }
16         reduce(phaseVolume, sumOp<scalar>());
18         Info<< "Phase volume in zone " << mesh.cellZones()[czi].name()
19             << " = " << phaseVolume*1e6 << " ml " << endl;
20     }