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.getCuboidGeometry().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.getWeightValue()) / _cuboid.getLatticeVolume();
functor to get pointwise the cuboid no. + 1 on local lattice
BlockLatticeCuboid3D(BlockLattice< T, DESCRIPTOR > &blockLattice, int iC, 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(),...
Platform-abstracted block lattice for external access and inter-block interaction.
A regular single 3D cuboid is the basic component of a 3D cuboid structure which defines the grid.
std::string & getName()
read and write access to name
std::vector< std::unique_ptr< BlockF3D< T > > > _blockF
Super functors may consist of several BlockF3D<W> derived functors.
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.