$treeview $search $mathjax
Palabos  Version 1.1
$projectbrief
$projectbrief
$searchbox

plb::offEquilibriumTemplates< T, Descriptor > Struct Template Reference

General first-order functions. More...

#include <offEquilibriumTemplates.h>

List of all members.

Static Public Member Functions

static T fromPiToFneq (plint iPop, Array< T, SymmetricTensor< T, Descriptor >::n > const &pi)
 Compute off-equilibrium part of the f's from the stress tensor Pi.
static T fromPiAndQtoFneq (plint iPop, Array< T, SymmetricTensor< T, Descriptor >::n > const &pi, Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > const &q)
static T fromStrainToFneq (plint iPop, Array< T, SymmetricTensor< T, Descriptor >::n > const &S, T density, T omega)
 Compute off-equilibrium part of the f's from the strain rate tensor S.

Detailed Description

template<typename T, template< typename U > class Descriptor>
struct plb::offEquilibriumTemplates< T, Descriptor >

General first-order functions.


Member Function Documentation

template<typename T , template< typename U > class Descriptor>
static T plb::offEquilibriumTemplates< T, Descriptor >::fromPiAndQtoFneq ( plint  iPop,
Array< T, SymmetricTensor< T, Descriptor >::n > const &  pi,
Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > const &  q 
) [inline, static]
template<typename T , template< typename U > class Descriptor>
static T plb::offEquilibriumTemplates< T, Descriptor >::fromPiToFneq ( plint  iPop,
Array< T, SymmetricTensor< T, Descriptor >::n > const &  pi 
) [inline, static]

Compute off-equilibrium part of the f's from the stress tensor Pi.

Implements the following formula (with Einstein index contraction): /f[ f_i^{neq} = t_i / (2 c_s^4) * (c_{ia} c_{ib} - c_s^2 {ab}) {ab} /f] By Pi we mean the tensor computed from the off-equilibrium functions: /f[ = c_i c_i f_i^{neq} = c_i c_i f_i - u u - c_s^2 \ Id /f]

template<typename T , template< typename U > class Descriptor>
static T plb::offEquilibriumTemplates< T, Descriptor >::fromStrainToFneq ( plint  iPop,
Array< T, SymmetricTensor< T, Descriptor >::n > const &  S,
density,
omega 
) [inline, static]

Compute off-equilibrium part of the f's from the strain rate tensor S.

Implements the following formula: /f[ f_i^{neq} = - t_i / (c_s^2) * (c_{ia} c_{ib} - c_s^2 {ab}) S_{ab} /f] By S we mean the tensor computed from the velocity gradients: /f[ S_{} = 1/2 ( ( u_) + ( u_) ) /f]


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