35 template<
class Polynomial>
39 const extendedCentredCellToFaceStencil& stencil,
40 const scalar linearLimitFactor,
41 const scalar centralWeight
46 CentredFitData<Polynomial>,
47 extendedCentredCellToFaceStencil,
51 mesh, stencil,
true, linearLimitFactor, centralWeight
53 coeffs_(mesh.nFaces())
64 Info<<
"Finished constructing polynomialFit data" <<
endl;
71 template<
class Polynomial>
80 this->stencil().collectData(mesh.
C(), stencilPoints);
90 CentredFitData<Polynomial>,
91 extendedCentredCellToFaceStencil,
93 >::calcFit(coeffs_[facei], stencilPoints[facei], w[facei], facei);
110 CentredFitData<Polynomial>,
111 extendedCentredCellToFaceStencil,
113 >::calcFit(coeffs_[facei], stencilPoints[facei], pw[i], facei);
#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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const volVectorField & C() const
Return cell centres as volVectorField.
virtual bool coupled() const
Return true if this patch field is coupled.
CentredFitData(const fvMesh &mesh, const extendedCentredCellToFaceStencil &stencil, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
Data for the quadratic fit correction interpolation scheme.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const fvPatch & patch() const
Return patch.
Polynomial templated on size (order):
Mesh data needed to do the Finite Volume discretisation.
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
label start() const
Return start label of this patch in the polyMesh face list.
label nInternalFaces() const
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
#define InfoInFunction
Report an information message using Foam::Info.