OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
olb::forcing::Guo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION > Struct Template Reference

#include <forcing.h>

+ Collaboration diagram for olb::forcing::Guo< 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::Forced>
template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM, typename COLLISION>
struct olb::forcing::Guo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >

Definition at line 50 of file forcing.h.

Member Typedef Documentation

◆ CollisionO

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

Definition at line 52 of file forcing.h.

◆ MomentaF

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

Definition at line 51 of file forcing.h.

Member Function Documentation

◆ apply()

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::Guo< Forced >::combined_collision< DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 58 of file forcing.h.

58 {
59 V rho, u[DESCRIPTOR::d];
60 MomentaF().computeRhoU(cell, rho, u);
61 CollisionO().apply(cell, parameters);
62 const V omega = parameters.template get<descriptors::OMEGA>();
63 const auto force = cell.template getField<descriptors::FORCE>();
64 lbm<DESCRIPTOR>::addExternalForce(cell, rho, u, omega, force);
65 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
66 };
typename Forced< MOMENTA >::template type< DESCRIPTOR > MomentaF
Definition forcing.h:51
typename COLLISION::template type< DESCRIPTOR, Forced< MOMENTA >, EQUILIBRIUM > CollisionO
Definition forcing.h:52
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:463

References olb::lbm< DESCRIPTOR >::addExternalForce().

+ Here is the call graph for this function:

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