OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::HeatFluxBoundaryDensity< direction, orientation > Struct Template Reference

For fixed heat flux, the density is computed from flux, velocity and populations, similar to fixed velocity boundaries. More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::HeatFluxBoundaryDensity< 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::HeatFluxBoundaryDensity< direction, orientation >

For fixed heat flux, the density is computed from flux, velocity and populations, similar to fixed velocity boundaries.

Definition at line 298 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::HeatFluxBoundaryDensity< direction, orientation >::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 300 of file elements.h.

301 {
302 const auto uNS = cell.template getField<descriptors::VELOCITY>();
303
304 V conduction[DESCRIPTOR::d];
305 TYPE().computeU(cell, conduction);
306 rho = heatFluxBMRho<direction,orientation>(cell, uNS.data(), conduction[direction]);
307 }
V heatFluxBMRho(CELL &cell, const U &u, FLUX &flux) any_platform
Definition elements.h:97

References olb::momenta::heatFluxBMRho().

+ Here is the call graph for this function:

◆ define()

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

Definition at line 310 of file elements.h.

310{};

◆ getName()

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

Definition at line 318 of file elements.h.

318 {
319 return "HeatFluxBoundaryDensity";
320 }

◆ initialize()

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

Definition at line 313 of file elements.h.

313{};

◆ inverseShift()

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

Definition at line 316 of file elements.h.

316{};

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