72 GradFieldType& gGrad = tgGrad.
ref();
83 const GradType Sfssf = Sf[facei]*issf[facei];
85 igGrad[owner[facei]] += Sfssf;
86 igGrad[neighbour[facei]] -= Sfssf;
92 mesh.boundary()[patchi].faceCells();
100 igGrad[pFaceCells[facei]] += pSf[facei]*pssf[facei];
106 gGrad.correctBoundaryConditions();
135 GradFieldType& gGrad = tgGrad.
ref();
153 auto& gGradbf = gGrad.boundaryFieldRef();
161 vsf.
mesh().Sf().boundaryField()[patchi]
162 / vsf.
mesh().magSf().boundaryField()[patchi]
165 gGradbf[patchi] +=
n *
168 - (
n & gGradbf[patchi])
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void correctBoundaryConditions()
Correct boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const fileName & instance() const noexcept
Read access to instance path component.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Basic second-order gradient scheme using face-interpolation and Gauss' theorem.
static tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > gradf(const GeometricField< Type, fvsPatchField, surfaceMesh > &, const word &name)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
type
Volume classification types.
A class for handling words, derived from Foam::string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
cellMask correctBoundaryConditions()
#define forAll(list, i)
Loop across all elements in list.