72 "leastSquaresGrad(" + vsf.
name() +
")"
74 const GradFieldType& secondfGrad =
92 GradFieldType& fGrad = tfGrad.
ref();
112 Type dDotGradDelta = 0.5*
114 (
C[nei[facei]] -
C[own[facei]])
115 & (secondfGrad[nei[facei]] - secondfGrad[own[facei]])
118 fGrad[own[facei]] -=
lambda[facei]*ownLs[facei]*dDotGradDelta;
119 fGrad[nei[facei]] -= (1.0 -
lambda[facei])*neiLs[facei]*dDotGradDelta;
125 if (secondfGrad.boundaryField()[patchi].coupled())
141 secondfGrad.boundaryField()[patchi].patchNeighbourField()
147 0.5*lambdap[patchFacei]*patchOwnLs[patchFacei]
151 neighbourSecondfGrad[patchFacei]
159 fGrad.correctBoundaryConditions();
Graphite solid properties.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const fileName & instance() const noexcept
Read access to instance path component.
Smooth ATC in cells next to a set of patches supplied by type.
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...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Second-order gradient scheme using least-squares.
Basic second-order gradient scheme using face-interpolation and Gauss' theorem.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvPatchField, volMesh > &, const word &name) const
Second-order gradient scheme using least-squares.
Least-squares gradient scheme vectors.
const surfaceVectorField & pVectors() const
Return const reference to owner least square vectors.
const surfaceVectorField & nVectors() const
Return const reference to neighbour least square vectors.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
#define forAll(list, i)
Loop across all elements in list.