Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / multiphase / cavitatingFoam / resetPhivPatches.H
blob7e8b040bb6e4f52e22745936d2775060cfa048be
1 surfaceScalarField::GeometricBoundaryField& phivPatches = phiv.boundaryField();
2 const volVectorField::GeometricBoundaryField& Upatches = U.boundaryField();
3 const surfaceVectorField::GeometricBoundaryField& SfPatches = mesh.Sf().boundaryField();
5 forAll(phivPatches, patchI)
7     if (phiv.boundaryField().types()[patchI] == "calculated")
8     {
9         calculatedFvsPatchScalarField& phivPatch =
10             refCast<calculatedFvsPatchScalarField>(phivPatches[patchI]);
12         phivPatch == (Upatches[patchI] & SfPatches[patchI]);
13     }