OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal > Class Template Reference

#include <rtlbmBoundaryDynamics.h>

+ Inheritance diagram for olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >:
+ Collaboration diagram for olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >:

Public Types

template<typename M >
using exchange_momenta = RtlbmDiffuseCornerBoundaryDynamics<T,DESCRIPTOR,M,xNormal,yNormal,zNormal>
 
- Public Types inherited from olb::dynamics::CustomCollision< T, DESCRIPTOR, MOMENTA >
using value_t = T
 
using descriptor_t = DESCRIPTOR
 
using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 
- Public Types inherited from olb::Dynamics< T, DESCRIPTOR >
using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

 RtlbmDiffuseCornerBoundaryDynamics (T omega_)
 Constructor.
 
computeEquilibrium (int iPop, T rho, const T u[DESCRIPTOR::d]) const override
 Compute equilibrium distribution function.
 
CellStatistic< T > collide (Cell< T, DESCRIPTOR > &cell) override
 Collision step for corner.
 
getOmega () const
 place holder
 
void setOmega (T omega_)
 place holder
 
- Public Member Functions inherited from olb::legacy::BasicDynamics< T, DESCRIPTOR, MOMENTA >
std::type_index id () override
 Expose unique type-identifier for RTTI.
 
AbstractParameters< T, DESCRIPTOR > & getParameters (BlockLattice< T, DESCRIPTOR > &block) override
 Parameters access for legacy post processors.
 
- Public Member Functions inherited from olb::dynamics::CustomCollision< T, DESCRIPTOR, MOMENTA >
void initialize (Cell< T, DESCRIPTOR > &cell) override
 Initialize dynamics-specific data for cell.
 
computeRho (ConstCell< T, DESCRIPTOR > &cell) const override
 Compute particle density.
 
void computeU (ConstCell< T, DESCRIPTOR > &cell, T u[DESCRIPTOR::d]) const override
 Compute fluid velocity.
 
void computeJ (ConstCell< T, DESCRIPTOR > &cell, T j[DESCRIPTOR::d]) const override
 Compute fluid momentum.
 
void computeStress (ConstCell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override
 Compute stress tensor.
 
void computeRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override
 Compute fluid velocity and particle density.
 
void computeAllMomenta (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override
 Compute all momenta up to second order.
 
void defineRho (Cell< T, DESCRIPTOR > &cell, T rho) override
 Set particle density.
 
void defineU (Cell< T, DESCRIPTOR > &cell, const T u[DESCRIPTOR::d]) override
 Set fluid velocity.
 
void defineRhoU (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d]) override
 Define fluid velocity and particle density.
 
void defineAllMomenta (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n]) override
 Define all momenta up to second order.
 
void inverseShiftRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override
 Calculate population momenta s.t. the physical momenta are reproduced by the computeRhoU.
 
- Public Member Functions inherited from olb::Dynamics< T, DESCRIPTOR >
virtual ~Dynamics () any_platform
 
virtual std::string getName () const
 Return human-readable name.
 
void iniEquilibrium (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d])
 Initialize to equilibrium distribution.
 
void iniRegularized (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n])
 Initialize cell to equilibrium and non-equilibrum part.
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename MOMENTA, int xNormal, int yNormal, int zNormal>
class olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >

Definition at line 78 of file rtlbmBoundaryDynamics.h.

Member Typedef Documentation

◆ exchange_momenta

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
template<typename M >
using olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::exchange_momenta = RtlbmDiffuseCornerBoundaryDynamics<T,DESCRIPTOR,M,xNormal,yNormal,zNormal>

Definition at line 81 of file rtlbmBoundaryDynamics.h.

Constructor & Destructor Documentation

◆ RtlbmDiffuseCornerBoundaryDynamics()

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::RtlbmDiffuseCornerBoundaryDynamics ( T omega_)

Constructor.

Definition at line 124 of file rtlbmBoundaryDynamics.hh.

125 : legacy::BasicDynamics<T,DESCRIPTOR,MOMENTA>()
126{
127 this->getName() = "RtlbmDiffuseCornerBoundaryDynamics";
128}
virtual std::string getName() const
Return human-readable name.
Definition interface.h:63

References olb::Dynamics< T, DESCRIPTOR >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ collide()

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
CellStatistic< T > olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::collide ( Cell< T, DESCRIPTOR > & cell)
overridevirtual

Collision step for corner.

Reimplemented from olb::Dynamics< T, DESCRIPTOR >.

Definition at line 137 of file rtlbmBoundaryDynamics.hh.

138{
139 typedef DESCRIPTOR L;
140 using MomentaF = typename MOMENTA::template type<DESCRIPTOR>;
141 T dirichletTemperature = MomentaF().computeRho(cell);
142 std::vector<int> const missing_iPop = util::subIndexOutgoing3DonCorners<L,xNormal,yNormal,zNormal>();
143 // compute summ of weights for all missing directions
144 T sumWeights = 0;
145 for ( int i : missing_iPop ) {
146 sumWeights += descriptors::t<T,L>(i);
147 }
148 // construct missing directions such that 0th moment equals emposed dirichletTemperature
149 for ( int i : missing_iPop ) {
150 cell[i] = descriptors::t<T,L>(i)*dirichletTemperature/sumWeights - descriptors::t<T,L>(i);
151 }
152 return {-1, -1};
153}
typename MOMENTA::template type< DESCRIPTOR > MomentaF
Definition interface.h:299

◆ computeEquilibrium()

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
T olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::computeEquilibrium ( int iPop,
T rho,
const T u[DESCRIPTOR::d] ) const
overridevirtual

Compute equilibrium distribution function.

Reimplemented from olb::legacy::BasicDynamics< T, DESCRIPTOR, MOMENTA >.

Definition at line 131 of file rtlbmBoundaryDynamics.hh.

132{
133 return descriptors::t<T,DESCRIPTOR>(iPop)*rho - descriptors::t<T,DESCRIPTOR>(iPop);
134}

◆ getOmega()

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
T olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::getOmega ( ) const

place holder

Definition at line 156 of file rtlbmBoundaryDynamics.hh.

157{
158 return T(-1);
159}

◆ setOmega()

template<typename T , typename DESCRIPTOR , typename MOMENTA , int xNormal, int yNormal, int zNormal>
void olb::RtlbmDiffuseCornerBoundaryDynamics< T, DESCRIPTOR, MOMENTA, xNormal, yNormal, zNormal >::setOmega ( T omega_)

place holder

Definition at line 162 of file rtlbmBoundaryDynamics.hh.

163{
164}

The documentation for this class was generated from the following files: