34 template<
class Polynomial>
38 const extendedUpwindCellToFaceStencil& stencil,
39 const bool linearCorrection,
40 const scalar linearLimitFactor,
41 const scalar centralWeight
46 UpwindFitData<Polynomial>,
47 extendedUpwindCellToFaceStencil,
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>
85 this->stencil().collectData
87 this->stencil().ownMap(),
88 this->stencil().ownStencil(),
100 UpwindFitData<Polynomial>,
101 extendedUpwindCellToFaceStencil,
103 >::calcFit(owncoeffs_[facei], stencilPoints[facei], w[facei], facei);
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);
186 UpwindFitData<Polynomial>,
187 extendedUpwindCellToFaceStencil,
191 neicoeffs_[facei], stencilPoints[facei], pw[i], facei
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual label start() const
Return start label of this patch in the polyMesh face list.
label nInternalFaces() const
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...
Ostream & endl(Ostream &os)
Add newline and flush stream.
UpwindFitData(const fvMesh &mesh, const extendedUpwindCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
virtual bool coupled() const
Return true if this patch field is coupled.
const fvPatch & patch() const
Return patch.
Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil...
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...
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
#define InfoInFunction
Report an information message using Foam::Info.