38 const word& functionName,
42 polyFitter_(functionName,geomDir),
47 for (
const label dirn : geomDir_)
69 List<T> fitData = polyFitter_.fitData
77 return GradType(fitData[1],fitData[2],fitData[3]);
90 ret[i] = fitData[dimCounter];
117 return GradType(fitData[1],fitData[2],fitData[3]);
120 label dimCounter = 0;
126 if (geomDir_[i] == 1)
129 ret.row(i, fitData[dimCounter]);
152 const label key = iter.key();
155 GradType grad(this->grad(positions, listValue[key]));
157 gradMap.
insert(key, grad);
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A HashTable to objects of type <T> with a label key.
Computes the gradient of an input field.
Estimates the gradient with a least square scheme in a cell.
type
Volume classification types.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.