ENH: Time: access to libs
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / cavitatingFoam / resetPhivPatches.H
blob2f62dcfc37ed774cdac25da5f7ec12148e16f5a9
1 surfaceScalarField::GeometricBoundaryField& phivPatches =
2     phiv.boundaryField();
4 const volVectorField::GeometricBoundaryField& Upatches =
5     U.boundaryField();
7 const surfaceVectorField::GeometricBoundaryField& SfPatches =
8     mesh.Sf().boundaryField();
10 forAll(phivPatches, patchI)
12     if (phiv.boundaryField().types()[patchI] == "calculated")
13     {
14         calculatedFvsPatchScalarField& phivPatch =
15             refCast<calculatedFvsPatchScalarField>(phivPatches[patchI]);
17         phivPatch == (Upatches[patchI] & SfPatches[patchI]);
18     }