#include <elements.h>
|
| template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t> |
| 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 |
| |
Definition at line 958 of file elements.h.
◆ compute()
template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
| void olb::momenta::ForcedPSMMomentum::compute |
( |
CELL & | cell, |
|
|
J & | j ) |
|
inline |
Definition at line 960 of file elements.h.
961 {
962 const V rho = TYPE().computeRho(cell);
964 for (int iVel=0; iVel<DESCRIPTOR::d; ++iVel) {
965 j[iVel] *= rho;
966 }
967 }
void computeU(CELL &cell, U &u) any_platform
References computeU().
◆ computeU()
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
| void olb::momenta::ForcedPSMMomentum::computeU |
( |
CELL & | cell, |
|
|
U & | u ) |
|
inline |
Definition at line 970 of file elements.h.
971 {
972 V rho{};
974 V epsilon = 1. - cell.template getField<descriptors::POROSITY>();
975 V omega = cell.template getField<descriptors::OMEGA>();
976 V paramA = 1 / omega - 0.5;
977 V paramB = (epsilon * paramA) / ((1. - epsilon) + paramA);
978 V paramC = (1. - paramB);
979 for (int iVel=0; iVel < DESCRIPTOR::d; ++iVel) {
980 u[iVel] = paramC * (u[iVel] + cell.template getFieldComponent<descriptors::FORCE>(iVel) * 0.5)
981 + paramB * cell.template getFieldComponent<descriptors::VELOCITY_SOLID>(iVel);
982 }
983 }
static void computeRhoU(CELL &cell, RHO &rho, U &u) any_platform
Computation of hydrodynamic variables.
References olb::lbm< DESCRIPTOR >::computeRhoU().
◆ define()
template<typename TYPE , typename CELL , typename U >
| void olb::momenta::ForcedPSMMomentum::define |
( |
CELL & | cell, |
|
|
const U & | u ) |
|
inline |
◆ getName()
| static std::string olb::momenta::ForcedPSMMomentum::getName |
( |
| ) |
|
|
inlinestatic |
Definition at line 994 of file elements.h.
994 {
995 return "ForcedPSMMomentum";
996 }
◆ initialize()
template<typename TYPE , typename CELL >
| void olb::momenta::ForcedPSMMomentum::initialize |
( |
CELL & | cell | ) |
|
|
inline |
◆ inverseShift()
template<typename TYPE , typename CELL , typename U >
| void olb::momenta::ForcedPSMMomentum::inverseShift |
( |
CELL & | cell, |
|
|
U & | u ) |
|
inline |
The documentation for this struct was generated from the following file: