diff --git a/applications/solvers/incompressible/potentialFreeSurfaceFoam/resetPhiPatches.H b/applications/solvers/incompressible/potentialFreeSurfaceFoam/resetPhiPatches.H new file mode 100644 index 0000000000..fe428b6e3b --- /dev/null +++ b/applications/solvers/incompressible/potentialFreeSurfaceFoam/resetPhiPatches.H @@ -0,0 +1,8 @@ +FieldField& phibf = phi.boundaryField(); +const FieldField& Ubf = U.boundaryField(); +const FieldField& Sfbf = mesh.Sf().boundaryField(); + +forAll(phibf, patchI) +{ + phibf[patchI] = (Ubf[patchI] & Sfbf[patchI]); +}