template<template< typename > typename Forced = momenta::Forced>
template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM, typename COLLISION>
struct olb::forcing::Guo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >
Definition at line 50 of file forcing.h.
template<template< typename > typename Forced = momenta::Forced>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::forcing::Guo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 58 of file forcing.h.
58 {
59 V rho, u[DESCRIPTOR::d];
60 MomentaF().computeRhoU(cell, rho, u);
62 const V omega = parameters.template get<descriptors::OMEGA>();
63 const auto force = cell.template getField<descriptors::FORCE>();
65 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
66 };
typename Forced< MOMENTA >::template type< DESCRIPTOR > MomentaF
typename COLLISION::template type< DESCRIPTOR, Forced< MOMENTA >, EQUILIBRIUM > CollisionO
static void addExternalForce(CELL &cell, const RHO &rho, const U &u, const OMEGA &omega, const FORCE &force) any_platform
Add a force term after BGK collision.
References olb::lbm< DESCRIPTOR >::addExternalForce().