34 template<
class Polynomial>
39 const bool linearCorrection,
40 const scalar linearLimitFactor,
41 const scalar centralWeight
51 mesh, stencil, linearCorrection, linearLimitFactor, centralWeight
53 owncoeffs_(mesh.nFaces()),
54 neicoeffs_(mesh.nFaces())
65 Info<<
" Finished constructing polynomialFit data" <<
endl;
72 template<
class Polynomial>
75 const fvMesh& mesh = this->mesh();
85 this->stencil().collectData
87 this->stencil().ownMap(),
88 this->stencil().ownStencil(),
103 >::calcFit(owncoeffs_[facei], stencilPoints[facei], w[facei], facei);
121 label facei = pw.patch().start();
127 UpwindFitData<Polynomial>,
128 extendedUpwindCellToFaceStencil,
132 owncoeffs_[facei], stencilPoints[facei], pw[i], facei
144 this->stencil().collectData
146 this->stencil().neiMap(),
147 this->stencil().neiStencil(),
159 UpwindFitData<Polynomial>,
160 extendedUpwindCellToFaceStencil,
162 >::calcFit(neicoeffs_[facei], stencilPoints[facei], w[facei], facei);
180 label facei = pw.patch().start();
186 UpwindFitData<Polynomial>,
187 extendedUpwindCellToFaceStencil,
191 neicoeffs_[facei], stencilPoints[facei], pw[i], facei
#define forAll(list, i)
Loop across all elements in list.
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Boundary & boundaryField() const
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...
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.
label nInternalFaces() const
#define InfoInFunction
Report an information message using Foam::Info.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fvsPatchField< scalar > fvsPatchScalarField