67 scalar value = coeffs_[0];
72 value += coeffs_[i+1]*vec[i];
90 termValues_[dimCounter] = vec[i];
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
base class for polynomial functions
const labelVector geomDir_
label nTerms_
Number of polynomial term.
multiDimPolyFunctions(const labelVector &dirs)
Construct with directions.
First degree polynominal function.
virtual const scalarField & termValues(const vector &vec)
virtual scalar value(const vector &vec)
polyDegree1(const labelVector &dirs)
Construct from nTerms.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Vector< label > labelVector
Vector of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static constexpr const zero Zero
Global zero (0).
#define forAll(list, i)
Loop across all elements in list.