OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 > Struct Template Reference

#include <elements.h>

+ Collaboration diagram for olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >:

Public Member Functions

template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void compute (CELL &cell, RHO &rho) any_platform
 
template<typename TYPE , typename CELL , typename RHO >
void define (CELL &cell, const RHO &rho) any_platform
 
template<typename TYPE , typename CELL >
void initialize (CELL &cell) any_platform
 
template<typename TYPE , typename CELL , typename RHO >
void inverseShift (CELL &cell, RHO &rho) any_platform
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

template<int plane, int normal1, int normal2>
struct olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >

Definition at line 347 of file elements.h.

Member Function Documentation

◆ compute()

template<int plane, int normal1, int normal2>
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 349 of file elements.h.

350 {
351 V u[DESCRIPTOR::d];
352 TYPE().computeU(cell, u);
353 const V rho1 = velocityBMRho<(plane+1)%3, normal1>(cell, u);
354 const V rho2 = velocityBMRho<(plane+2)%3, normal2>(cell, u);
355 rho = (rho1 + rho2) / V(2);
356 }

◆ define()

template<int plane, int normal1, int normal2>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >::define ( CELL & cell,
const RHO & rho )
inline

Definition at line 359 of file elements.h.

359{};

◆ getName()

template<int plane, int normal1, int normal2>
static std::string olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >::getName ( )
inlinestatic

Definition at line 367 of file elements.h.

367 {
368 return "InnerEdgeDensity3D";
369 }

◆ initialize()

template<int plane, int normal1, int normal2>
template<typename TYPE , typename CELL >
void olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >::initialize ( CELL & cell)
inline

Definition at line 362 of file elements.h.

362{};

◆ inverseShift()

template<int plane, int normal1, int normal2>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::InnerEdgeDensity3D< plane, normal1, normal2 >::inverseShift ( CELL & cell,
RHO & rho )
inline

Definition at line 365 of file elements.h.

365{};

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