1 surfaceScalarField::GeometricBoundaryField& phiPatches = phi.boundaryField();
2 const volVectorField::GeometricBoundaryField& rhoUpatches = rhoU.boundaryField();
3 const surfaceVectorField::GeometricBoundaryField& SfPatches = mesh.Sf().boundaryField();
5 forAll(phiPatches, patchI)
7 if (phi.boundaryField().types()[patchI] == "calculated")
9 calculatedFvsPatchScalarField& phiPatch =
10 refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
12 phiPatch == (rhoUpatches[patchI] & SfPatches[patchI]);