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

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

Density and Velocity are stored inside dynamics. More...

#include <boundaryDynamics.h>

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

List of all members.

Public Member Functions

 StoreDensityAndVelocityDynamics (Dynamics< T, Descriptor > *baseDynamics_, bool automaticPrepareCollision_=true)
 StoreDensityAndVelocityDynamics (HierarchicUnserializer &unserializer)
virtual
StoreDensityAndVelocityDynamics
< T, Descriptor > * 
clone () const
 Clone the object, based on its dynamic type.
virtual int getId () const
 Return a unique ID for this class.
virtual void serialize (HierarchicSerializer &serializer) const
 Serialize the dynamics object.
virtual void unserialize (HierarchicUnserializer &unserializer)
 Un-Serialize the dynamics object.
virtual T computeDensity (Cell< T, Descriptor > const &cell) const
 Compute the local particle density in lattice units.
virtual void computeVelocity (Cell< T, Descriptor > const &cell, Array< T, Descriptor< T >::d > &velocity_) const
 Compute the local fluid velocity in lattice units.
virtual void defineDensity (Cell< T, Descriptor > &cell, T rho_)
 Define density. Stores the value inside the Dynamics object.
virtual void defineVelocity (Cell< T, Descriptor > &cell, Array< T, Descriptor< T >::d > const &velocity_)
 Define velocity. Stores value inside Dynamics object.
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.

Protected Attributes

rhoBar
Array< T, Descriptor< T >::d > velocity

Detailed Description

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

Density and Velocity are stored inside dynamics.


Constructor & Destructor Documentation

template<typename T , template< typename U > class Descriptor>
plb::StoreDensityAndVelocityDynamics< T, Descriptor >::StoreDensityAndVelocityDynamics ( Dynamics< T, Descriptor > *  baseDynamics_,
bool  automaticPrepareCollision_ = true 
) [inline]
template<typename T , template< typename U > class Descriptor>
plb::StoreDensityAndVelocityDynamics< T, Descriptor >::StoreDensityAndVelocityDynamics ( HierarchicUnserializer unserializer  )  [inline]

Member Function Documentation

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

Clone the object, based on its dynamic type.

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

Reimplemented in plb::EquilibriumDensityAndVelocityBoundaryDynamics< T, Descriptor >.

template<typename T , template< typename U > class Descriptor>
T plb::StoreDensityAndVelocityDynamics< T, Descriptor >::computeDensity ( Cell< T, Descriptor > const &  cell  )  const [inline, virtual]

Compute the local particle density in lattice units.

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

References plb::StoreDensityAndVelocityDynamics< T, Descriptor >::rhoBar.

template<typename T , template< typename U > class Descriptor>
T plb::StoreDensityAndVelocityDynamics< T, Descriptor >::computeRhoBar ( Cell< T, Descriptor > const &  cell  )  const [inline, virtual]
template<typename T , template< typename U > class Descriptor>
void plb::StoreDensityAndVelocityDynamics< T, Descriptor >::computeRhoBarJ ( Cell< T, Descriptor > const &  cell,
T &  rhoBar_,
Array< T, Descriptor< T >::d > &  j 
) const [inline, virtual]
template<typename T , template< typename U > class Descriptor>
void plb::StoreDensityAndVelocityDynamics< T, Descriptor >::computeVelocity ( Cell< T, Descriptor > const &  cell,
Array< T, Descriptor< T >::d > &  velocity_ 
) const [inline, virtual]
template<typename T , template< typename U > class Descriptor>
void plb::StoreDensityAndVelocityDynamics< T, Descriptor >::defineDensity ( Cell< T, Descriptor > &  cell,
rho_ 
) [inline, virtual]

Define density. Stores the value inside the Dynamics object.

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

References plb::StoreDensityAndVelocityDynamics< T, Descriptor >::rhoBar.

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

Define velocity. Stores value inside Dynamics object.

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

References plb::StoreDensityAndVelocityDynamics< T, Descriptor >::velocity.

template<typename T , template< typename U > class Descriptor>
int plb::StoreDensityAndVelocityDynamics< T, Descriptor >::getId (  )  const [inline, virtual]
template<typename T , template< typename U > class Descriptor>
void plb::StoreDensityAndVelocityDynamics< T, Descriptor >::serialize ( HierarchicSerializer serializer  )  const [inline, virtual]

Member Data Documentation


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