FreeFOAM The Cross-Platform CFD Toolkit
resetPhivPatches.H
Go to the documentation of this file.
1 surfaceScalarField::GeometricBoundaryField& phivPatches = phiv.boundaryField();
2 const volVectorField::GeometricBoundaryField& Upatches = U.boundaryField();
3 const surfaceVectorField::GeometricBoundaryField& SfPatches = mesh.Sf().boundaryField();
4 
6 {
7  if (phiv.boundaryField().types()[patchI] == "calculated")
8  {
9  calculatedFvsPatchScalarField& phivPatch =
10  refCast<calculatedFvsPatchScalarField>(phivPatches[patchI]);
11 
12  phivPatch == (Upatches[patchI] & SfPatches[patchI]);
13  }
14 }