OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::momenta::ZeroStress Struct Reference

The stress is always zero. More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::ZeroStress:

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
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

The stress is always zero.

Definition at line 1355 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::ZeroStress::compute ( CELL & cell,
const RHO & rho,
const U & u,
PI & pi )
inline

Definition at line 1357 of file elements.h.

1358 {
1359 for (int iPi=0; iPi < util::TensorVal<DESCRIPTOR>::n; ++iPi) {
1360 pi[iPi] = V{};
1361 }
1362 }

◆ getName()

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

Definition at line 1364 of file elements.h.

1364 {
1365 return "ZeroStress";
1366 }

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