OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

resetPhivPatches.H

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