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

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

Implementation of O(Ma^2) BGK dynamics, density and momentum taken from external scalars. More...

#include <isoThermalDynamics.h>

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

List of all members.

Public Member Functions

 ExternalMomentRegularizedBGKdynamics (T omega_)
virtual
ExternalMomentRegularizedBGKdynamics
< 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_)
 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.
virtual void computeVelocity (Cell< T, Descriptor > const &cell, Array< T, Descriptor< T >::d > &u) const
virtual T computeRhoBar (Cell< T, Descriptor > const &cell) const
 Compute order-0 moment rho-bar.
virtual void computeRhoBarJ (Cell< T, Descriptor > const &cell, T &rhoBar, Array< T, Descriptor< T >::d > &j) const
 Compute order-0 moment rho-bar and order-1 moment j.

Detailed Description

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

Implementation of O(Ma^2) BGK dynamics, density and momentum taken from external scalars.


Constructor & Destructor Documentation

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

Member Function Documentation

template<typename T , template< typename U > class Descriptor>
ExternalMomentRegularizedBGKdynamics< T, Descriptor > * plb::ExternalMomentRegularizedBGKdynamics< 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::ExternalMomentRegularizedBGKdynamics< 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::ExternalMomentRegularizedBGKdynamics< T, Descriptor >::collide ( Cell< T, Descriptor > &  cell,
BlockStatistics statistics_ 
) [inline, virtual]
template<typename T , template< typename U > class Descriptor>
T plb::ExternalMomentRegularizedBGKdynamics< 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>
T plb::ExternalMomentRegularizedBGKdynamics< T, Descriptor >::computeRhoBar ( Cell< T, Descriptor > const &  cell  )  const [inline, virtual]

Compute order-0 moment rho-bar.

Accesses rhoBar from external scalar.

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

template<typename T , template< typename U > class Descriptor>
void plb::ExternalMomentRegularizedBGKdynamics< T, Descriptor >::computeRhoBarJ ( Cell< T, Descriptor > const &  cell,
T &  rhoBar,
Array< T, Descriptor< T >::d > &  j 
) const [inline, virtual]

Compute order-0 moment rho-bar and order-1 moment j.

Accesses rhoBar and j from external scalar.

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

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

Accesses velocity from external scalar.

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

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

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

Return a unique ID for this class.

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


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