38template<
class Polynomial>
56 coeffs_(
mesh.nFaces())
62 DebugInfo <<
"Finished constructing polynomialFit data" <<
endl;
68template<
class Polynomial>
69void Foam::CentredFitData<Polynomial>::calcFit()
77 this->stencil().collectData(
mesh.C(), stencilPoints);
83 for (label facei = 0; facei <
mesh.nInternalFaces(); facei++)
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);
Data for the quadratic fit correction interpolation scheme.
CentredFitData(const fvMesh &mesh, const extendedCentredCellToFaceStencil &stencil, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
scalar linearLimitFactor() const
const extendedCentredCellToFaceStencil & stencil() const
FitData(const fvMesh &mesh, const extendedCentredCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
scalar centralWeight() const
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fvMesh & mesh() const noexcept
Polynomial templated on size (order):
Mesh data needed to do the Finite Volume discretisation.
#define DebugInfo
Report an information message using Foam::Info.
#define DebugInFunction
Report an information message using Foam::Info.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
fvsPatchField< scalar > fvsPatchScalarField
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.