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

#include <elements.h>

+ Collaboration diagram for olb::momenta::FreeEnergyMomentum:

Public Member Functions

template<typename TYPE , typename CELL , typename J , typename DESCRIPTOR = typename CELL::descriptor_t>
void compute (CELL &cell, J &j) any_platform
 
template<typename TYPE , typename CELL , typename U , 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
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

Definition at line 727 of file elements.h.

Member Function Documentation

◆ compute()

template<typename TYPE , typename CELL , typename J , typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::FreeEnergyMomentum::compute ( CELL & cell,
J & j )
inline

Definition at line 729 of file elements.h.

730 {
732 }
static void computeJ(CELL &cell, J &j) any_platform
Computation of momentum.
Definition lbm.h:197

References olb::lbm< DESCRIPTOR >::computeJ().

+ Here is the call graph for this function:

◆ computeU()

template<typename TYPE , typename CELL , typename U , typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::FreeEnergyMomentum::computeU ( CELL & cell,
U & u )
inline

Definition at line 735 of file elements.h.

736 {
737 auto force = cell.template getField<descriptors::FORCE>();
738 for (int iVel=0; iVel<DESCRIPTOR::d; ++iVel) {
739 u[iVel] = force[iVel];
740 }
741 }

◆ define()

template<typename TYPE , typename CELL , typename U >
void olb::momenta::FreeEnergyMomentum::define ( CELL & cell,
const U & u )
inline

Definition at line 744 of file elements.h.

744{}

◆ getName()

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

Definition at line 752 of file elements.h.

752 {
753 return "FreeEnergyMomentum";
754 }

◆ initialize()

template<typename TYPE , typename CELL >
void olb::momenta::FreeEnergyMomentum::initialize ( CELL & cell)
inline

Definition at line 747 of file elements.h.

747{}

◆ inverseShift()

template<typename TYPE , typename CELL , typename U >
void olb::momenta::FreeEnergyMomentum::inverseShift ( CELL & cell,
U & u )
inline

Definition at line 750 of file elements.h.

750{};

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