24#ifndef LATTICE_GEOMETRY_2D_HH
25#define LATTICE_GEOMETRY_2D_HH
44template<
typename T,
typename DESCRIPTOR>
51template<
typename T,
typename DESCRIPTOR>
54 :
SuperF2D<T>(superGeometry, 1), _superGeometry(superGeometry),
60 for (
int iC = 0; iC < maxC; iC++) {
67template <
typename T,
typename DESCRIPTOR>
73template <
typename T,
typename DESCRIPTOR>
76 :
BlockF2D<T>(blockGeometry,1), _blockGeometry(blockGeometry), _material(material)
81template <
typename T,
typename DESCRIPTOR>
84 const int materialTmp = _blockGeometry.getMaterial( {input[0], input[1]} );
86 if (_material != -1) {
87 if (_material == materialTmp) {
96 output[0]=T(materialTmp);
represents all functors that operate on a cuboid in general, mother class of BlockLatticeF,...
Representation of a block geometry.
BlockLatticeGeometry2D returns pointwise the material no. presenting the geometry on local lattice.
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockLatticeGeometry2D(BlockLattice< T, DESCRIPTOR > &blockLattice, BlockGeometry< T, 2 > &blockGeometry, int material=-1)
Platform-abstracted block lattice for external access and inter-block interaction.
std::string & getName()
read and write access to name
represents all functors that operate on a SuperStructure<T,2> in general
std::vector< std::unique_ptr< BlockF2D< W > > > _blockF
Super functors may consist of several BlockF2D<W> derived functors.
Representation of a statistic for a parallel 2D geometry.
BlockGeometry< T, D > & getBlockGeometry(int locIC)
Read and write access to a single block geometry.
functor to get pointwise the material no. presenting the geometry on local lattice
SuperLatticeGeometry2D(SuperLattice< T, DESCRIPTOR > &sLattice, SuperGeometry< T, 2 > &superGeometry, const int material=-1)
Super class maintaining block lattices for a cuboid decomposition.
LoadBalancer< T > & getLoadBalancer()
Read and write access to the load balancer.
The description of a generic interface for all functor classes – header file.
This file contains indicator functions.
Wrapper functions that simplify the use of MPI.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.