initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / compressible / rhopSonicFoam / resetPhiPatches.H
blobc8541406f35a14dfa8f3c2c9e145c6cc2f0ccfe1
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")
8     {
9         calculatedFvsPatchScalarField& phiPatch =
10             refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
12         phiPatch == (rhoUpatches[patchI] & SfPatches[patchI]);
13     }