25#ifndef LATTICE_PHYS_VELOCITY_3D_HH
26#define LATTICE_PHYS_VELOCITY_3D_HH
44template<
typename T,
typename DESCRIPTOR>
49 this->
getName() =
"physVelocity";
50 const int maxC = this->
_sLattice.getLoadBalancer().size();
52 for (
int iC = 0; iC < maxC; iC++) {
62template<
typename T,
typename DESCRIPTOR>
70 this->
getName() =
"physVelocity";
73template<
typename T,
typename DESCRIPTOR>
77 std::cout << input[0] <<
" " << input[1] <<
" " << input[2] <<
" | "
81 this->_blockLattice.get(input).computeU(output);
82 output[0] = this->_converter.getPhysVelocity(output[0]);
83 output[1] = this->_converter.getPhysVelocity(output[1]);
84 output[2] = this->_converter.getPhysVelocity(output[2]);
represents all functors that operate on a DESCRIPTOR with output in Phys, e.g. physVelocity(),...
functor returns pointwise phys velocity on local lattice
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockLatticePhysVelocity3D(BlockLattice< T, DESCRIPTOR > &blockLattice, const UnitConverter< T, DESCRIPTOR > &converter, bool print=false)
std::vector< std::unique_ptr< BlockF3D< W > > > _blockF
SuperLattice< T, DESCRIPTOR > & _sLattice
represents all functors that operate on a DESCRIPTOR with output in Phys, e.g. physVelocity(),...
SuperLatticePhysVelocity3D(SuperLattice< T, DESCRIPTOR > &sLattice, const UnitConverter< T, DESCRIPTOR > &converter, bool print=false)
Super class maintaining block lattices for a cuboid decomposition.
Conversion between physical and lattice units, as well as discretization.
int getRank() const
Returns the process ID.
Wrapper functions that simplify the use of MPI.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.