46 "linearUpwind::correction(" + vf.
name() +
')',
77 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
80 gradScheme_().grad(vf.
component(cmpt), gradSchemeName_);
87 (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
90 (Cf[facei] - C[celli]) & gradVf[celli];
94 Boundary& bSfCorr = sfCorr.boundaryFieldRef();
119 label own = pOwner[facei];
121 if (pFaceFlux[facei] > 0)
124 (pCf[facei] - C[own])
130 (pCf[facei] - pd[facei] - C[own])
155 "linearUpwind::correction(" + vf.
name() +
')',
186 (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
187 sfCorr[facei] = (Cf[facei] - C[celli]) & gradVf[celli];
191 typename surfaceVectorField::Boundary& bSfCorr = sfCorr.boundaryFieldRef();
213 label own = pOwner[facei];
215 if (pFaceFlux[facei] > 0)
217 pSfCorr[facei] = (pCf[facei] - C[own]) & gradVf[own];
222 (pCf[facei] - pd[facei] - C[own]) & pGradVfNei[facei];
#define makelimitedSurfaceInterpolationScheme(SS)
Graphite solid properties.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
const surfaceVectorField & Cf() const
Return face centres as surfaceVectorField.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Generic dimensioned Type class.
const Time & time() const
Return the top-level database.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
const labelUList & neighbour() const
Internal face neighbour.
const dimensionSet & dimensions() const
Return dimensions.
virtual bool coupled() const
Return true if this patch field is coupled.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
ITstream & gradScheme(const word &name) const
const labelUList & owner() const
Internal face owner.
Internal & ref()
Return a reference to the dimensioned internal field.
Abstract base class for gradient schemes.
Mesh data needed to do the Finite Volume discretisation.
linearUpwind interpolation scheme class derived from upwind and returns upwind weighting factors and ...
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the face-interpolate.
const volVectorField & C() const
Return cell centres as volVectorField.
A class for managing temporary objects.
label & setComponent(label &l, const direction)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.