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

The density is stored in descriptors::FORCE[0] (TODO: absurd, to be changed) More...

#include <elements.h>

+ Collaboration diagram for olb::momenta::FreeEnergyInletOutletDensity:

Public Member Functions

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
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

The density is stored in descriptors::FORCE[0] (TODO: absurd, to be changed)

Definition at line 212 of file elements.h.

Member Function Documentation

◆ compute()

template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::FreeEnergyInletOutletDensity::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 214 of file elements.h.

215 {
216 rho = cell.template getField<descriptors::FORCE>()[0];
217 }

◆ define()

template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::FreeEnergyInletOutletDensity::define ( CELL & cell,
const RHO & rho )
inline

Definition at line 220 of file elements.h.

221 {
222 cell.template getFieldPointer<descriptors::FORCE>()[0] = rho;
223 }

◆ getName()

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

Definition at line 234 of file elements.h.

234 {
235 return "FreeEnergyInletOutletDensity";
236 }

◆ initialize()

template<typename TYPE , typename CELL , typename V = typename CELL::value_t>
void olb::momenta::FreeEnergyInletOutletDensity::initialize ( CELL & cell)
inline

Definition at line 226 of file elements.h.

227 {
228 cell.template getFieldPointer<descriptors::FORCE>()[0] = V{1};
229 }

◆ inverseShift()

template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::FreeEnergyInletOutletDensity::inverseShift ( CELL & cell,
RHO & rho )
inline

Definition at line 232 of file elements.h.

232{};

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