48 "linearUpwind::correction(" + vf.
name() +
')',
49 mesh.time().timeName(),
75 mesh.gradScheme(gradSchemeName_)
82 gradScheme_().grad(vf.
component(cmpt), gradSchemeName_);
89 (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
92 (Cf[facei] -
C[celli]) & gradVf[celli];
96 Boundary& bSfCorr = sfCorr.boundaryFieldRef();
121 label own = pOwner[facei];
123 if (pFaceFlux[facei] > 0)
126 (pCf[facei] -
C[own])
132 (pCf[facei] - pd[facei] -
C[own])
159 "linearUpwind::correction(" + vf.
name() +
')',
160 mesh.time().timeName(),
164 IOobject::NO_REGISTER
186 mesh.gradScheme(gradSchemeName_)
196 (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
197 sfCorr[facei] = (Cf[facei] -
C[celli]) & gradVf[celli];
201 typename surfaceVectorField::Boundary& bSfCorr = sfCorr.boundaryFieldRef();
207 if (pSfCorr.coupled())
223 label own = pOwner[facei];
225 if (pFaceFlux[facei] > 0)
227 pSfCorr[facei] = (pCf[facei] -
C[own]) & gradVf[own];
232 (pCf[facei] - pd[facei] -
C[own]) & pGradVfNei[facei];
fvsPatchField< vector > fvsPatchVectorField
#define makelimitedSurfaceInterpolationScheme(SS)
Graphite solid properties.
const word & name() const noexcept
Return the object name.
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
Generic GeometricField class.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
Generic dimensioned Type class.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual bool coupled() const
True if the patch field is coupled.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the face-interpolate.
A class for managing temporary objects.
label & setComponent(label &val, const direction) noexcept
Non-const access to integer-type (has no components)
Defines the attributes of an object for which implicit objectRegistry management is supported...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
const dimensionSet & dimensions() const noexcept
Return dimensions.
static constexpr const zero Zero
Global zero (0)