37#ifndef quadraticLinearUpwindFitPolynomial_H
38#define quadraticLinearUpwindFitPolynomial_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();
88 coeffs[curIdx++] = weight*d.
z();
89 coeffs[curIdx++] = weight*d.
x()*d.
z();
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
Quadratic polynomial for upwind biased interpolation fitting.
static void addCoeffs(scalar *coeffs, const vector &d, const scalar weight, const direction dim)
static label nTerms(const direction dim)
dimensionedSymmTensor sqr(const dimensionedVector &dv)