Go to the documentation of this file.
56 "snGradCorr("+vf.name()+
')',
63 vf.dimensions()*
mesh.nonOrthDeltaCoeffs().dimensions()
84 const face& fi = faces[facei];
86 const vector nf(Sf[facei]/magSf[facei]);
88 for (label
pi = 0;
pi < fi.size(); ++
pi)
91 const label pj = fi.fcIndex(
pi);
97 const Type pvfe(0.5*(pvf[fi[pj]] + pvf[fi[
pi]]));
104 fgrad /= magSf[facei];
107 vector dCorr(
C[neighbour[facei]] -
C[owner[facei]]);
108 dCorr /= (nf & dCorr);
110 sfCorr[facei] = dCorr&fgrad;
113 tsfCorr.
ref().boundaryFieldRef() =
Zero;
135 "snGradCorr("+vf.name()+
')',
142 vf.dimensions()*
mesh.nonOrthDeltaCoeffs().dimensions()
147 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
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
#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)
A traits class, which is primarily used for primitives.
A face is a list of labels corresponding to mesh vertices.
Graphite solid properties.
Surface gradient scheme with full explicit 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.