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")
10 calculatedFvsPatchScalarField& phiPatch =
11 refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
13 phiPatch == ((rhoPatches[patchI]*Upatches[patchI]) & SfPatches[patchI]);