The density is stored in descriptors::FORCE[0] (TODO: absurd, to be changed)
More...
#include <elements.h>
|
| template<typename TYPE , typename CELL , typename RHO > |
| 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 , 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 stored in descriptors::FORCE[0] (TODO: absurd, to be changed)
Definition at line 267 of file elements.h.
◆ compute()
template<typename TYPE , typename CELL , typename RHO >
| void olb::momenta::FreeEnergyInletOutletDensity::compute |
( |
CELL & | cell, |
|
|
RHO & | rho ) |
|
inline |
Definition at line 269 of file elements.h.
270 {
271 rho = cell.template getField<descriptors::FORCE>()[0];
272 }
◆ define()
template<typename TYPE , typename CELL , typename RHO >
| void olb::momenta::FreeEnergyInletOutletDensity::define |
( |
CELL & | cell, |
|
|
const RHO & | rho ) |
|
inline |
Definition at line 275 of file elements.h.
276 {
277 cell.template getFieldPointer<descriptors::FORCE>()[0] = rho;
278 }
◆ getName()
| static std::string olb::momenta::FreeEnergyInletOutletDensity::getName |
( |
| ) |
|
|
inlinestatic |
Definition at line 289 of file elements.h.
289 {
290 return "FreeEnergyInletOutletDensity";
291 }
◆ initialize()
template<typename TYPE , typename CELL , typename V = typename CELL::value_t>
| void olb::momenta::FreeEnergyInletOutletDensity::initialize |
( |
CELL & | cell | ) |
|
|
inline |
Definition at line 281 of file elements.h.
282 {
283 cell.template getFieldPointer<descriptors::FORCE>()[0] = V{1};
284 }
◆ inverseShift()
template<typename TYPE , typename CELL , typename RHO >
| void olb::momenta::FreeEnergyInletOutletDensity::inverseShift |
( |
CELL & | cell, |
|
|
RHO & | rho ) |
|
inline |
The documentation for this struct was generated from the following file: