37template<
class Polynomial>
56 owncoeffs_(
mesh.nFaces()),
57 neicoeffs_(
mesh.nFaces())
63 DebugInfo <<
" Finished constructing polynomialFit data" <<
nl;
69template<
class Polynomial>
70void Foam::UpwindFitData<Polynomial>::calcFit()
82 this->stencil().collectData
84 this->stencil().ownMap(),
85 this->stencil().ownStencil(),
93 for (label facei = 0; facei <
mesh.nInternalFaces(); facei++)
100 >::calcFit(owncoeffs_[facei], stencilPoints[facei], w[facei], facei);
118 label facei = pw.patch().start();
124 UpwindFitData<Polynomial>,
125 extendedUpwindCellToFaceStencil,
129 owncoeffs_[facei], stencilPoints[facei], pw[i], facei
141 this->stencil().collectData
143 this->stencil().neiMap(),
144 this->stencil().neiStencil(),
159 >::calcFit(neicoeffs_[facei], stencilPoints[facei], w[facei], facei);
177 label facei = pw.patch().start();
188 neicoeffs_[facei], stencilPoints[facei], pw[i], facei
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
scalar linearLimitFactor() const
const extendedUpwindCellToFaceStencil & stencil() const
bool linearCorrection() const
FitData(const fvMesh &mesh, const extendedUpwindCellToFaceStencil &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):
Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil.
UpwindFitData(const fvMesh &mesh, const extendedUpwindCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
Creates upwind stencil by shifting a centred stencil to upwind and downwind faces and optionally remo...
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres as volVectorField.
label nInternalFaces() const noexcept
Number of internal faces.
#define DebugInfo
Report an information message using Foam::Info.
#define DebugInFunction
Report an information message using Foam::Info.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
fvsPatchField< scalar > fvsPatchScalarField
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.