OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::momenta::VelocityBoundaryDensity< direction, orientation > Struct Template Reference

Density computation for fixed velocity boundary. More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::VelocityBoundaryDensity< direction, orientation >:

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 direction, int orientation>
struct olb::momenta::VelocityBoundaryDensity< direction, orientation >

Density computation for fixed velocity boundary.

Definition at line 270 of file elements.h.

Member Function Documentation

◆ compute()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::VelocityBoundaryDensity< direction, orientation >::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 272 of file elements.h.

273 {
274 V u[DESCRIPTOR::d];
275 TYPE().computeU(cell, u);
276 rho = velocityBMRho<direction,orientation>(cell, u);
277 }

◆ define()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::VelocityBoundaryDensity< direction, orientation >::define ( CELL & cell,
const RHO & rho )
inline

Definition at line 280 of file elements.h.

280{};

◆ getName()

template<int direction, int orientation>
static std::string olb::momenta::VelocityBoundaryDensity< direction, orientation >::getName ( )
inlinestatic

Definition at line 288 of file elements.h.

288 {
289 return "VelocityBoundaryDensity<" + std::to_string(direction) + "," + std::to_string(orientation) + ">";
290 }

◆ initialize()

template<int direction, int orientation>
template<typename TYPE , typename CELL >
void olb::momenta::VelocityBoundaryDensity< direction, orientation >::initialize ( CELL & cell)
inline

Definition at line 283 of file elements.h.

283{};

◆ inverseShift()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::VelocityBoundaryDensity< direction, orientation >::inverseShift ( CELL & cell,
RHO & rho )
inline

Definition at line 286 of file elements.h.

286{};

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