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

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

Implementation of O(Ma^2) Regularized BGK dynamics without the 1/rho in front of the non-linear term. More...

#include <isoThermalDynamics.h>

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

List of all members.

Public Member Functions

 IncRegularizedBGKdynamics (T omega_)
virtual
IncRegularizedBGKdynamics< T,
Descriptor > * 
clone () const
 Clone the object on its dynamic type.
virtual int getId () const
 Return a unique ID for this class.
virtual void computeVelocity (Cell< T, Descriptor > const &cell, Array< T, Descriptor< T >::d > &u) const
 Velocity is equal to j, not u.
virtual void computeRhoBarJPiNeq (Cell< T, Descriptor > const &cell, T &rhoBar, Array< T, Descriptor< T >::d > &j, Array< T, SymmetricTensor< T, Descriptor >::n > &PiNeq) const
 For PiNeq, subtract equilibrium term jj instead of invRho*jj.
virtual void collide (Cell< T, Descriptor > &cell, BlockStatistics &statistics_)
 Implementation of the collision step.
virtual void collide (Cell< T, Descriptor > &cell, T rhoBar, Array< T, Descriptor< T >::d > const &j, T thetaBar, BlockStatistics &stat)
 Implementation of the collision step, with imposed macroscopic variables.
virtual T computeEquilibrium (plint iPop, T rhoBar, Array< T, Descriptor< T >::d > const &j, T jSqr, T thetaBar=T()) const
 Compute equilibrium distribution function.
bool velIsJ () const

Detailed Description

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

Implementation of O(Ma^2) Regularized BGK dynamics without the 1/rho in front of the non-linear term.


Constructor & Destructor Documentation

template<typename T , template< typename U > class Descriptor>
plb::IncRegularizedBGKdynamics< T, Descriptor >::IncRegularizedBGKdynamics ( omega_  )  [inline]
Parameters:
omega_ relaxation parameter, related to the dynamic viscosity

Member Function Documentation

template<typename T , template< typename U > class Descriptor>
IncRegularizedBGKdynamics< T, Descriptor > * plb::IncRegularizedBGKdynamics< 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::IncRegularizedBGKdynamics< T, Descriptor >::collide ( Cell< T, Descriptor > &  cell,
rhoBar,
Array< T, Descriptor< T >::d > const &  j,
thetaBar,
BlockStatistics stat 
) [inline, virtual]

Implementation of the collision step, with imposed macroscopic variables.

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

References plb::flatWall::compute_PiNeq(), and plb::BasicBulkDynamics< T, Descriptor >::getOmega().

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

Compute equilibrium distribution function.

Implements plb::Dynamics< T, Descriptor >.

template<typename T , template< typename U > class Descriptor>
void plb::IncRegularizedBGKdynamics< T, Descriptor >::computeRhoBarJPiNeq ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
Array< T, Descriptor< T >::d > &  j,
Array< T, SymmetricTensor< T, Descriptor >::n > &  PiNeq 
) const [inline, virtual]

For PiNeq, subtract equilibrium term jj instead of invRho*jj.

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

template<typename T , template< typename U > class Descriptor>
void plb::IncRegularizedBGKdynamics< T, Descriptor >::computeVelocity ( Cell< T, Descriptor > const &  cell,
Array< T, Descriptor< T >::d > &  u 
) const [inline, virtual]

Velocity is equal to j, not u.

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

References plb::BasicBulkDynamics< T, Descriptor >::computeRhoBarJ().

template<typename T , template< typename U > class Descriptor>
int plb::IncRegularizedBGKdynamics< 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>
bool plb::IncRegularizedBGKdynamics< T, Descriptor >::velIsJ (  )  const [inline, virtual]

Say if velocity in this dynamics is computed as "j" (the order-1 moment of the populations) or as "j/rho".

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


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