Class that computes the derivative of physical quantities at arbitrary position.
More...
#include <array_derivative3.h>
Class that computes the derivative of physical quantities at arbitrary position.
◆ derivative() [1/2]
template<class T >
static vec3<T> array_derivative3::derivative |
( |
const array3< T > & |
array, |
|
|
const vec3d & |
origin, |
|
|
double |
dx, |
|
|
const vec3d & |
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_derivative3::derivative |
( |
const array3< T > & |
array, |
|
|
const vec3d & |
p, |
|
|
T |
result[DIM3] |
|
) |
| |
|
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_derivative3::derivative_interpolate_coef |
( |
const shape3 & |
shape, |
|
|
const vec3d & |
p, |
|
|
vec3i |
indices[8], |
|
|
double |
coef[DIM3][8] |
|
) |
| |
|
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: