OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::collision::Revert::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM > Struct Template Reference

#include <collision.h>

+ Collaboration diagram for olb::collision::Revert::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >:

Public Member Functions

template<CONCEPT(MinimalCell) CELL, typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > apply (CELL &cell, PARAMETERS &parameters) any_platform
 

Detailed Description

template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM>
struct olb::collision::Revert::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >

Definition at line 253 of file collision.h.

Member Function Documentation

◆ apply()

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
template<CONCEPT(MinimalCell) CELL, typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::collision::Revert::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 255 of file collision.h.

255 {
256 for (int iPop=1; iPop <= DESCRIPTOR::q/2; ++iPop) {
257 V cell_iPop = cell[iPop];
258 cell[iPop] = cell[descriptors::opposite<DESCRIPTOR>(iPop)];
259 cell[descriptors::opposite<DESCRIPTOR>(iPop)] = cell_iPop;
260 }
261 return {V{-1}, V{-1}};
262 };

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