resetPhiPatches.H
Go to the documentation of this file.00001 surfaceScalarField::GeometricBoundaryField& phiPatches = phi.boundaryField();
00002 const volVectorField::GeometricBoundaryField& rhoUpatches = rhoU.boundaryField();
00003 const surfaceVectorField::GeometricBoundaryField& SfPatches = mesh.Sf().boundaryField();
00004
00005 forAll(phiPatches, patchI)
00006 {
00007 if (phi.boundaryField().types()[patchI] == "calculated")
00008 {
00009 calculatedFvsPatchScalarField& phiPatch =
00010 refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
00011
00012 phiPatch == (rhoUpatches[patchI] & SfPatches[patchI]);
00013 }
00014 }
Copyright © 2000-2009 OpenCFD Ltd