template<template< typename > typename Forced = momenta::Forced>
template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM, typename COLLISION>
struct olb::forcing::Liang< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >
Definition at line 163 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::Liang< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 175 of file forcing.h.
175 {
176 V u[DESCRIPTOR::d];
179 const V omega = parameters.template get<descriptors::OMEGA>();
180 const auto force = cell.template getField<descriptors::FORCE>();
181 const auto rho = cell.template getField<descriptors::RHO>();
182 const auto gradRho = cell.template getField<descriptors::NABLARHO>();
185 };
auto normSqr(const ARRAY_LIKE &u) any_platform
Compute norm square of a d-dimensional vector.
typename Forced< MOMENTA >::template type< DESCRIPTOR > MomentaF
typename COLLISION::template type< DESCRIPTOR, Forced< MOMENTA >, EQUILIBRIUM > CollisionO
static void addLiangForce(CELL &cell, const RHO &rho, const NABLARHO &nablarho, const U &u, const OMEGA &omega, const FORCE &force) any_platform
Add a force term after BGK collision for incompressible binary fluid model (Allen-Cahn phase-field) f...
References olb::lbm< DESCRIPTOR >::addLiangForce(), and olb::util::normSqr().