walberla::lbm::force_model::Correction< MomentumDensityField_T > Class Template Reference

Detailed Description

template<typename MomentumDensityField_T>
class walberla::lbm::force_model::Correction< MomentumDensityField_T >

[20]

#include <ForceModel.h>

Public Types

using tag = Correction_tag
 
using DirectionIndependentTerms_T = Vector3< real_t >
 

Public Member Functions

 Correction (const BlockDataID &previousRhoVelocityId)
 
void pack (mpi::SendBuffer &buffer) const
 
void unpack (mpi::RecvBuffer &buffer)
 
void configure (IBlock &block, StructuredBlockStorage &)
 
const Vector3< real_t > & forceDensity () const
 
const Vector3< real_t > & forceDensity (const cell_idx_t, const cell_idx_t, const cell_idx_t) const
 
template<typename LatticeModel_T >
Vector3< real_tdirectionIndependentTerms (const cell_idx_t x, const cell_idx_t y, const cell_idx_t z, const Vector3< real_t > &velocity, const real_t rho, const real_t omega, const real_t, const real_t) const
 
template<typename LatticeModel_T >
real_t forceTerm (const cell_idx_t, const cell_idx_t, const cell_idx_t, const Vector3< real_t > &, const real_t, const Vector3< real_t > &commonTerm, const real_t w, const real_t cx, const real_t cy, const real_t cz, const real_t, const real_t, const real_t) const
 
bool setConstantBodyForceIfPossible (const Vector3< real_t > &, const uint_t=uint_t(0))
 

Static Public Attributes

static const bool shiftMacVel = false
 
static const bool shiftEquVel = false
 
static const bool constant = true
 

Private Attributes

Vector3< real_tforceDensity_
 
BlockDataID previousRhoVelocityId_
 
MomentumDensityField_T * previousRhoVelocity_
 

Member Typedef Documentation

◆ DirectionIndependentTerms_T

template<typename MomentumDensityField_T >
using walberla::lbm::force_model::Correction< MomentumDensityField_T >::DirectionIndependentTerms_T = Vector3<real_t>

◆ tag

template<typename MomentumDensityField_T >
using walberla::lbm::force_model::Correction< MomentumDensityField_T >::tag = Correction_tag

Constructor & Destructor Documentation

◆ Correction()

template<typename MomentumDensityField_T >
walberla::lbm::force_model::Correction< MomentumDensityField_T >::Correction ( const BlockDataID previousRhoVelocityId)
inline

Member Function Documentation

◆ configure()

template<typename MomentumDensityField_T >
void walberla::lbm::force_model::Correction< MomentumDensityField_T >::configure ( IBlock block,
StructuredBlockStorage  
)
inline

◆ directionIndependentTerms()

template<typename MomentumDensityField_T >
template<typename LatticeModel_T >
Vector3<real_t> walberla::lbm::force_model::Correction< MomentumDensityField_T >::directionIndependentTerms ( const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z,
const Vector3< real_t > &  velocity,
const real_t  rho,
const real_t  omega,
const  real_t,
const  real_t 
) const
inline

◆ forceDensity() [1/2]

template<typename MomentumDensityField_T >
const Vector3< real_t >& walberla::lbm::force_model::Correction< MomentumDensityField_T >::forceDensity ( ) const
inline

◆ forceDensity() [2/2]

template<typename MomentumDensityField_T >
const Vector3< real_t >& walberla::lbm::force_model::Correction< MomentumDensityField_T >::forceDensity ( const  cell_idx_t,
const  cell_idx_t,
const  cell_idx_t 
) const
inline

◆ forceTerm()

template<typename MomentumDensityField_T >
template<typename LatticeModel_T >
real_t walberla::lbm::force_model::Correction< MomentumDensityField_T >::forceTerm ( const  cell_idx_t,
const  cell_idx_t,
const  cell_idx_t,
const Vector3< real_t > &  ,
const  real_t,
const Vector3< real_t > &  commonTerm,
const real_t  w,
const real_t  cx,
const real_t  cy,
const real_t  cz,
const  real_t,
const  real_t,
const  real_t 
) const
inline

◆ pack()

template<typename MomentumDensityField_T >
void walberla::lbm::force_model::Correction< MomentumDensityField_T >::pack ( mpi::SendBuffer buffer) const
inline

◆ setConstantBodyForceIfPossible()

template<typename MomentumDensityField_T >
bool walberla::lbm::force_model::Correction< MomentumDensityField_T >::setConstantBodyForceIfPossible ( const Vector3< real_t > &  ,
const  uint_t = uint_t(0) 
)
inline

◆ unpack()

template<typename MomentumDensityField_T >
void walberla::lbm::force_model::Correction< MomentumDensityField_T >::unpack ( mpi::RecvBuffer buffer)
inline

Member Data Documentation

◆ constant

template<typename MomentumDensityField_T >
const bool walberla::lbm::force_model::Correction< MomentumDensityField_T >::constant = true
static

◆ forceDensity_

template<typename MomentumDensityField_T >
Vector3< real_t > walberla::lbm::force_model::Correction< MomentumDensityField_T >::forceDensity_
private

◆ previousRhoVelocity_

template<typename MomentumDensityField_T >
MomentumDensityField_T* walberla::lbm::force_model::Correction< MomentumDensityField_T >::previousRhoVelocity_
private

◆ previousRhoVelocityId_

template<typename MomentumDensityField_T >
BlockDataID walberla::lbm::force_model::Correction< MomentumDensityField_T >::previousRhoVelocityId_
private

◆ shiftEquVel

template<typename MomentumDensityField_T >
const bool walberla::lbm::force_model::Correction< MomentumDensityField_T >::shiftEquVel = false
static

◆ shiftMacVel

template<typename MomentumDensityField_T >
const bool walberla::lbm::force_model::Correction< MomentumDensityField_T >::shiftMacVel = false
static

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