Shiokaze Framework
A research-oriented fluid solver for computer graphics
array_derivative3 Class Reference

Class that computes the derivative of physical quantities at arbitrary position. More...

#include <array_derivative3.h>

Static Public Member Functions

static void derivative_interpolate_coef (const shape3 &shape, const vec3d &p, vec3i indices[8], double coef[DIM3][8])
 Get the coefficients for the gradient. More...
 
template<class T >
static void derivative (const array3< T > &array, const vec3d &p, T result[DIM3])
 Computes the the gradient of a physical quantity. More...
 
template<class T >
static vec3< T > derivative (const array3< T > &array, const vec3d &origin, double dx, const vec3d &p)
 Computes the the gradient of a physical quantity. More...
 

Detailed Description

Class that computes the derivative of physical quantities at arbitrary position.

Member Function Documentation

◆ 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]arrayGrid.
[in]originOrigin.
[in]dxGrid cell size.
[in]pPosition in physical space.
Returns
Gradient output.

◆ derivative() [2/2]

template<class T >
static void array_derivative3::derivative ( const array3< T > &  array,
const vec3d p,
result[DIM3] 
)
inlinestatic

Computes the the gradient of a physical quantity.

Parameters
[in]arrayGrid.
[in]pPosition in index space.
[out]resultGradient 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]shapeShape of the grid.
[in]pPosition in index space.
[out]indicesIndices output.
[out]coefCorresponding coefficents output.

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