Simple central-difference snGrad scheme with non-orthogonal correction. More...
Public Member Functions | |
TypeName ("faceCorrected") | |
Runtime type information. More... | |
faceCorrectedSnGrad (const fvMesh &mesh) | |
Construct from mesh. More... | |
faceCorrectedSnGrad (const fvMesh &mesh, Istream &) | |
Construct from mesh and data stream. More... | |
virtual | ~faceCorrectedSnGrad () |
Destructor. More... | |
virtual tmp< surfaceScalarField > | deltaCoeffs (const VolField< Type > &) const |
Return the interpolation weighting factors for the given field. More... | |
virtual bool | corrected () const |
Return true if this scheme uses an explicit correction. More... | |
tmp< SurfaceField< Type > > | fullGradCorrection (const VolField< Type > &) const |
Return the explicit correction to the faceCorrectedSnGrad. More... | |
virtual tmp< SurfaceField< Type > > | correction (const VolField< Type > &) const |
Return the explicit correction to the faceCorrectedSnGrad. More... | |
tmp< surfaceScalarField > | correction (const volScalarField &vsf) const |
tmp< surfaceVectorField > | correction (const volVectorField &vvf) const |
Foam::tmp< Foam::surfaceVectorField > | correction (const volVectorField &vvf) const |
Public Member Functions inherited from snGradScheme< Type > | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
snGradScheme (const fvMesh &mesh) | |
Construct from mesh. More... | |
snGradScheme (const snGradScheme &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~snGradScheme () |
Destructor. More... | |
const fvMesh & | mesh () const |
Return mesh reference. More... | |
virtual tmp< SurfaceField< Type > > | snGrad (const VolField< Type > &) const |
Return the snGrad of the given cell field. More... | |
tmp< SurfaceField< Type > > | snGrad (const tmp< VolField< Type >> &) const |
Return the snGrad of the given tmp cell field. More... | |
void | operator= (const snGradScheme &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from refCount | |
int | count () const |
Return the current reference count. More... | |
bool | unique () const |
Return true if the reference count is zero. More... | |
void | operator++ () |
Increment the reference count. More... | |
void | operator++ (int) |
Increment the reference count. More... | |
void | operator-- () |
Decrement the reference count. More... | |
void | operator-- (int) |
Decrement the reference count. More... | |
void | operator= (const refCount &)=delete |
Disallow bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from snGradScheme< Type > | |
static tmp< snGradScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return new tmp interpolation scheme. More... | |
static tmp< SurfaceField< Type > > | snGrad (const VolField< Type > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad") |
Return the snGrad of the given cell field with the given deltaCoeffs. More... | |
static tmp< SurfaceField< Type > > | sndGrad (const VolField< Type > &, const word &snGradName="sndGrad") |
Return the sndGrad of the given cell field. More... | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
refCount (const refCount &)=delete | |
Disallow copy. More... | |
Simple central-difference snGrad scheme with non-orthogonal correction.
Definition at line 54 of file faceCorrectedSnGrad.H.
|
inline |
Construct from mesh.
Definition at line 73 of file faceCorrectedSnGrad.H.
|
inline |
Construct from mesh and data stream.
Definition at line 80 of file faceCorrectedSnGrad.H.
|
virtual |
Destructor.
Definition at line 33 of file faceCorrectedSnGrad.C.
TypeName | ( | "faceCorrected" | ) |
Runtime type information.
|
inlinevirtual |
Return the interpolation weighting factors for the given field.
Implements snGradScheme< Type >.
Definition at line 93 of file faceCorrectedSnGrad.H.
References snGradScheme< Type >::mesh(), and surfaceInterpolation::nonOrthDeltaCoeffs().
|
inlinevirtual |
Return true if this scheme uses an explicit correction.
Reimplemented from snGradScheme< Type >.
Definition at line 102 of file faceCorrectedSnGrad.H.
Foam::tmp< Foam::SurfaceField< Type > > fullGradCorrection | ( | const VolField< Type > & | vf | ) | const |
Return the explicit correction to the faceCorrectedSnGrad.
for the given field using the gradient of the field
Definition at line 41 of file faceCorrectedSnGrad.C.
References fvMesh::C(), DimensionedField< Type, GeoMesh >::dimensions(), polyMesh::faces(), forAll, Foam::fvc::interpolate(), fvMesh::magSf(), IOobject::name(), fvMesh::neighbour(), Foam::compressible::New(), surfaceInterpolation::nonOrthDeltaCoeffs(), fvMesh::owner(), Foam::constant::mathematical::pi(), points, polyMesh::points(), tmp< T >::ref(), fvMesh::Sf(), List< T >::size(), and Foam::Zero.
|
virtual |
Return the explicit correction to the faceCorrectedSnGrad.
for the given field using the gradients of the field components
Reimplemented from snGradScheme< Type >.
Definition at line 120 of file faceCorrectedSnGrad.C.
References GeometricField< Type, PatchField, GeoMesh >::component(), DimensionedField< Type, GeoMesh >::dimensions(), IOobject::name(), surfaceInterpolation::nonOrthDeltaCoeffs(), tmp< T >::ref(), and GeometricField< Type, PatchField, GeoMesh >::replace().
tmp< surfaceScalarField > correction | ( | const volScalarField & | vsf | ) | const |
tmp< surfaceVectorField > correction | ( | const volVectorField & | vvf | ) | const |
Foam::tmp< Foam::surfaceVectorField > correction | ( | const volVectorField & | vvf | ) | const |
Definition at line 47 of file faceCorrectedSnGrads.C.