Estimates the gradient with a least square scheme in a cell. More...
Public Member Functions | |
| leastSquareGrad (const word &functionName, const labelVector &geomDir) | |
| Construct from components. More... | |
| outerProduct< vector, T >::type | grad (const List< vector > &positions, const List< T > &listValue) |
| Return the gradient of the cell. More... | |
| Map< typename outerProduct< vector, T >::type > | grad (const Map< List< vector >> &positions, const Map< List< T >> &listValue) |
| template<> | |
| tensor | grad (const List< vector > &positions, const List< vector > &listValue) |
Estimates the gradient with a least square scheme in a cell.
Original code supplied by Henning Scheufler, DLR (2019)
Definition at line 52 of file leastSquareGrad.H.
| leastSquareGrad | ( | const word & | functionName, |
| const labelVector & | geomDir | ||
| ) |
Construct from components.
Definition at line 30 of file leastSquareGrad.C.
| Foam::outerProduct< Foam::vector, T >::type grad | ( | const List< vector > & | positions, |
| const List< T > & | listValue | ||
| ) |
Return the gradient of the cell.
Definition at line 55 of file leastSquareGrad.C.
References forAll, and Foam::Zero.
| Foam::Map< typename Foam::outerProduct< Foam::vector, T >::type > grad | ( | const Map< List< vector >> & | positions, |
| const Map< List< T >> & | listValue | ||
| ) |
Definition at line 134 of file leastSquareGrad.C.
References UList< T >::capacity(), forAllConstIters(), Foam::fac::grad(), and Foam::glTF::key().

Definition at line 95 of file leastSquareGrad.C.
References forAll, and Foam::Zero.