37 template<
class Polynomial>
42 const bool linearCorrection,
43 const scalar linearLimitFactor,
44 const scalar centralWeight
54 mesh, stencil, linearCorrection, linearLimitFactor, centralWeight
56 owncoeffs_(
mesh.nFaces()),
57 neicoeffs_(
mesh.nFaces())
63 DebugInfo <<
" Finished constructing polynomialFit data" <<
nl;
69 template<
class Polynomial>
82 this->stencil().collectData
84 this->stencil().ownMap(),
85 this->stencil().ownStencil(),
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(),
156 UpwindFitData<Polynomial>,
157 extendedUpwindCellToFaceStencil,
159 >::calcFit(neicoeffs_[facei], stencilPoints[facei], w[facei], facei);
177 label facei = pw.patch().start();
183 UpwindFitData<Polynomial>,
184 extendedUpwindCellToFaceStencil,
188 neicoeffs_[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)
label nFaces() const noexcept
Number of mesh faces.
#define forAll(list, i)
Loop across all elements in list.
UpwindFitData(const fvMesh &mesh, const extendedUpwindCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
#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.
Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil...
Polynomial templated on size (order):
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.
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.