Loading...
Searching...
No Matches
leastSquareGrad< T > Class Template Reference

Estimates the gradient with a least square scheme in a cell. More...

#include <leastSquareGrad.H>

Public Member Functions

 leastSquareGrad (const word &functionName, const labelVector &geomDir)
 Construct from components.
outerProduct< vector, T >::type grad (const List< vector > &positions, const List< T > &listValue)
 Return the gradient of the cell.
Map< typename outerProduct< vector, T >::typegrad (const Map< List< vector > > &positions, const Map< List< T > > &listValue)
tensor grad (const List< vector > &positions, const List< vector > &listValue)

Detailed Description

template<class T>
class Foam::leastSquareGrad< T >

Estimates the gradient with a least square scheme in a cell.

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 52 of file leastSquareGrad.H.

Constructor & Destructor Documentation

◆ leastSquareGrad()

template<class T>
leastSquareGrad ( const word & functionName,
const labelVector & geomDir )

Construct from components.

Definition at line 29 of file leastSquareGrad.C.

Member Function Documentation

◆ grad() [1/3]

template<class T>
Foam::outerProduct< Foam::vector, T >::type grad ( const List< vector > & positions,
const List< T > & listValue )

Return the gradient of the cell.

Definition at line 54 of file leastSquareGrad.C.

References forAll, and Foam::Zero.

Referenced by grad().

Here is the caller graph for this function:

◆ grad() [2/3]

template<class T>
Foam::Map< typename Foam::outerProduct< Foam::vector, T >::type > grad ( const Map< List< vector > > & positions,
const Map< List< T > > & listValue )

Definition at line 133 of file leastSquareGrad.C.

References forAllConstIters, grad(), and HashTable< T, Key, Hash >::insert().

Here is the call graph for this function:

◆ grad() [3/3]

tensor grad ( const List< vector > & positions,
const List< vector > & listValue )

Definition at line 94 of file leastSquareGrad.C.

References forAll, and Foam::Zero.


The documentation for this class was generated from the following files: