OpenLB 1.7
|
#include <superGeometryStatistics3D.h>
Public Member Functions | |
SuperGeometryStatistics3D (SuperGeometry< T, 3 > *superGeometry) | |
Constructor. | |
SuperGeometryStatistics3D (SuperGeometryStatistics3D const &rhs) | |
Copy constructor. | |
SuperGeometryStatistics3D< T > & | operator= (SuperGeometryStatistics3D const &rhs) |
Copy assignment. | |
bool & | getStatisticsStatus () |
Read and write access to a flag, which indicates if an uptate is needed (=true) | |
bool const & | getStatisticsStatus () const |
Read only access to a flag, which indicates if an uptate is needed (=true) | |
void | update (bool verbose=false) |
Updates the statistics if it is really needed. | |
int | getNmaterials () |
Returns the number of different materials. | |
int | getNmaterials () const |
std::size_t | getNvoxel (int material) |
Returns the number of voxels for a given material number. | |
std::size_t | getNvoxel (int material) const |
std::size_t | getNvoxel () |
Returns the number of voxels with material!=0. | |
std::size_t | getNvoxel () const |
olb::Vector< T, 3 > | getMinPhysR (int material) |
Returns the min. phys position in each direction corresponding to material number. | |
olb::Vector< T, 3 > | getMinPhysR (int material) const |
olb::Vector< T, 3 > | getMinPhysR () |
Returns the min. phys position in each direction corresponding to all non-zero material numbers. | |
olb::Vector< T, 3 > | getMinPhysR () const |
olb::Vector< T, 3 > | getMaxPhysR (int material) |
Returns the max. phys position in each direction corresponding to material number. | |
olb::Vector< T, 3 > | getMaxPhysR (int material) const |
olb::Vector< T, 3 > | getMaxPhysR () |
Returns the max. phys position in each direction corresponding to all non-zero material numbers. | |
olb::Vector< T, 3 > | getMaxPhysR () const |
olb::Vector< T, 3 > | getPhysExtend (int material) |
Returns the phys extend as length in each direction. | |
std::vector< T > | getPhysExtend (int material) const |
olb::Vector< T, 3 > | getPhysRadius (int material) |
Returns the phys radius as length in each direction. | |
olb::Vector< T, 3 > | getPhysRadius (int material) const |
olb::Vector< T, 3 > | getCenterPhysR (int material) |
Returns the center position. | |
olb::Vector< T, 3 > | getCenterPhysR (int material) const |
olb::Vector< int, 3 > | getType (int iC, int iX, int iY, int iZ) |
Returns the boundary type which is characterized by a discrte normal (c.f. Zimny) | |
olb::Vector< int, 3 > | getType (int iC, int iX, int iY, int iZ) const |
olb::Vector< T, 3 > | computeNormal (int material) |
Returns normal that points into the fluid for paraxial surfaces. | |
olb::Vector< T, 3 > | computeNormal (int material) const |
olb::Vector< int, 3 > | computeDiscreteNormal (int material, T maxNorm=1.1) |
Returns discrete normal with norm maxNorm that points into the fluid for paraxial surfaces maxNorm=1.1 implies only normals parallel to the axises. | |
olb::Vector< int, 3 > | computeDiscreteNormal (int material, T maxNorm=1.1) const |
T | computeMaxPhysDistance (int material) const |
Returns util::sqrt( maxX^2 + maxY^2 + maxZ^2 ) max over a certain material number. | |
T | computeMaxPhysDistance () const |
Returns util::sqrt( maxX^2 + maxY^2 + maxZ^2 ) max over all material numbers. | |
void | print () |
Prints some statistic information, i.e. the number of voxels and min. max. physical position for each different material. | |
void | print () const |
Definition at line 57 of file superGeometryStatistics3D.h.
olb::SuperGeometryStatistics3D< T >::SuperGeometryStatistics3D | ( | SuperGeometry< T, 3 > * | superGeometry | ) |
Constructor.
Definition at line 42 of file superGeometryStatistics3D.hh.
olb::SuperGeometryStatistics3D< T >::SuperGeometryStatistics3D | ( | SuperGeometryStatistics3D< T > const & | rhs | ) |
Copy constructor.
Definition at line 50 of file superGeometryStatistics3D.hh.
olb::Vector< int, 3 > olb::SuperGeometryStatistics3D< T >::computeDiscreteNormal | ( | int | material, |
T | maxNorm = 1.1 ) |
Returns discrete normal with norm maxNorm that points into the fluid for paraxial surfaces maxNorm=1.1 implies only normals parallel to the axises.
Definition at line 509 of file superGeometryStatistics3D.hh.
olb::Vector< int, 3 > olb::SuperGeometryStatistics3D< T >::computeDiscreteNormal | ( | int | material, |
T | maxNorm = 1.1 ) const |
Definition at line 516 of file superGeometryStatistics3D.hh.
References olb::norm(), and olb::util::sqrt().
T olb::SuperGeometryStatistics3D< T >::computeMaxPhysDistance | ( | ) | const |
Returns util::sqrt( maxX^2 + maxY^2 + maxZ^2 ) max over all material numbers.
Definition at line 549 of file superGeometryStatistics3D.hh.
References olb::norm().
T olb::SuperGeometryStatistics3D< T >::computeMaxPhysDistance | ( | int | material | ) | const |
Returns util::sqrt( maxX^2 + maxY^2 + maxZ^2 ) max over a certain material number.
Definition at line 542 of file superGeometryStatistics3D.hh.
References olb::norm().
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::computeNormal | ( | int | material | ) |
Returns normal that points into the fluid for paraxial surfaces.
Definition at line 466 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::computeNormal | ( | int | material | ) | const |
Definition at line 473 of file superGeometryStatistics3D.hh.
References olb::singleton::mpi(), olb::norm(), olb::singleton::MpiManager::reduceAndBcast(), and olb::util::sqrt().
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getCenterPhysR | ( | int | material | ) |
Returns the center position.
Definition at line 434 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getCenterPhysR | ( | int | material | ) | const |
Definition at line 441 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMaxPhysR | ( | ) |
Returns the max. phys position in each direction corresponding to all non-zero material numbers.
Definition at line 381 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMaxPhysR | ( | ) | const |
Definition at line 388 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMaxPhysR | ( | int | material | ) |
Returns the max. phys position in each direction corresponding to material number.
Definition at line 363 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMaxPhysR | ( | int | material | ) | const |
Definition at line 370 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMinPhysR | ( | ) |
Returns the min. phys position in each direction corresponding to all non-zero material numbers.
Definition at line 350 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMinPhysR | ( | ) | const |
Definition at line 357 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMinPhysR | ( | int | material | ) |
Returns the min. phys position in each direction corresponding to material number.
Definition at line 331 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getMinPhysR | ( | int | material | ) | const |
Definition at line 338 of file superGeometryStatistics3D.hh.
int olb::SuperGeometryStatistics3D< T >::getNmaterials | ( | ) |
Returns the number of different materials.
Definition at line 281 of file superGeometryStatistics3D.hh.
int olb::SuperGeometryStatistics3D< T >::getNmaterials | ( | ) | const |
Definition at line 288 of file superGeometryStatistics3D.hh.
std::size_t olb::SuperGeometryStatistics3D< T >::getNvoxel | ( | ) |
Returns the number of voxels with material!=0.
Definition at line 312 of file superGeometryStatistics3D.hh.
std::size_t olb::SuperGeometryStatistics3D< T >::getNvoxel | ( | ) | const |
Definition at line 319 of file superGeometryStatistics3D.hh.
std::size_t olb::SuperGeometryStatistics3D< T >::getNvoxel | ( | int | material | ) |
Returns the number of voxels for a given material number.
Definition at line 294 of file superGeometryStatistics3D.hh.
std::size_t olb::SuperGeometryStatistics3D< T >::getNvoxel | ( | int | material | ) | const |
Definition at line 301 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getPhysExtend | ( | int | material | ) |
Returns the phys extend as length in each direction.
Definition at line 394 of file superGeometryStatistics3D.hh.
std::vector< T > olb::SuperGeometryStatistics3D< T >::getPhysExtend | ( | int | material | ) | const |
Definition at line 401 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getPhysRadius | ( | int | material | ) |
Returns the phys radius as length in each direction.
Definition at line 416 of file superGeometryStatistics3D.hh.
olb::Vector< T, 3 > olb::SuperGeometryStatistics3D< T >::getPhysRadius | ( | int | material | ) | const |
Definition at line 423 of file superGeometryStatistics3D.hh.
bool & olb::SuperGeometryStatistics3D< T >::getStatisticsStatus | ( | ) |
Read and write access to a flag, which indicates if an uptate is needed (=true)
Definition at line 71 of file superGeometryStatistics3D.hh.
bool const & olb::SuperGeometryStatistics3D< T >::getStatisticsStatus | ( | ) | const |
Read only access to a flag, which indicates if an uptate is needed (=true)
Definition at line 77 of file superGeometryStatistics3D.hh.
olb::Vector< int, 3 > olb::SuperGeometryStatistics3D< T >::getType | ( | int | iC, |
int | iX, | ||
int | iY, | ||
int | iZ ) |
Returns the boundary type which is characterized by a discrte normal (c.f. Zimny)
Definition at line 451 of file superGeometryStatistics3D.hh.
olb::Vector< int, 3 > olb::SuperGeometryStatistics3D< T >::getType | ( | int | iC, |
int | iX, | ||
int | iY, | ||
int | iZ ) const |
Definition at line 458 of file superGeometryStatistics3D.hh.
SuperGeometryStatistics3D< T > & olb::SuperGeometryStatistics3D< T >::operator= | ( | SuperGeometryStatistics3D< T > const & | rhs | ) |
Copy assignment.
Definition at line 59 of file superGeometryStatistics3D.hh.
void olb::SuperGeometryStatistics3D< T >::print | ( | ) |
Prints some statistic information, i.e. the number of voxels and min. max. physical position for each different material.
Definition at line 556 of file superGeometryStatistics3D.hh.
void olb::SuperGeometryStatistics3D< T >::print | ( | ) | const |
Definition at line 563 of file superGeometryStatistics3D.hh.
void olb::SuperGeometryStatistics3D< T >::update | ( | bool | verbose = false | ) |
Updates the statistics if it is really needed.
Definition at line 84 of file superGeometryStatistics3D.hh.
References olb::singleton::MpiManager::getRank(), olb::singleton::MpiManager::getSize(), olb::BlockGeometry< T, D >::getStatistics(), olb::singleton::mpi(), olb::singleton::MpiManager::reduceAndBcast(), and olb::singleton::MpiManager::sendRecv().