OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::BulkMomentum Struct Reference

Standard computation for momentum in the bulk as first moment of the population. More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::BulkMomentum:

Public Member Functions

template<typename TYPE , typename CELL , typename J , typename DESCRIPTOR = typename CELL::descriptor_t>
void compute (CELL &cell, J &j) any_platform
 
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void computeU (CELL &cell, U &u) any_platform
 
template<typename TYPE , typename CELL , typename U >
void define (CELL &cell, const U &u) any_platform
 
template<typename TYPE , typename CELL >
void initialize (CELL &cell) any_platform
 
template<typename TYPE , typename CELL , typename U >
void inverseShift (CELL &cell, U &u) any_platform
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

Standard computation for momentum in the bulk as first moment of the population.

Applies the methods from lbHelpers.

Definition at line 458 of file elements.h.

Member Function Documentation

◆ compute()

template<typename TYPE , typename CELL , typename J , typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::BulkMomentum::compute ( CELL & cell,
J & j )
inline

Definition at line 461 of file elements.h.

462 {
464 }
static void computeJ(CELL &cell, J &j) any_platform
Computation of momentum.
Definition lbm.h:279

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

+ Here is the call graph for this function:

◆ computeU()

template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::BulkMomentum::computeU ( CELL & cell,
U & u )
inline

Definition at line 468 of file elements.h.

469 {
471 const V rho = TYPE().computeRho(cell);
472 for (int iD=0; iD < DESCRIPTOR::d; ++iD) {
473 u[iD] /= rho;
474 }
475 }

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

+ Here is the call graph for this function:

◆ define()

template<typename TYPE , typename CELL , typename U >
void olb::momenta::BulkMomentum::define ( CELL & cell,
const U & u )
inline

Definition at line 479 of file elements.h.

479{};

◆ getName()

static std::string olb::momenta::BulkMomentum::getName ( )
inlinestatic

Definition at line 487 of file elements.h.

487 {
488 return "BulkMomentum";
489 }

◆ initialize()

template<typename TYPE , typename CELL >
void olb::momenta::BulkMomentum::initialize ( CELL & cell)
inline

Definition at line 482 of file elements.h.

482{};

◆ inverseShift()

template<typename TYPE , typename CELL , typename U >
void olb::momenta::BulkMomentum::inverseShift ( CELL & cell,
U & u )
inline

Definition at line 485 of file elements.h.

485{};

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