Abstract base class for lnGrad schemes. More...
Public Member Functions | |
declareRunTimeSelectionTable (tmp, lnGradScheme, Mesh,(const faMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
lnGradScheme (const faMesh &mesh) | |
Construct from mesh. More... | |
virtual | ~lnGradScheme () |
Destructor. More... | |
const faMesh & | mesh () const |
Return mesh reference. More... | |
virtual tmp< edgeScalarField > | deltaCoeffs (const GeometricField< Type, faPatchField, areaMesh > &) const =0 |
Return the interpolation weighting factors for the given field. More... | |
virtual bool | corrected () const |
Return true if this scheme uses an explicit correction. More... | |
virtual tmp< GeometricField< Type, faePatchField, edgeMesh > > | correction (const GeometricField< Type, faPatchField, areaMesh > &) const |
Return the explicit correction to the lnGrad. More... | |
virtual tmp< GeometricField< Type, faePatchField, edgeMesh > > | lnGrad (const GeometricField< Type, faPatchField, areaMesh > &) const |
Return the lnGrad of the given cell field. More... | |
tmp< GeometricField< Type, faePatchField, edgeMesh > > | lnGrad (const tmp< GeometricField< Type, faPatchField, areaMesh >> &) const |
Return the lnGrad of the given tmp cell field. More... | |
![]() | |
constexpr | refCount () noexcept |
Default construct, initializing count to 0. More... | |
int | count () const noexcept |
Return the current reference count. More... | |
bool | unique () const noexcept |
Return true if the reference count is zero. More... | |
void | operator++ () noexcept |
Increment the reference count. More... | |
void | operator++ (int) noexcept |
Increment the reference count. More... | |
void | operator-- () noexcept |
Decrement the reference count. More... | |
void | operator-- (int) noexcept |
Decrement the reference count. More... | |
Static Public Member Functions | |
static tmp< lnGradScheme< Type > > | New (const faMesh &mesh, Istream &schemeData) |
Return new tmp interpolation scheme. More... | |
static tmp< GeometricField< Type, faePatchField, edgeMesh > > | lnGrad (const GeometricField< Type, faPatchField, areaMesh > &, const tmp< edgeScalarField > &, const word &snGradName="lnGrad") |
Return the lnGrad of the given cell field. More... | |
Abstract base class for lnGrad schemes.
Definition at line 62 of file lnGradScheme.H.
|
inline |
Construct from mesh.
Definition at line 95 of file lnGradScheme.H.
|
virtual |
Destructor.
Definition at line 92 of file lnGradScheme.C.
declareRunTimeSelectionTable | ( | tmp | , |
lnGradScheme< Type > | , | ||
Mesh | , | ||
(const faMesh &mesh, Istream &schemeData) | , | ||
(mesh, schemeData) | |||
) |
|
static |
Return new tmp interpolation scheme.
Definition at line 49 of file lnGradScheme.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, InfoInFunction, mesh, and Foam::nl.
Referenced by laplacianScheme< Type >::laplacianScheme(), and Foam::fac::lnGrad().
|
inline |
Return mesh reference.
Definition at line 118 of file lnGradScheme.H.
Referenced by correctedLnGrad< Type >::corrected(), limitedLnGrad< Type >::corrected(), correctedLnGrad< Type >::deltaCoeffs(), fourthLnGrad< Type >::deltaCoeffs(), and limitedLnGrad< Type >::deltaCoeffs().
|
static |
Return the lnGrad of the given cell field.
with the given weighting factors
Definition at line 101 of file lnGradScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), forAll, mesh, IOobject::NO_READ, IOobject::NO_WRITE, and tmp< T >::ref().
Referenced by fourthLnGrad< Type >::correction().
|
pure virtual |
Return the interpolation weighting factors for the given field.
Implemented in limitedLnGrad< Type >, correctedLnGrad< Type >, and fourthLnGrad< Type >.
|
inlinevirtual |
Return true if this scheme uses an explicit correction.
Reimplemented in limitedLnGrad< Type >, correctedLnGrad< Type >, and fourthLnGrad< Type >.
Definition at line 140 of file lnGradScheme.H.
|
inlinevirtual |
Return the explicit correction to the lnGrad.
for the given field
Reimplemented in limitedLnGrad< Type >, correctedLnGrad< Type >, and fourthLnGrad< Type >.
Definition at line 148 of file lnGradScheme.H.
|
virtual |
Return the lnGrad of the given cell field.
with explicit correction
Definition at line 156 of file lnGradScheme.C.
References Foam::correction(), Foam::fac::lnGrad(), and tmp< T >::ref().
tmp< GeometricField< Type, faePatchField, edgeMesh > > lnGrad | ( | const tmp< GeometricField< Type, faPatchField, areaMesh >> & | tvf | ) | const |
Return the lnGrad of the given tmp cell field.
with explicit correction
Definition at line 175 of file lnGradScheme.C.
References Foam::fac::lnGrad().