OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation > Struct Template Reference

#include <elements.h>

+ Collaboration diagram for olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >:

Public Member Functions

template<typename TYPE , typename CELL , typename J >
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
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

template<int direction, int orientation>
struct olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >

Definition at line 892 of file elements.h.

Member Function Documentation

◆ compute()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename J >
void olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::compute ( CELL & cell,
J & j )
inline

Definition at line 894 of file elements.h.

895 {
896 FixedPressureMomentum<direction,orientation>().template compute<TYPE>(cell, j);
897 }
void compute(CELL &cell, J &j) any_platform
Definition elements.h:894

References olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::compute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ computeU()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::computeU ( CELL & cell,
U & u )
inline

Definition at line 900 of file elements.h.

901 {
902 for (int iVel=0; iVel<DESCRIPTOR::d; ++iVel) {
903 u[iVel] = V(0);
904 }
905 u[direction] = cell.template getFieldPointer<descriptors::FORCE>()[1];
906 }

◆ define()

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

Definition at line 909 of file elements.h.

910 {
911 cell.template getFieldPointer<descriptors::FORCE>()[1] = u[direction];
912 }

◆ getName()

template<int direction, int orientation>
static std::string olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::getName ( )
inlinestatic

Definition at line 922 of file elements.h.

922 {
923 return "FreeEnergyInletOutletMomentum";
924 }

◆ initialize()

template<int direction, int orientation>
template<typename TYPE , typename CELL >
void olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::initialize ( CELL & cell)
inline

Definition at line 915 of file elements.h.

915 {
916 FixedPressureMomentum<direction,orientation>().template initialize<TYPE>(cell);
917 }
void initialize(CELL &cell) any_platform
Definition elements.h:915

References olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inverseShift()

template<int direction, int orientation>
template<typename TYPE , typename CELL , typename U >
void olb::momenta::FreeEnergyInletOutletMomentum< direction, orientation >::inverseShift ( CELL & cell,
U & u )
inline

Definition at line 920 of file elements.h.

920{};

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