template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM, typename COLLISION>
struct olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >
Definition at line 276 of file forcing.h.
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
Definition at line 284 of file forcing.h.
284 {
285 V phi =
MomentaF().computeRho(cell);
287 const V omega = parameters.template get<descriptors::OMEGA>();
288 const auto force = cell.template getField<descriptors::FORCE>();
289 const auto u = cell.template getField<descriptors::VELOCITY>();
290 const auto source = cell.template getField<descriptors::SOURCE>();
294 };
auto normSqr(const ARRAY_LIKE &u) any_platform
Compute norm square of a d-dimensional vector.
typename COLLISION::template type< DESCRIPTOR, MOMENTA, EQUILIBRIUM > CollisionO
typename MOMENTA::template type< DESCRIPTOR > MomentaF
static void addAllenCahnForce(CELL &cell, const OMEGA &omega, const FORCE &force) any_platform
Add a force term after BGK collision for constructing local Allen-Cahn-equation from Liang et al....
static void addAllenCahnSource(CELL &cell, const OMEGA &omega, const SOURCE &source) any_platform
Add a source term after BGK collision for constructing non-local Allen-Cahn-equation from Liu et al....
References olb::lbm< DESCRIPTOR >::addAllenCahnForce(), olb::lbm< DESCRIPTOR >::addAllenCahnSource(), and olb::util::normSqr().