The density is fixed and stored in the external field RHO.
More...
#include <elements.h>
|
template<typename TYPE , typename CELL , typename R > |
void | compute (CELL &cell, R &rho) any_platform |
|
template<typename TYPE , typename CELL , typename R > |
void | define (CELL &cell, const R &rho) any_platform |
|
template<typename TYPE , typename CELL , typename V = typename CELL::value_t> |
void | initialize (CELL &cell) any_platform |
|
template<typename TYPE , typename CELL , typename RHO > |
void | inverseShift (CELL &cell, RHO &rho) any_platform |
|
The density is fixed and stored in the external field RHO.
Definition at line 182 of file elements.h.
◆ compute()
template<typename TYPE , typename CELL , typename R >
void olb::momenta::FixedDensity::compute |
( |
CELL & | cell, |
|
|
R & | rho ) |
|
inline |
Definition at line 186 of file elements.h.
187 {
188 rho = cell.template getField<RHO>();
189 }
◆ define()
template<typename TYPE , typename CELL , typename R >
void olb::momenta::FixedDensity::define |
( |
CELL & | cell, |
|
|
const R & | rho ) |
|
inline |
Definition at line 192 of file elements.h.
193 {
194 cell.template setField<RHO>(rho);
195 }
◆ getName()
static std::string olb::momenta::FixedDensity::getName |
( |
| ) |
|
|
inlinestatic |
Definition at line 206 of file elements.h.
206 {
207 return "FixedDensity";
208 }
◆ initialize()
template<typename TYPE , typename CELL , typename V = typename CELL::value_t>
void olb::momenta::FixedDensity::initialize |
( |
CELL & | cell | ) |
|
|
inline |
Definition at line 198 of file elements.h.
199 {
200 cell.template setField<RHO>(V{1});
201 }
◆ inverseShift()
template<typename TYPE , typename CELL , typename
RHO >
void olb::momenta::FixedDensity::inverseShift |
( |
CELL & | cell, |
|
|
RHO & | rho ) |
|
inline |
The documentation for this struct was generated from the following file: