OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::BlockLatticeCellList< T, DESCRIPTOR, U > Class Template Referencefinal

#include <latticeCellList.h>

+ Inheritance diagram for olb::BlockLatticeCellList< T, DESCRIPTOR, U >:
+ Collaboration diagram for olb::BlockLatticeCellList< T, DESCRIPTOR, U >:

Public Member Functions

 BlockLatticeCellList (BlockLattice< T, DESCRIPTOR > &blockLattice, int globiC, std::vector< LatticeR< 4 > > &cellList)
 
bool operator() (T output[], const int input[]) override
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename U = bool>
class olb::BlockLatticeCellList< T, DESCRIPTOR, U >

Definition at line 37 of file latticeCellList.h.

Constructor & Destructor Documentation

◆ BlockLatticeCellList()

template<typename T , typename DESCRIPTOR , typename U >
olb::BlockLatticeCellList< T, DESCRIPTOR, U >::BlockLatticeCellList ( BlockLattice< T, DESCRIPTOR > & blockLattice,
int globiC,
std::vector< LatticeR< 4 > > & cellList )

Definition at line 47 of file latticeCellList.hh.

50 : BlockLatticeF<T,DESCRIPTOR>(blockLattice, 1),
51 _blockData(static_cast<BlockStructure<DESCRIPTOR>>(blockLattice))
52{
53 this->getName() = "cellListF";
54 for (auto latticeRlist : cellList){
55 int globiCList = latticeRlist[0];
56 if (globiCList==globiC){
57 LatticeR<DESCRIPTOR::d> latticeR(
58 latticeRlist[1],
59 latticeRlist[2],
60 latticeRlist[3]
61 );
62 auto& dataPoint = _blockData.get(latticeR);
63 dataPoint = true;
64 }
65 }
66}

Member Function Documentation

◆ operator()()

template<typename T , typename DESCRIPTOR , typename U >
bool olb::BlockLatticeCellList< T, DESCRIPTOR, U >::operator() ( T output[],
const int input[] )
override

Definition at line 69 of file latticeCellList.hh.

70{
71 if constexpr (std::is_same_v<U,bool>){
72 _blockData(output,input);
73 return bool(output[0]);
74 }
75}

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