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

#include <forcing.h>

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

Public Types

using MomentaF = typename Forced<MOMENTA>::template type<DESCRIPTOR>
 
using CollisionO = typename COLLISION::template type<DESCRIPTOR,Forced<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<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 130 of file forcing.h.

Member Typedef Documentation

◆ CollisionO

template<template< typename > typename Forced = momenta::Identity>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
using olb::forcing::MCGuo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::CollisionO = typename COLLISION::template type<DESCRIPTOR,Forced<MOMENTA>,EQUILIBRIUM>

Definition at line 132 of file forcing.h.

◆ MomentaF

template<template< typename > typename Forced = momenta::Identity>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM , typename COLLISION >
using olb::forcing::MCGuo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::MomentaF = typename Forced<MOMENTA>::template type<DESCRIPTOR>

Definition at line 131 of file forcing.h.

Member Function Documentation

◆ apply()

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 136 of file forcing.h.

136 {
137 V rho, u[DESCRIPTOR::d];
138 MomentaF().computeRhoU(cell, rho, u);
139 CollisionO().apply(cell, parameters);
140 const V omega = parameters.template get<descriptors::OMEGA>();
141 const auto force = cell.template getField<descriptors::FORCE>();
142 lbm<DESCRIPTOR>::addExternalForce(cell, rho, u, omega, force);
143 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
144 };
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, Forced< MOMENTA >, EQUILIBRIUM > CollisionO
Definition forcing.h:132
typename Forced< MOMENTA >::template type< DESCRIPTOR > MomentaF
Definition forcing.h:131
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.
Definition lbm.h:545

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

+ Here is the call graph for this function:

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