46 "linearUpwind::correction(" + vf.
name() +
')',
76 > tgradVf = gradScheme_().grad(vf, gradSchemeName_);
80 typename outerProduct<vector, Type>::type,
83 >& gradVf = tgradVf();
87 label celli = (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
88 sfCorr[facei] = (Cf[facei] - C[celli]) & gradVf[celli];
93 Boundary& bSfCorr = sfCorr.boundaryFieldRef();
110 gradVf.boundaryField()[
patchi].patchNeighbourField()
118 label own = pOwner[facei];
120 if (pFaceFlux[facei] > 0)
122 pSfCorr[facei] = (pCf[facei] - C[own]) & gradVf[own];
127 (pCf[facei] - pd[facei] - C[own]) & pGradVfNei[facei];
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 surfaceVectorField & Cf() const
Return face centres as surfaceVectorField.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the face-interpolate.
Generic dimensioned Type class.
const volVectorField & C() const
Return cell centres as volVectorField.
virtual bool coupled() const
Return true if this patch field is coupled.
Mesh data needed to do the Finite Volume discretisation.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const labelUList & neighbour() const
Internal face neighbour.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const dimensionSet & dimensions() const
Return dimensions.
Internal & ref()
Return a reference to the dimensioned internal field.
Mesh data needed to do the Finite Volume discretisation.
linearUpwind interpolation scheme class derived from upwind and returns upwind weighting factors and ...
const labelUList & owner() const
Internal face owner.
A class for managing temporary objects.
#define makelimitedSurfaceInterpolationTypeScheme(SS, Type)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const word & name() const
Return name.
const Time & time() const
Return the top-level database.