41 const fvMesh& mesh = this->mesh();
63 w[owner[facei]]*
C[owner[facei]]
64 + (1.0 - w[owner[facei]])*
C[neighbour[facei]];
66 const face&
f = faces[facei];
76 Type sumPsip = at*(1.0/3.0)*
83 for (
label pointi=1; pointi<
f.size(); pointi++)
93 sumPsip += at*(1.0/3.0)*
102 sfCorr[facei] = sumPsip/sumAt - sfCorr[facei];
107 Boundary& bSfCorr = tsfCorr.
ref().boundaryFieldRef();
122 label own = pOwner[facei];
126 + (1.0 - pWghts[facei])*pNbrC[facei];
138 Type sumPsip = at*(1.0/3.0)*
145 for (
label pointi=1; pointi<
f.size(); pointi++)
155 sumPsip += at*(1.0/3.0)*
164 pSfCorr[facei] = sumPsip/sumAt - pSfCorr[facei];
#define forAll(list, i)
Loop across all elements in list.
Graphite solid properties.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A face is a list of labels corresponding to mesh vertices.
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 labelUList & neighbour() const
Internal face neighbour.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual label start() const
Return start label of this patch in the polyMesh face list.
virtual const labelUList & faceCells() const
Return faceCells.
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.
Face-point interpolation scheme class derived from linear and returns linear weighting factors but al...
virtual tmp< SurfaceField< Type > > correction(const VolField< Type > &vf) const
Return the explicit correction to the face-interpolate.
virtual const faceList & faces() const
Return raw faces.
virtual const pointField & points() const
Return raw points.
const surfaceScalarField & weights() const
Return reference to linear difference weighting factors.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A triangle primitive used to calculate face areas and swept volumes.
scalar mag() const
Return scalar magnitude.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< SurfaceField< Type > > linearInterpolate(const VolField< Type > &vf)
makeSurfaceInterpolationScheme(cellCoBlended)