Go to the documentation of this file.
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())
58 Info<<
"Contructing UpwindFitData<Polynomial>" <<
endl;
65 Info<<
"UpwindFitData<Polynomial>::UpwindFitData() :"
66 <<
"Finished constructing polynomialFit data"
74 template<
class Polynomial>
87 this->stencil().collectData
89 this->stencil().ownMap(),
90 this->stencil().ownStencil(),
98 for (
label facei = 0; facei <
mesh.nInternalFaces(); facei++)
105 >::calcFit(owncoeffs_[facei], stencilPoints[facei],
w[facei], facei);
134 owncoeffs_[facei], stencilPoints[facei], pw[i], facei
146 this->stencil().collectData
148 this->stencil().neiMap(),
149 this->stencil().neiStencil(),
157 for (
label facei = 0; facei <
mesh.nInternalFaces(); facei++)
164 >::calcFit(neicoeffs_[facei], stencilPoints[facei],
w[facei], facei);
193 neicoeffs_[facei], stencilPoints[facei], pw[i], facei
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
#define forAll(list, i)
Loop across all elements in list.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Ostream & endl(Ostream &os)
Add newline and flush stream.
void calcFit()
Calculate the fit for the all the mesh faces.
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...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil.
Mesh data needed to do the Finite Volume discretisation.
Polynomial templated on size (order):
const fvPatch & patch() const
Return patch.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label start() const
Return start label of this patch in the polyMesh face list.
Generic GeometricField class.
virtual bool coupled() const
Return true if this patch field is coupled.