Momentum is zero at solid material.
More...
#include <elements.h>
|
template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t> |
void | compute (CELL &cell, J &j) any_platform |
|
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t> |
void | computeU (CELL &cell, U &u) any_platform |
|
template<typename TYPE , typename CELL , typename U > |
void | define (CELL &cell, const U &u) any_platform |
|
template<typename TYPE , typename CELL > |
void | initialize (CELL &cell) any_platform |
|
template<typename TYPE , typename CELL , typename U > |
void | inverseShift (CELL &cell, U &u) any_platform |
|
Momentum is zero at solid material.
Definition at line 1049 of file elements.h.
◆ compute()
template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::ZeroMomentum::compute |
( |
CELL & | cell, |
|
|
J & | j ) |
|
inline |
Definition at line 1051 of file elements.h.
1052 {
1053 for (int iD=0; iD<DESCRIPTOR::d; ++iD) {
1054 j[iD] = V{};
1055 }
1056 }
◆ computeU()
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::ZeroMomentum::computeU |
( |
CELL & | cell, |
|
|
U & | u ) |
|
inline |
Definition at line 1059 of file elements.h.
1060 {
1061 for (int iD=0; iD<DESCRIPTOR::d; ++iD) {
1062 u[iD] = V{};
1063 }
1064 }
◆ define()
template<typename TYPE , typename CELL , typename U >
void olb::momenta::ZeroMomentum::define |
( |
CELL & | cell, |
|
|
const U & | u ) |
|
inline |
◆ getName()
static std::string olb::momenta::ZeroMomentum::getName |
( |
| ) |
|
|
inlinestatic |
Definition at line 1075 of file elements.h.
1075 {
1076 return "ZeroMomentum";
1077 }
◆ initialize()
template<typename TYPE , typename CELL >
void olb::momenta::ZeroMomentum::initialize |
( |
CELL & | cell | ) |
|
|
inline |
◆ inverseShift()
template<typename TYPE , typename CELL , typename U >
void olb::momenta::ZeroMomentum::inverseShift |
( |
CELL & | cell, |
|
|
U & | u ) |
|
inline |
The documentation for this struct was generated from the following file: