OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION > Struct Template Reference

#include <forcing.h>

+ Collaboration diagram for olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >:

Public Types

using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 
using CollisionO = typename COLLISION::template type<DESCRIPTOR,MOMENTA,EQUILIBRIUM>
 

Public Member Functions

template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > apply (CELL &cell, PARAMETERS &parameters) any_platform
 

Detailed Description

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.

Member Typedef Documentation

◆ CollisionO

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
using olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::CollisionO = typename COLLISION::template type<DESCRIPTOR,MOMENTA,EQUILIBRIUM>

Definition at line 278 of file forcing.h.

◆ MomentaF

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
using olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::MomentaF = typename MOMENTA::template type<DESCRIPTOR>

Definition at line 277 of file forcing.h.

Member Function Documentation

◆ apply()

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::forcing::AllenCahn::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 284 of file forcing.h.

284 {
285 V phi = MomentaF().computeRho(cell);
286 CollisionO().apply(cell, parameters);
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>();
291 lbm<DESCRIPTOR>::addAllenCahnForce(cell, omega, force);
292 lbm<DESCRIPTOR>::addAllenCahnSource(cell, omega, source);
293 return {phi, util::normSqr<V,DESCRIPTOR::d>(u)};
294 };
auto normSqr(const ARRAY_LIKE &u) any_platform
Compute norm square of a d-dimensional vector.
Definition util.h:145
typename COLLISION::template type< DESCRIPTOR, MOMENTA, EQUILIBRIUM > CollisionO
Definition forcing.h:278
typename MOMENTA::template type< DESCRIPTOR > MomentaF
Definition forcing.h:277
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....
Definition lbm.h:589
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....
Definition lbm.h:604

References olb::lbm< DESCRIPTOR >::addAllenCahnForce(), olb::lbm< DESCRIPTOR >::addAllenCahnSource(), and olb::util::normSqr().

+ Here is the call graph for this function:

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