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

plb::AdvectionDiffusionBGKdynamics< T, Descriptor > Class Template Reference

BGK Advection-Diffusion dynamics. More...

#include <advectionDiffusionDynamics.h>

Inheritance diagram for plb::AdvectionDiffusionBGKdynamics< T, Descriptor >:
Collaboration diagram for plb::AdvectionDiffusionBGKdynamics< T, Descriptor >:

List of all members.

Public Member Functions

 AdvectionDiffusionBGKdynamics (T omega_)
 Constructor.
virtual
AdvectionDiffusionBGKdynamics
< T, Descriptor > * 
clone () const
 Clone the object on its dynamic type.
virtual int getId () const
 Return a unique ID for this class.
virtual void collide (Cell< T, Descriptor > &cell, BlockStatistics &statistics)
 Collision step.
virtual T computeEquilibrium (plint iPop, T rhoBar, Array< T, Descriptor< T >::d > const &j, T jSqr, T thetaBar=T()) const
 Compute equilibrium distribution function.
virtual plint numDecomposedVariables (plint order) const
 Number of variables required to decompose a population representation into moments.
virtual void decompose (Cell< T, Descriptor > const &cell, std::vector< T > &rawData, plint order) const
 Decompose from population representation into moment representation.
virtual void recompose (Cell< T, Descriptor > &cell, std::vector< T > const &rawData, plint order) const
 Recompose from moment representation to population representation.
virtual void rescale (std::vector< T > &rawData, T xDxInv, T xDt, plint order) const
 Change the space and time scales of the variables in moment representation.

Detailed Description

template<typename T, template< typename U > class Descriptor>
class plb::AdvectionDiffusionBGKdynamics< T, Descriptor >

BGK Advection-Diffusion dynamics.

This approach contains a slight error in the diffusion term.


Constructor & Destructor Documentation

template<typename T , template< typename U > class Descriptor>
plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::AdvectionDiffusionBGKdynamics ( omega_  )  [inline]

Constructor.

Parameters:
omega_ relaxation parameter, related to the dynamic viscosity

Member Function Documentation

template<typename T , template< typename U > class Descriptor>
AdvectionDiffusionBGKdynamics< T, Descriptor > * plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::clone (  )  const [inline, virtual]

Clone the object on its dynamic type.

Implements plb::Dynamics< T, Descriptor >.

template<typename T , template< typename U > class Descriptor>
void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::collide ( Cell< T, Descriptor > &  cell,
BlockStatistics statistics 
) [inline, virtual]
template<typename T , template< typename U > class Descriptor>
T plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::computeEquilibrium ( plint  iPop,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
jSqr,
thetaBar = T() 
) const [inline, virtual]

Compute equilibrium distribution function.

Parameters:
j The parameter j is defined as j = j_advDiff = rho_advDiff*u_fluid

Implements plb::Dynamics< T, Descriptor >.

template<typename T, template< typename U > class Descriptor>
virtual void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::decompose ( Cell< T, Descriptor > const &  cell,
std::vector< T > &  rawData,
plint  order 
) const [inline, virtual]

Decompose from population representation into moment representation.

Reimplemented from plb::AdvectionDiffusionDynamics< T, Descriptor >.

template<typename T , template< typename U > class Descriptor>
int plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::getId (  )  const [inline, virtual]

Return a unique ID for this class.

Reimplemented from plb::Dynamics< T, Descriptor >.

template<typename T, template< typename U > class Descriptor>
virtual plint plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::numDecomposedVariables ( plint  order  )  const [inline, virtual]

Number of variables required to decompose a population representation into moments.

Reimplemented from plb::AdvectionDiffusionDynamics< T, Descriptor >.

template<typename T, template< typename U > class Descriptor>
virtual void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::recompose ( Cell< T, Descriptor > &  cell,
std::vector< T > const &  rawData,
plint  order 
) const [inline, virtual]

Recompose from moment representation to population representation.

Reimplemented from plb::AdvectionDiffusionDynamics< T, Descriptor >.

template<typename T, template< typename U > class Descriptor>
virtual void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::rescale ( std::vector< T > &  rawData,
xDxInv,
xDt,
plint  order 
) const [inline, virtual]

Change the space and time scales of the variables in moment representation.

Reimplemented from plb::AdvectionDiffusionDynamics< T, Descriptor >.


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