37 #ifndef quadraticUpwindFitPolynomial_H 38 #define quadraticUpwindFitPolynomial_H 77 coeffs[curIdx++] = weight;
78 coeffs[curIdx++] = weight*d.x();
79 coeffs[curIdx++] = weight*
sqr(d.x());
83 coeffs[curIdx++] = weight*d.y();
84 coeffs[curIdx++] = weight*d.x()*d.y();
86 coeffs[curIdx++] = weight*
sqr(d.y());
90 coeffs[curIdx++] = weight*d.z();
91 coeffs[curIdx++] = weight*d.x()*d.z();
92 coeffs[curIdx++] = weight*
sqr(d.z());
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Quadratic polynomial for upwind biased interpolation fitting.
static void addCoeffs(scalar *coeffs, const vector &d, const scalar weight, const direction dim)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static label nTerms(const direction dim)