78 GradFieldType& lsGrad = tlsGrad.
ref();
91 const label ownFacei = own[facei];
92 const label neiFacei = nei[facei];
94 const Type deltaVsf(vsf[neiFacei] - vsf[ownFacei]);
96 lsGrad[ownFacei] += ownLs[facei]*deltaVsf;
97 lsGrad[neiFacei] -= neiLs[facei]*deltaVsf;
115 forAll(neiVsf, patchFacei)
118 patchOwnLs[patchFacei]
119 *(neiVsf[patchFacei] - vsf[
faceCells[patchFacei]]);
126 forAll(patchVsf, patchFacei)
129 patchOwnLs[patchFacei]
130 *(patchVsf[patchFacei] - vsf[
faceCells[patchFacei]]);
136 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.
Generic dimensioned Type class.
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...
Basic second-order gradient scheme using face-interpolation and Gauss' theorem.
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.
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.