68 gGrad -=
n*(
n & gGrad);
102 GradFieldType& gGrad = tgGrad.
ref();
104 gGrad.correctBoundaryConditions();
129 vsf.
mesh().Le().boundaryField()[patchI]/
130 vsf.
mesh().magLe().boundaryField()[patchI]
133 gGrad.boundaryFieldRef()[patchI] += m*
136 - (m & gGrad.boundaryField()[patchI])
const Mesh & mesh() const noexcept
Return const reference to mesh.
Generic GeometricField class.
void correctBoundaryConditions()
Correct boundary field.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
Mesh data needed to do the Finite Area discretisation.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
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.
static tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > gradf(const GeometricField< Type, faePatchField, edgeMesh > &, const word &name)
Return the gradient of the given field calculated using Gauss' theorem on the given surface field.
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > calcGrad(const GeometricField< Type, faPatchField, areaMesh > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad for optional caching.
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
A class for handling words, derived from Foam::string.
Calculate the gradient of the given field.
Namespace for finite-area.
tmp< GeometricField< Type, faPatchField, areaMesh > > edgeIntegrate(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
GeometricField< vector, faPatchField, areaMesh > areaVectorField
Field< vector > vectorField
Specialisation of Field<T> for vector.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
cellMask correctBoundaryConditions()
#define forAll(list, i)
Loop across all elements in list.