38 template<
class Polynomial>
43 const scalar linearLimitFactor,
44 const scalar centralWeight
54 mesh, stencil, true, linearLimitFactor, centralWeight
56 coeffs_(
mesh.nFaces())
62 DebugInfo <<
"Finished constructing polynomialFit data" <<
endl;
68 template<
class Polynomial>
77 this->stencil().collectData(
mesh.
C(), stencilPoints);
90 >::calcFit(coeffs_[facei], stencilPoints[facei], w[facei], facei);
101 label facei = pw.patch().start();
107 CentredFitData<Polynomial>,
108 extendedCentredCellToFaceStencil,
110 >::calcFit(coeffs_[facei], stencilPoints[facei], pw[i], facei);
fvsPatchField< scalar > fvsPatchScalarField
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
Type of boundary fields.
label nFaces() const noexcept
Number of mesh faces.
CentredFitData(const fvMesh &mesh, const extendedCentredCellToFaceStencil &stencil, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
#define forAll(list, i)
Loop across all elements in list.
Data for the quadratic fit correction interpolation scheme.
#define DebugInFunction
Report an information message using Foam::Info.
label nInternalFaces() const noexcept
Number of internal faces.
#define DebugInfo
Report an information message using Foam::Info.
Polynomial templated on size (order):
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres as volVectorField.
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.