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

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

#include <momentTemplates.h>

List of all members.

Static Public Member Functions

static T get_rhoBar (Cell< T, Descriptor > const &cell)
static void get_j (Cell< T, Descriptor > const &cell, Array< T, Descriptor< T >::d > &j)
static T get_eBar (Cell< T, Descriptor > const &cell)
static void get_rhoBar_j (Cell< T, Descriptor > const &cell, T &rhoBar, Array< T, Descriptor< T >::d > &j)
static void get_rhoBar_j_thetaBar (Cell< T, Descriptor > const &cell, T &rhoBar, Array< T, Descriptor< T >::d > &j, T &thetaBar)
static T compute_rho (Cell< T, Descriptor > const &cell)
static void compute_uLb (Cell< T, Descriptor > const &cell, Array< T, Descriptor< T >::d > &uLb)
 Get order-1 moment of f's, divided by rho ("lattice-boltzmann-velocity", or "uLb").
static void compute_rho_uLb (Cell< T, Descriptor > const &cell, T &rho, Array< T, Descriptor< T >::d > &uLb)
static T compute_e (Cell< T, Descriptor > const &cell)
static T compute_rhoThetaBar (Cell< T, Descriptor > const &cell, T rhoBar, T jSqr)
static void compute_rho_rhoThetaBar (Cell< T, Descriptor > const &cell, T &rho, T &rhoThetaBar)
static T compute_theta (Cell< T, Descriptor > const &cell, T rhoBar, T jSqr)
static T compute_rhoEpsilon (Cell< T, Descriptor > const &cell, T rhoBar, T jSqr)
static void compute_PiNeq (Cell< T, Descriptor > const &cell, T rhoBar, Array< T, Descriptor< T >::d > const &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq, bool incompr=false)
static void compute_thermal_PiNeq (Cell< T, Descriptor > const &cell, T rhoBar, T thetaBar, Array< T, Descriptor< T >::d > const &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq)
static void compute_rhoBar_j_PiNeq (Cell< T, Descriptor > const &cell, T &rhoBar, Array< T, Descriptor< T >::d > &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq, bool incompr=false)
static void compute_rhoBar_thetaBar_j_PiNeq (Cell< T, Descriptor > const &cell, T &rhoBar, T &thetaBar, Array< T, Descriptor< T >::d > &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq)
static void compute_rhoBar_thetaBar_j_PiNeq_qNeq (Cell< T, Descriptor > const &cell, T &rhoBar, T &thetaBar, Array< T, Descriptor< T >::d > &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq, Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > &qNeq)
static void compute_P (Cell< T, Descriptor > const &cell, T rhoBar, Array< T, Descriptor< T >::d > const &j, Array< T, SymmetricTensor< T, Descriptor >::n > &P)
 Get local, order-2 moment: sum_i (c_i-uLb)(c_i-uLb) f_i = -rho uLb uLb + sum_i c_i c_i f_i.
static void modifyJ (T &cell, Array< T, Descriptor< T >::d > const &newJ)
static void compute_Qneq (Cell< T, Descriptor > const &cell, T rhoBar, Array< T, Descriptor< T >::d > const &j, T thetaBar, Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > &qNeq)
static void compute_heat_flux (Cell< T, Descriptor > const &cell, T rhoBar, Array< T, Descriptor< T >::d > const &j, T thetaBar, Array< T, Descriptor< T >::d > &q)

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


Member Function Documentation

template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::compute_e ( Cell< T, Descriptor > const &  cell  )  [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_heat_flux ( Cell< T, Descriptor > const &  cell,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
thetaBar,
Array< T, Descriptor< T >::d > &  q 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_P ( Cell< T, Descriptor > const &  cell,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  P 
) [inline, static]

Get local, order-2 moment: sum_i (c_i-uLb)(c_i-uLb) f_i = -rho uLb uLb + sum_i c_i c_i f_i.

The full stress tensor Pi is equal to P + rho u u. The deviatoric stress tensor sigma is equal to P - c_s^2 rho I (

See also:
compute_Pi_neq)

References plb::Cell< T, Descriptor >::getRawPopulations().

template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_PiNeq ( Cell< T, Descriptor > const &  cell,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq,
bool  incompr = false 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_Qneq ( Cell< T, Descriptor > const &  cell,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
thetaBar,
Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > &  qNeq 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::compute_rho ( Cell< T, Descriptor > const &  cell  )  [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_rho_rhoThetaBar ( Cell< T, Descriptor > const &  cell,
T &  rho,
T &  rhoThetaBar 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_rho_uLb ( Cell< T, Descriptor > const &  cell,
T &  rho,
Array< T, Descriptor< T >::d > &  uLb 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_rhoBar_j_PiNeq ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
Array< T, Descriptor< T >::d > &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq,
bool  incompr = false 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_rhoBar_thetaBar_j_PiNeq ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
T &  thetaBar,
Array< T, Descriptor< T >::d > &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_rhoBar_thetaBar_j_PiNeq_qNeq ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
T &  thetaBar,
Array< T, Descriptor< T >::d > &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq,
Array< T, SymmetricRankThreeTensor< T, Descriptor >::n > &  qNeq 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::compute_rhoEpsilon ( Cell< T, Descriptor > const &  cell,
rhoBar,
jSqr 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::compute_rhoThetaBar ( Cell< T, Descriptor > const &  cell,
rhoBar,
jSqr 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_thermal_PiNeq ( Cell< T, Descriptor > const &  cell,
rhoBar,
thetaBar,
Array< T, Descriptor< T >::d > const &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::compute_theta ( Cell< T, Descriptor > const &  cell,
rhoBar,
jSqr 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::compute_uLb ( Cell< T, Descriptor > const &  cell,
Array< T, Descriptor< T >::d > &  uLb 
) [inline, static]

Get order-1 moment of f's, divided by rho ("lattice-boltzmann-velocity", or "uLb").

In many cases, such as the plain BGK model, this is equal to to physical velocity, but in other cases not. In presence of a body force g for example, the velocity is uLb + g/2.

References plb::Cell< T, Descriptor >::getRawPopulations().

template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::get_eBar ( Cell< T, Descriptor > const &  cell  )  [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::get_j ( Cell< T, Descriptor > const &  cell,
Array< T, Descriptor< T >::d > &  j 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static T plb::momentTemplates< T, Descriptor >::get_rhoBar ( Cell< T, Descriptor > const &  cell  )  [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::get_rhoBar_j ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
Array< T, Descriptor< T >::d > &  j 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::get_rhoBar_j_thetaBar ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
Array< T, Descriptor< T >::d > &  j,
T &  thetaBar 
) [inline, static]
template<typename T, template< typename U > class Descriptor>
static void plb::momentTemplates< T, Descriptor >::modifyJ ( T &  cell,
Array< T, Descriptor< T >::d > const &  newJ 
) [inline, static]

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