OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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 691 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 693 of file elements.h.

694 {
695 FixedPressureMomentum<direction,orientation>().template compute<TYPE>(cell, j);
696 }

◆ 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 699 of file elements.h.

700 {
701 for (int iVel=0; iVel<DESCRIPTOR::d; ++iVel) {
702 u[iVel] = V(0);
703 }
704 u[direction] = cell.template getFieldPointer<descriptors::FORCE>()[1];
705 }

◆ 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 708 of file elements.h.

709 {
710 cell.template getFieldPointer<descriptors::FORCE>()[1] = u[direction];
711 }

◆ getName()

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

Definition at line 721 of file elements.h.

721 {
722 return "FreeEnergyInletOutletMomentum";
723 }

◆ initialize()

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

Definition at line 714 of file elements.h.

714 {
715 FixedPressureMomentum<direction,orientation>().template initialize<TYPE>(cell);
716 }

◆ 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 719 of file elements.h.

719{};

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