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

#include <elements.h>

+ Collaboration diagram for olb::momenta::IncompressibleBulkMomentum:

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

Definition at line 492 of file elements.h.

Member Function Documentation

◆ compute()

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

Definition at line 495 of file elements.h.

496 {
498 }
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::IncompressibleBulkMomentum::computeU ( CELL & cell,
U & u )
inline

Definition at line 502 of file elements.h.

503 {
505 auto rho = cell.template getField<descriptors::RHO>();
506 for (int iD=0; iD < DESCRIPTOR::d; ++iD) {
507 u[iD] /= rho;
508 // TODO do this check relatively / in a more controlled manner
509 if (util::fabs(u[iD]) < 1e-15) {
510 u[iD] = 0;
511 }
512 }
513 }
Expr fabs(Expr x)
Definition expr.cpp:230

References olb::lbm< DESCRIPTOR >::computeJ(), and olb::util::fabs().

+ Here is the call graph for this function:

◆ define()

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

Definition at line 517 of file elements.h.

517{};

◆ getName()

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

Definition at line 525 of file elements.h.

525 {
526 return "IncompressibleBulkMomentum";
527 }

◆ initialize()

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

Definition at line 520 of file elements.h.

520{};

◆ inverseShift()

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

Definition at line 523 of file elements.h.

523{};

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