OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::particles::resolved::population_momentum_exchange< T, 2, false > Struct Template Reference

#include <momentumExchangeForce.h>

+ Collaboration diagram for olb::particles::resolved::population_momentum_exchange< T, 2, false >:

Static Public Member Functions

static constexpr T calculate (T f1, T f2, T c, T pVel, T deltaR)
 

Detailed Description

template<typename T>
struct olb::particles::resolved::population_momentum_exchange< T, 2, false >

Definition at line 43 of file momentumExchangeForce.h.

Member Function Documentation

◆ calculate()

template<typename T >
static constexpr T olb::particles::resolved::population_momentum_exchange< T, 2, false >::calculate ( T f1,
T f2,
T c,
T pVel,
T deltaR )
inlinestaticconstexpr

Definition at line 44 of file momentumExchangeForce.h.

45 {
46 return (f1*(c-pVel) + f2*(c+pVel))*(1./deltaR) ;
47 }

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