Derivative second order on h (spacing) More...
Derivative second order on h (spacing)
d | on which dimension derive |
Field | which field derive |
impl | which implementation |
Definition at line 28 of file Derivative.hpp.
#include <Derivative.hpp>
Static Private Member Functions | |
static void | value (const grid_key_dx< Sys_eqs::dims > &pos, const grid_sm< Sys_eqs::dims, void > &gs, std::unordered_map< long int, typename Sys_eqs::stype > &cols, typename Sys_eqs::stype coeff) |
Calculate which colums of the Matrix are non zero. | |
static grid_key_dx< Sys_eqs::dims > | position (grid_key_dx< Sys_eqs::dims > &pos, const grid_sm< Sys_eqs::dims, void > &gs, const comb< Sys_eqs::dims >(&s_pos)[Sys_eqs::nvar]) |
Calculate the position where the derivative is calculated. | |
|
inlinestaticprivate |
Calculate the position where the derivative is calculated.
In case of non staggered case this function just return a null grid_key, in case of staggered, it calculate how the operator shift the calculation in the cell
pos | position where we are calculating the derivative |
gs | Grid info |
s_pos | staggered position of the properties |
Definition at line 59 of file Derivative.hpp.
|
inlinestaticprivate |
Calculate which colums of the Matrix are non zero.
pos | position where the derivative is calculated |
gs | Grid info |
cols | non-zero colums calculated by the function |
coeff | coefficent (constant in front of the derivative) |
Definition at line 42 of file Derivative.hpp.