56 "snGradCorr("+vf.
name()+
')',
84 const face& fi = faces[facei];
86 const vector nf(Sf[facei]/magSf[facei]);
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()+
')',
Graphite solid properties.
void size(const label n)
Older name for setAddressableSize.
A face is a list of labels corresponding to mesh vertices.
const word & name() const noexcept
Return the object name.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
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.
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
A traits class, which is primarily used for primitives and vector-space.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Generic GeometricField class.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the faceCorrectedSnGrad for the given field using the gradients of ...
#define forAll(list, i)
Loop across all elements in list.
label fcIndex(const label i) const noexcept
The forward circular index. The next index in the list which returns to the first at the end of the l...
Generic templated field type.
constexpr scalar pi(M_PI)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > fullGradCorrection(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the faceCorrectedSnGrad for the given field using the gradient of t...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const fileName & instance() const noexcept
Read access to instance path component.
Surface gradient scheme with full explicit non-orthogonal correction.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
const dimensionSet & dimensions() const noexcept
Return dimensions.
static constexpr const zero Zero
Global zero (0)
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.