34 template<
class Type,
class Stencil>
41 const VolField<Type>& vtf,
47 const fvMesh&
mesh = vtf.mesh();
55 tmp<VolField<GradType>> tlsGrad
70 VolField<GradType>& lsGrad = tlsGrad.ref();
71 Field<GradType>& lsGradIf = lsGrad;
73 const extendedCentredCellToCellStencil& stencil = lsv.stencil();
84 flatVtf[celli] = vtf[celli];
90 const fvPatchField<Type>& ptf = vtf.boundaryField()[
patchi];
99 flatVtf[nCompact++] = ptf[i];
104 stencil.map().distribute(flatVtf);
108 forAll(stencilAddr, celli)
110 const labelList& compactCells = stencilAddr[celli];
115 lsGradIf[celli] += lsvc[i]*flatVtf[compactCells[i]];
120 lsGrad.correctBoundaryConditions();
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
virtual tmp< VolField< typename outerProduct< vector, Type >::type > > calcGrad(const VolField< Type > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad.
Motion of the mesh specified as a list of pointMeshMovers.
label nInternalFaces() const
A class for managing temporary objects.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
U correctBoundaryConditions()
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet & dimLength
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.