template<template< typename > typename Forced = momenta::Identity>
template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM, typename COLLISION>
struct olb::forcing::MCGuo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >
Definition at line 127 of file forcing.h.
template<template< typename > typename Forced = momenta::Identity>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::forcing::MCGuo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 133 of file forcing.h.
133 {
134 V rho, u[DESCRIPTOR::d];
135 MomentaF().computeRhoU(cell, rho, u);
137 const V omega = parameters.template get<descriptors::OMEGA>();
138 const auto force = cell.template getField<descriptors::FORCE>();
140 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
141 };
typename COLLISION::template type< DESCRIPTOR, Forced< MOMENTA >, EQUILIBRIUM > CollisionO
typename Forced< MOMENTA >::template type< DESCRIPTOR > MomentaF
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().