$treeview $search $mathjax
|
Palabos
Version 1.1
$projectbrief
|
$projectbrief
|
$searchbox |
BGK Advection-Diffusion dynamics. More...
#include <advectionDiffusionDynamics.h>


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. | |
BGK Advection-Diffusion dynamics.
This approach contains a slight error in the diffusion term.
| plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::AdvectionDiffusionBGKdynamics | ( | T | omega_ | ) | [inline] |
Constructor.
| omega_ | relaxation parameter, related to the dynamic viscosity |
| AdvectionDiffusionBGKdynamics< T, Descriptor > * plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::clone | ( | ) | const [inline, virtual] |
Clone the object on its dynamic type.
Implements plb::Dynamics< T, Descriptor >.
| void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::collide | ( | Cell< T, Descriptor > & | cell, | |
| BlockStatistics & | statistics | |||
| ) | [inline, virtual] |
Collision step.
Implements plb::Dynamics< T, Descriptor >.
References plb::gatherStatistics(), plb::BasicBulkDynamics< T, Descriptor >::getOmega(), and plb::Cell< T, Descriptor >::takesStatistics().
| T plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::computeEquilibrium | ( | plint | iPop, | |
| T | rhoBar, | |||
| Array< T, Descriptor< T >::d > const & | j, | |||
| T | jSqr, | |||
| T | thetaBar = T() | |||
| ) | const [inline, virtual] |
Compute equilibrium distribution function.
| j | The parameter j is defined as j = j_advDiff = rho_advDiff*u_fluid |
Implements plb::Dynamics< T, 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 >.
| int plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::getId | ( | ) | const [inline, virtual] |
Return a unique ID for this class.
Reimplemented from plb::Dynamics< T, 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 >.
| 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 >.
| virtual void plb::AdvectionDiffusionBGKdynamics< T, Descriptor >::rescale | ( | std::vector< T > & | rawData, | |
| T | xDxInv, | |||
| T | xDt, | |||
| plint | order | |||
| ) | const [inline, virtual] |
Change the space and time scales of the variables in moment representation.
Reimplemented from plb::AdvectionDiffusionDynamics< T, Descriptor >.
1.6.3
1.6.3