51 "snGradCorr("+vf.
name()+
')',
60 auto& ssf = tssf.ref();
80 mesh.deltaCoeffs().internalField();
113 kPI -= Sf*(Sf&kPI)/
sqr(magSf);
116 kNI -= Sf*(Sf&kNI)/
sqr(magSf);
123 mesh.boundary()[patchI].Cf()
124 -
mesh.boundary()[patchI].Cn();
127 mesh.boundary()[patchI].Sf()
129 mesh.boundary()[patchI].Sf()
132 /
sqr(
mesh.boundary()[patchI].magSf());
135 mesh.Cf().boundaryField()[patchI]
137 mesh.boundary()[patchI].Cn()
138 +
mesh.boundary()[patchI].delta()
142 mesh.boundary()[patchI].Sf()
144 mesh.boundary()[patchI].Sf()
147 /
sqr(
mesh.boundary()[patchI].magSf());
151 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; ++cmpt)
158 mesh.gradScheme(
"grad(" + vf.
name() +
')')
167 ssf.primitiveFieldRef().replace
178 forAll(ssf.boundaryField(), patchI)
180 if (ssf.boundaryField()[patchI].coupled())
182 ssf.boundaryFieldRef()[patchI].replace
189 .patchNeighbourField()
194 .patchInternalField()
197 *
mesh.deltaCoeffs().boundaryField()[patchI]
234 "snGradCorr("+vf.
name()+
')',
243 auto& ssf = tssf.ref();
246 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; ++cmpt)
Graphite solid properties.
const dimensionSet & dimensions() const noexcept
Return dimensions.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Internal & internalField() const noexcept
Return a const-reference to the dimensioned internal field.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
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.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for gradient schemes.
Surface gradient scheme with skewness and full explicit non-orthogonal corrections.
skewCorrectedSnGrad(const fvMesh &mesh)
Construct from mesh.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors for the given field.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the skewCorrectedSnGrad for the given field using the gradients of ...
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > fullGradCorrection(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the skewCorrectedSnGrad for the given field using the gradient of t...
const fvMesh & mesh() const
Return const reference to mesh.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
virtual const word & type() const =0
Runtime type information.
A traits class, which is primarily used for primitives and vector-space.
A class for managing temporary objects.
Calculate the gradient of the given field.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
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.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
UList< label > labelUList
A UList of labels.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
#define forAll(list, i)
Loop across all elements in list.