Class that computes the derivative of physical quantities at arbitrary position.
More...
#include <array_derivative2.h>
Class that computes the derivative of physical quantities at arbitrary position.
◆ derivative() [1/2]
template<class T >
static vec2<T> array_derivative2::derivative |
( |
const array2< T > & |
array, |
|
|
const vec2d & |
origin, |
|
|
double |
dx, |
|
|
const vec2d & |
p |
|
) |
| |
|
inlinestatic |
Computes the the gradient of a physical quantity.
- Parameters
-
[in] | array | Grid. |
[in] | origin | Origin. |
[in] | dx | Grid cell size. |
[in] | p | Position in physical space. |
- Returns
- Gradient output.
◆ derivative() [2/2]
template<class T >
static void array_derivative2::derivative |
( |
const array2< T > & |
array, |
|
|
const vec2d & |
p, |
|
|
T |
result[DIM2] |
|
) |
| |
|
inlinestatic |
Computes the the gradient of a physical quantity.
- Parameters
-
[in] | array | Grid. |
[in] | p | Position in index space. |
[out] | result | Gradient output. |
◆ derivative_interpolate_coef()
static void array_derivative2::derivative_interpolate_coef |
( |
const shape2 & |
shape, |
|
|
const vec2d & |
p, |
|
|
vec2i |
indices[4], |
|
|
double |
coef[DIM2][4] |
|
) |
| |
|
inlinestatic |
Get the coefficients for the gradient.
- Parameters
-
[in] | shape | Shape of the grid. |
[in] | p | Position in index space. |
[out] | indices | Indices output. |
[out] | coef | Corresponding coefficents output. |
The documentation for this class was generated from the following file: