39 #ifndef quadraticLinearFitPolynomial_H 40 #define quadraticLinearFitPolynomial_H 79 coeffs[curIdx++] = weight;
80 coeffs[curIdx++] = weight*d.x();
81 coeffs[curIdx++] = weight*
sqr(d.x());
85 coeffs[curIdx++] = weight*d.y();
86 coeffs[curIdx++] = weight*d.x()*d.y();
90 coeffs[curIdx++] = weight*d.z();
91 coeffs[curIdx++] = weight*d.x()*d.z();
static label nTerms(const direction dim)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Quadratic/linear polynomial for interpolation fitting: quadratic normal to the face, linear in the plane of the face for consistency with 2nd-order Gauss.
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...