Go to the documentation of this file.
55 const GeometricField<Type, faPatchField, areaMesh>& vsf
60 tmp<GeometricField<GradType, faPatchField, areaMesh>> tgGrad
65 *tinterpScheme_().interpolate(vsf)
69 GeometricField<GradType, faPatchField, areaMesh>& gGrad = tgGrad.ref();
71 gGrad.correctBoundaryConditions();
73 gGrad.rename(
"grad(" + vsf.name() +
')');
100 gGrad.boundaryFieldRef()[patchI] += m*
103 - (m & gGrad.boundaryField()[patchI])
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > grad(const GeometricField< Type, faPatchField, areaMesh > &) const
Return the gradient of the given field calculated.
#define forAll(list, i)
Loop across all elements in list.
cellMask correctBoundaryConditions()
Mesh data needed to do the Finite Area discretisation.
tmp< GeometricField< Type, faPatchField, areaMesh > > edgeIntegrate(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
static void correctBoundaryConditions(const GeometricField< Type, faPatchField, areaMesh > &, GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > &)
Correct the boundary values of the gradient using the patchField.
Calculate the gradient of the given field.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.