OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
Avg< d, Field, Sys_eqs, impl > Class Template Reference

Average. More...

Detailed Description

template<unsigned int d, typename Field, typename Sys_eqs, unsigned int impl = CENTRAL>
class Avg< d, Field, Sys_eqs, impl >

Average.

Template Parameters
don which dimension average
Fieldwhich field average
implwhich implementation

Definition at line 31 of file Average.hpp.

#include <Average.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)
 Create the row of the Matrix. More...
 
static grid_key_dx< Sys_eqs::dims > position (grid_key_dx< Sys_eqs::dims > &pos, const grid_sm< Sys_eqs::dims, void > &gs, const openfpm::vector< comb< Sys_eqs::dims >> &s_pos=openfpm::vector< comb< Sys_eqs::dims >>())
 Calculate the position where the derivative is calculated. More...
 

Member Function Documentation

template<unsigned int d, typename Field, typename Sys_eqs, unsigned int impl = CENTRAL>
static grid_key_dx<Sys_eqs::dims> Avg< d, Field, Sys_eqs, impl >::position ( grid_key_dx< Sys_eqs::dims > &  pos,
const grid_sm< Sys_eqs::dims, void > &  gs,
const openfpm::vector< comb< Sys_eqs::dims >> &  s_pos = openfpm::vector<comb<Sys_eqs::dims>>() 
)
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

Parameters
posposition where we are calculating the derivative
gsGrid info
s_posstaggered position of the properties

Definition at line 53 of file Average.hpp.

template<unsigned int d, typename Field, typename Sys_eqs, unsigned int impl = CENTRAL>
static void Avg< d, Field, Sys_eqs, impl >::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 
)
inlinestaticprivate

Create the row of the Matrix.

Template Parameters
ord

Definition at line 38 of file Average.hpp.


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