BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / cavitatingFoam / resetPhiPatches.H
blobe7d0c2f93eafbb50cbadbef8f56300b0e73db919
1 fvsPatchScalarFieldField& phiPatches = phi.boundaryField();
2 const fvPatchScalarFieldField& rhoPatches = rho.boundaryField();
3 const fvPatchVectorFieldField& Upatches = U.boundaryField();
4 const fvsPatchVectorFieldField& SfPatches = mesh.Sf().boundaryField();
6 forAll(phiPatches, patchI)
8     if (phi.boundaryField().types()[patchI] == "calculated")
9     {
10         calculatedFvsPatchScalarField& phiPatch =
11             refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
13         phiPatch == ((rhoPatches[patchI]*Upatches[patchI]) & SfPatches[patchI]);
14     }