LBIBCell
 All Classes Functions Variables Friends Pages
LbmLib::solver::AbstractForceModel Class Referenceabstract

The AbstractForceModel class inherit from this base class. More...

#include <BaseForceModel.hpp>

Inheritance diagram for LbmLib::solver::AbstractForceModel:
LbmLib::solver::GuoZhengShi2002ForceModel LbmLib::solver::Luo1993ForceModel LbmLib::solver::FluidSolver

Protected Member Functions

virtual void computeForce (const double tau, const double rho, const Field< double > u, const Field< double > f, std::vector< double > &fi)=0
 computeForce More...
 
virtual void computeVelocity (const double rho, const std::array< double, 9 > &fi, const Field< double > f, Field< double > &u)=0
 computeVelocity since this operation depends on the force model. More...
 

Detailed Description

The AbstractForceModel class inherit from this base class.

Definition at line 35 of file BaseForceModel.hpp.

Member Function Documentation

virtual void LbmLib::solver::AbstractForceModel::computeForce ( const double  tau,
const double  rho,
const Field< double >  u,
const Field< double >  f,
std::vector< double > &  fi 
)
protectedpure virtual

computeForce

Parameters
tauThe relaxation time.
rhoThe local fluid density.
uThe local velocity.
fThe local force.
fiThe vector where the force contributions are stored and returned.

Implemented in LbmLib::solver::Luo1993ForceModel, and LbmLib::solver::GuoZhengShi2002ForceModel.

virtual void LbmLib::solver::AbstractForceModel::computeVelocity ( const double  rho,
const std::array< double, 9 > &  fi,
const Field< double >  f,
Field< double > &  u 
)
protectedpure virtual

computeVelocity since this operation depends on the force model.

Parameters
rhoThe local fluid density.
fiThe reference to the array of 9 distribution functions.
fThe local force field.
uThe reference to the velocity vector where the result will be stored.

Implemented in LbmLib::solver::Luo1993ForceModel, and LbmLib::solver::GuoZhengShi2002ForceModel.


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