25#ifndef LATTICE_CUBOID_3D_HH
26#define LATTICE_CUBOID_3D_HH
34template<
typename T,
typename DESCRIPTOR>
39 int maxC = this->
_sLattice.getLoadBalancer().size();
41 for (
int iC = 0; iC < maxC; iC++) {
42 const int globC = this->
_sLattice.getLoadBalancer().glob(iC);
45 this->_sLattice.getCuboidDecomposition().get(globC)));
49template<
typename T,
typename DESCRIPTOR>
52 :
BlockLatticeF3D<T,DESCRIPTOR>(blockLattice, 2), _iC(iC), _cuboid(cuboid)
57template<
typename T,
typename DESCRIPTOR>
61 output[1] = T(_cuboid.getWeight()) / _cuboid.getLatticeVolume();
functor to get pointwise the cuboid no. + 1 on local lattice
BlockLatticeCuboid3D(BlockLattice< T, DESCRIPTOR > &blockLattice, int iC, const Cuboid3D< T > &cuboid)
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
represents all functors that operate on a DESCRIPTOR in general, e.g. getVelocity(),...
std::vector< std::unique_ptr< BlockF3D< W > > > _blockF
SuperLatticeCuboid3D(SuperLattice< T, DESCRIPTOR > &sLattice)
represents all functors that operate on a SuperLattice in general, e.g. getVelocity(),...
SuperLattice< T, DESCRIPTOR > & _sLattice
Super class maintaining block lattices for a cuboid decomposition.
Top level namespace for all of OpenLB.