52 const GeometricField<Type, fvPatchField, volMesh>& vsf,
57 typedef GeometricField<GradType, fvPatchField, volMesh> GradFieldType;
59 const fvMesh&
mesh = vsf.mesh();
61 tmp<GradFieldType> tlsGrad
75 extrapolatedCalculatedFvPatchField<GradType>::typeName
78 GradFieldType& lsGrad = tlsGrad.ref();
91 const label ownFacei = own[facei];
92 const label neiFacei = nei[facei];
94 const Type deltaVsf(vsf[neiFacei] - vsf[ownFacei]);
96 lsGrad[ownFacei] += ownLs[facei]*deltaVsf;
97 lsGrad[neiFacei] -= neiLs[facei]*deltaVsf;
101 forAll(vsf.boundaryField(), patchi)
106 vsf.boundaryField()[patchi].patch().faceCells();
108 if (vsf.boundaryField()[patchi].coupled())
110 const Field<Type> neiVsf
112 vsf.boundaryField()[patchi].patchNeighbourField()
115 forAll(neiVsf, patchFacei)
117 lsGrad[faceCells[patchFacei]] +=
118 patchOwnLs[patchFacei]
119 *(neiVsf[patchFacei] - vsf[faceCells[patchFacei]]);
124 const fvPatchField<Type>& patchVsf = vsf.boundaryField()[patchi];
126 forAll(patchVsf, patchFacei)
128 lsGrad[faceCells[patchFacei]] +=
129 patchOwnLs[patchFacei]
130 *(patchVsf[patchFacei] - vsf[faceCells[patchFacei]]);
136 lsGrad.correctBoundaryConditions();