25#ifndef LATTICE_PHYS_PORE_SIZE_DISTRIBUTION_3D_HH
26#define LATTICE_PHYS_PORE_SIZE_DISTRIBUTION_3D_HH
44template <
typename T,
typename DESCRIPTOR>
49 _superGeometry(superGeometry)
51 this->
getName() =
"physPoreSizeDistribution";
52 int maxC = this->
_sLattice.getLoadBalancer().size();
54 for (
int iC = 0; iC < maxC; iC++) {
59template<
typename T,
typename DESCRIPTOR>
62 :
BlockLatticeF3D<T, DESCRIPTOR>(blockLattice, 1), _blockGeometry(blockGeometry), _material(material),
63 _distanceFunctor(blockLattice, blockGeometry, xmlReader), _distanceCache(_distanceFunctor)
65 this->
getName() =
"physPoreSizeDistribution";
69 _tmpIndicator = createIndicatorSphere3D<T>(*child);
70 _indicatorList.push_back(_tmpIndicator);
75template<
typename T,
typename DESCRIPTOR>
78 if (this->_blockGeometry.get({input[0],input[1],input[2]}) == _material) {
79 T localDistance[1] = {0.};
80 _distanceCache(localDistance, input);
84 for (
int iPop = 1; iPop < 27; iPop++) {
85 int neighbourInput[3] = {0,0,0};
86 for (
int iDim = 0; iDim < 3; iDim++) {
87 neighbourInput[iDim] = input[iDim] + descriptors::c<descriptors::D3Q27<>>(iPop,iDim);
92 T neighbourDistance[1] = {0.};
93 if ( _distanceCache(neighbourDistance, neighbourInput) ) {
94 if ( neighbourDistance[0] > localDistance[0] ) {
109 output[0] = localDistance[0];
Representation of a block geometry.
represents all functors that operate on a DESCRIPTOR in general, e.g. getVelocity(),...
functor returns pointwise pore radius for packings of spheres given by indicators returns NAN for non...
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
BlockLatticePhysPoreSizeDistribution3D(BlockLattice< T, DESCRIPTOR > &blockLattice, BlockGeometry< T, 3 > &blockGeometry, int material, XMLreader const &xmlReader)
Platform-abstracted block lattice for external access and inter-block interaction.
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.
Representation of a statistic for a parallel 2D geometry.
represents all functors that operate on a SuperLattice in general, e.g. getVelocity(),...
SuperLattice< T, DESCRIPTOR > & _sLattice
SuperLatticePhysPoreSizeDistribution3D(SuperLattice< T, DESCRIPTOR > &sLattice, SuperGeometry< T, 3 > &superGeometry, int material, XMLreader const &xmlReader)
Super class maintaining block lattices for a cuboid decomposition.
Wrapper functions that simplify the use of MPI.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.