Go to the documentation of this file.
62 "snGradCorr("+vf.name()+
')',
69 vf.dimensions()*
mesh.nonOrthDeltaCoeffs().dimensions()
90 const face& fi = faces[facei];
92 vector nf(Sf[facei]/magSf[facei]);
94 for (label
pi=0;
pi<fi.size();
pi++)
97 label pj = (
pi+1)%fi.size();
103 Type pvfe(0.5*(pvf[fi[pj]] + pvf[fi[
pi]]));
110 fgrad /= magSf[facei];
113 vector dCorr(
C[neighbour[facei]] -
C[owner[facei]]);
114 dCorr /= (nf & dCorr);
118 sfCorr[facei] = dCorr&fgrad;
121 tsfCorr.
ref().boundaryFieldRef() =
Zero;
143 "snGradCorr("+vf.name()+
')',
150 vf.dimensions()*
mesh.nonOrthDeltaCoeffs().dimensions()
155 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > fullGradCorrection(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the faceCorrectedSnGrad.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the faceCorrectedSnGrad.
virtual ~faceCorrectedSnGrad()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
Mesh data needed to do the Finite Volume discretisation.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
constexpr scalar pi(M_PI)
Traits class for primitives.
A face is a list of labels corresponding to mesh vertices.
Graphite solid properties.
Simple central-difference snGrad scheme with non-orthogonal correction.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.