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

The stress is fixed and stored in the external field PI. More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::FixedStress:

Public Member Functions

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

Static Public Member Functions

static std::string getName ()
 

Detailed Description

The stress is fixed and stored in the external field PI.

Definition at line 1794 of file elements.h.

Member Function Documentation

◆ compute()

template<typename TYPE , typename CELL , typename RHO , typename U , typename PI , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::FixedStress::compute ( CELL & cell,
const RHO & rho,
const U & u,
PI & pi )
inline

Definition at line 1796 of file elements.h.

1797 {
1798 auto piExt = cell.template getField<descriptors::TENSOR>();
1799 for (int iPi=0; iPi < util::TensorVal<DESCRIPTOR>::n; ++iPi) {
1800 pi[iPi] = piExt[iPi];
1801 }
1802 }

◆ define()

template<typename TYPE , typename CELL , typename RHO , typename U , typename PI , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::FixedStress::define ( CELL & cell,
const RHO & rho,
const U & u,
PI & pi )
inline

Definition at line 1805 of file elements.h.

1806 {
1807 cell.template setField<descriptors::TENSOR>(pi);
1808 }

◆ getName()

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

Definition at line 1810 of file elements.h.

1810 {
1811 return "FixedStress";
1812 }

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