59 const auto& owner =
mesh.owner();
60 const auto& neighbour =
mesh.neighbour();
65 w[owner[facei]]*
C[owner[facei]]
66 + (1.0 - w[owner[facei]])*
C[neighbour[facei]];
68 const face&
f = faces[facei];
78 Type sumPsip = at*(1.0/3.0)*
85 for (label pointi=1; pointi<
f.size(); pointi++)
95 sumPsip += at*(1.0/3.0)*
104 sfCorr[facei] = sumPsip/sumAt - sfCorr[facei];
109 Boundary& bSfCorr = tsfCorr.
ref().boundaryFieldRef();
124 label own = pOwner[facei];
128 + (1.0 - pWghts[facei])*pNbrC[facei];
140 Type sumPsip = at*(1.0/3.0)*
147 for (label pointi=1; pointi<
f.size(); pointi++)
157 sumPsip += at*(1.0/3.0)*
166 pSfCorr[facei] = sumPsip/sumAt - pSfCorr[facei];
constexpr scalar pi(M_PI)
Graphite solid properties.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Generic GeometricField class.
static FOAM_NO_DANGLING_REFERENCE const volPointInterpolation & New(const fvMesh &mesh, Args &&... args)
A face is a list of labels corresponding to mesh vertices.
Mesh data needed to do the Finite Volume discretisation.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
label start() const noexcept
The patch start within the polyMesh face list.
virtual const labelUList & faceCells() const
Return faceCells.
virtual bool coupled() const
True if the patch field is coupled.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Face-point interpolation scheme class derived from linear and returns linear weighting factors but al...
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the explicit correction to the face-interpolate.
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
List< face > faceList
List of faces.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
triangle< point, const point & > triPointRef
A triangle using referred points.
vectorField pointField
pointField is a vectorField.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.
#define makeSurfaceInterpolationScheme(SS)