72 "grad(" + vsf.
name() +
')',
96 label ownEdgeI = own[edgei];
97 label neiEdgeI = nei[edgei];
99 Type deltaVsf = vsf[neiEdgeI] - vsf[ownEdgeI];
101 lsGrad[ownEdgeI] += ownLs[edgei]*deltaVsf;
102 lsGrad[neiEdgeI] -= neiLs[edgei]*deltaVsf;
120 forAll(neiVsf, patchEdgeI)
122 lsGrad[edgeFaces[patchEdgeI]] +=
123 patchOwnLs[patchEdgeI]
124 *(neiVsf[patchEdgeI] - vsf[edgeFaces[patchEdgeI]]);
131 forAll(patchVsf, patchEdgeI)
133 lsGrad[edgeFaces[patchEdgeI]] +=
134 patchOwnLs[patchEdgeI]
135 *(patchVsf[patchEdgeI] - vsf[edgeFaces[patchEdgeI]]);
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Generic templated field type.
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 word & name() const noexcept
Return the object name.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const fileName & instance() const noexcept
Read access to instance path component.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Generic dimensioned Type class.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
Computes the gradient of an input field.
Least-squares gradient scheme vectors for the Finite Area method.
const edgeVectorField & pVectors() const
Return reference to owner least square vectors.
const edgeVectorField & nVectors() const
Return reference to neighbour least square vectors.
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
A class for managing temporary objects.
type
Volume classification types.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
#define forAll(list, i)
Loop across all elements in list.