37 upwind<Type>(mesh, faceFlux),
38 gradSchemeName_(
"grad")
49 upwind<Type>(mesh, schemeData),
50 gradSchemeName_(schemeData)
62 upwind<Type>(mesh, faceFlux, schemeData),
63 gradSchemeName_(schemeData)
76 const fvMesh& mesh = this->mesh();
82 "linearUpwind::correction(" + vf.
name() +
')',
107 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
110 gradScheme_().grad(vf.
component(cmpt), gradSchemeName_);
117 (faceFlux[facei] > 0) ? owner[facei] : neighbour[facei];
120 (Cf[facei] -
C[celli]) & gradVf[celli];
149 label own = pOwner[facei];
151 if (pFaceFlux[facei] > 0)
154 (pCf[facei] -
C[own])
160 (pCf[facei] - pd[facei] -
C[own])
#define forAll(list, i)
Loop across all elements in list.
Graphite solid properties.
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
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.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const word & name() const
Return name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres.
const labelUList & owner() const
Internal face owner.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const fvSchemes & schemes() const
Return the fvSchemes.
const surfaceVectorField & Cf() const
Return face centres.
const labelUList & neighbour() const
Internal face neighbour.
ITstream & grad(const word &name) const
Abstract base class for gradient schemes.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual tmp< SurfaceField< Type > > correction(const VolField< Type > &) const
Return the explicit correction to the face-interpolate.
linearUpwind(const fvMesh &mesh, const surfaceScalarField &faceFlux)
Construct from faceFlux.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Upwind interpolation scheme class.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label & setComponent(label &l, const direction)