56 "snGradCorr("+vf.
name()+
')',
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()+
')',
147 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; ++cmpt)
Graphite solid properties.
const dimensionSet & dimensions() const
Return dimensions.
Generic templated field type.
Generic GeometricField class.
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const fileName & instance() const noexcept
Read access to instance path component.
void size(const label n)
Older name for setAddressableSize.
label fcIndex(const label i) const noexcept
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A face is a list of labels corresponding to mesh vertices.
Mesh data needed to do the Finite Volume discretisation.
Surface gradient scheme with full explicit non-orthogonal correction.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > fullGradCorrection(const GeometricField< Type, fvPatchField, volMesh > &) const
A class for managing temporary objects.
type
Volume classification types.
#define forAll(list, i)
Loop across all elements in list.