38template<
class Type,
class Stencil>
82 GradFieldType& lsGrad = tlsGrad.
ref();
96 flatVtf[celli] = vtf[celli];
106 -
mesh.nInternalFaces()
111 flatVtf[nCompact++] = ptf[i];
120 forAll(stencilAddr, celli)
122 const labelList& compactCells = stencilAddr[celli];
127 lsGradIf[celli] += lsvc[i]*flatVtf[compactCells[i]];
132 lsGrad.correctBoundaryConditions();
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.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const fileName & instance() const noexcept
Read access to instance path component.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Generic dimensioned Type class.
const mapDistribute & map() const
Return reference to the parallel distribution map.
const labelListList & stencil() const
Return reference to the stencil.
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...
const fvPatch & patch() const
Return patch.
virtual label start() const
Return start label of this patch in the polyMesh face list.
Gradient calculated using weighted least-squares on an arbitrary stencil. The stencil type is provide...
Least-squares gradient scheme vectors.
const extendedCentredCellToCellStencil & stencil() const
Return const reference to the stencil.
const List< List< vector > > & vectors() const
Return const reference to the least square vectors.
Basic second-order gradient scheme using face-interpolation and Gauss' theorem.
label constructSize() const noexcept
Constructed data size.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
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.
#define forAll(list, i)
Loop across all elements in list.