OpenLB 1.6
|
#include <superGeometryStatistics2D.h>
Public Member Functions | |
SuperGeometryStatistics2D (SuperGeometry< T, 2 > *superGeometry) | |
Constructor. More... | |
SuperGeometryStatistics2D (SuperGeometryStatistics2D const &rhs) | |
Copy constructor. More... | |
SuperGeometryStatistics2D< T > & | operator= (SuperGeometryStatistics2D const &rhs) |
Copy assignment. More... | |
bool & | getStatisticsStatus () |
Read and write access to a flag, which indicates if an uptate is needed (=true) More... | |
bool const & | getStatisticsStatus () const |
Read only access to a flag, which indicates if an uptate is needed (=true) More... | |
void | update (bool verbose=false) |
Updates the statistics if it is really needed. More... | |
int | getNmaterials () |
Returns the number of different materials. More... | |
int | getNmaterials () const |
int | getNvoxel (int material) |
Returns the number of voxels for a given material number. More... | |
int | getNvoxel (int material) const |
int | getNvoxel () |
Returns the number of voxels with material!=0. More... | |
int | getNvoxel () const |
std::vector< T > | getMinPhysR (int material) |
Returns the min. phys position in each direction. More... | |
std::vector< T > | getMinPhysR (int material) const |
std::vector< T > | getMaxPhysR (int material) |
Returns the max. phys position in each direction. More... | |
std::vector< T > | getMaxPhysR (int material) const |
std::vector< T > | getPhysExtend (int material) |
Returns the phys extend as length in each direction. More... | |
std::vector< T > | getPhysExtend (int material) const |
std::vector< T > | getPhysRadius (int material) |
Returns the phys radius as length in each direction. More... | |
std::vector< T > | getPhysRadius (int material) const |
std::vector< T > | getCenterPhysR (int material) |
Returns the center position. More... | |
std::vector< T > | getCenterPhysR (int material) const |
std::vector< int > | getType (int iC, int iX, int iY) |
Returns the boundary type which is characterized by a discrte normal (c.f. Zimny) More... | |
std::vector< int > | getType (int iC, int iX, int iY) const |
std::vector< T > | computeNormal (int material) |
Returns normal that points into the fluid for paraxial surfaces. More... | |
std::vector< T > | computeNormal (int material) const |
std::vector< int > | 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. More... | |
std::vector< int > | computeDiscreteNormal (int material, T maxNorm=1.1) const |
void | print () |
Prints some statistic information, i.e. the number of voxels and min. max. physical position for each different material. More... | |
void | print () const |
Definition at line 56 of file superGeometryStatistics2D.h.
olb::SuperGeometryStatistics2D< T >::SuperGeometryStatistics2D | ( | SuperGeometry< T, 2 > * | superGeometry | ) |
Constructor.
Definition at line 40 of file superGeometryStatistics2D.hh.
olb::SuperGeometryStatistics2D< T >::SuperGeometryStatistics2D | ( | SuperGeometryStatistics2D< T > const & | rhs | ) |
Copy constructor.
Definition at line 46 of file superGeometryStatistics2D.hh.
std::vector< int > olb::SuperGeometryStatistics2D< 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 439 of file superGeometryStatistics2D.hh.
std::vector< int > olb::SuperGeometryStatistics2D< T >::computeDiscreteNormal | ( | int | material, |
T | maxNorm = 1.1 |
||
) | const |
Definition at line 446 of file superGeometryStatistics2D.hh.
References olb::norm(), and olb::util::sqrt().
std::vector< T > olb::SuperGeometryStatistics2D< T >::computeNormal | ( | int | material | ) |
Returns normal that points into the fluid for paraxial surfaces.
Definition at line 398 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::computeNormal | ( | int | material | ) | const |
Definition at line 405 of file superGeometryStatistics2D.hh.
References olb::singleton::mpi(), olb::norm(), OLB_ASSERT, olb::singleton::MpiManager::reduceAndBcast(), and olb::util::sqrt().
std::vector< T > olb::SuperGeometryStatistics2D< T >::getCenterPhysR | ( | int | material | ) |
Returns the center position.
Definition at line 367 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getCenterPhysR | ( | int | material | ) | const |
Definition at line 374 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getMaxPhysR | ( | int | material | ) |
Returns the max. phys position in each direction.
Definition at line 310 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getMaxPhysR | ( | int | material | ) | const |
Definition at line 317 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getMinPhysR | ( | int | material | ) |
Returns the min. phys position in each direction.
Definition at line 292 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getMinPhysR | ( | int | material | ) | const |
Definition at line 299 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNmaterials |
Returns the number of different materials.
Definition at line 242 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNmaterials |
Definition at line 249 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNvoxel |
Returns the number of voxels with material!=0.
Definition at line 273 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNvoxel |
Definition at line 280 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNvoxel | ( | int | material | ) |
Returns the number of voxels for a given material number.
Definition at line 255 of file superGeometryStatistics2D.hh.
int olb::SuperGeometryStatistics2D< T >::getNvoxel | ( | int | material | ) | const |
Definition at line 262 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getPhysExtend | ( | int | material | ) |
Returns the phys extend as length in each direction.
Definition at line 328 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getPhysExtend | ( | int | material | ) | const |
Definition at line 335 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getPhysRadius | ( | int | material | ) |
Returns the phys radius as length in each direction.
Definition at line 350 of file superGeometryStatistics2D.hh.
std::vector< T > olb::SuperGeometryStatistics2D< T >::getPhysRadius | ( | int | material | ) | const |
Definition at line 357 of file superGeometryStatistics2D.hh.
bool & olb::SuperGeometryStatistics2D< T >::getStatisticsStatus |
Read and write access to a flag, which indicates if an uptate is needed (=true)
Definition at line 62 of file superGeometryStatistics2D.hh.
bool const & olb::SuperGeometryStatistics2D< T >::getStatisticsStatus |
Read only access to a flag, which indicates if an uptate is needed (=true)
Definition at line 68 of file superGeometryStatistics2D.hh.
std::vector< int > olb::SuperGeometryStatistics2D< T >::getType | ( | int | iC, |
int | iX, | ||
int | iY | ||
) |
Returns the boundary type which is characterized by a discrte normal (c.f. Zimny)
Definition at line 384 of file superGeometryStatistics2D.hh.
std::vector< int > olb::SuperGeometryStatistics2D< T >::getType | ( | int | iC, |
int | iX, | ||
int | iY | ||
) | const |
Definition at line 390 of file superGeometryStatistics2D.hh.
SuperGeometryStatistics2D< T > & olb::SuperGeometryStatistics2D< T >::operator= | ( | SuperGeometryStatistics2D< T > const & | rhs | ) |
Copy assignment.
Definition at line 53 of file superGeometryStatistics2D.hh.
void olb::SuperGeometryStatistics2D< T >::print |
Prints some statistic information, i.e. the number of voxels and min. max. physical position for each different material.
Definition at line 469 of file superGeometryStatistics2D.hh.
void olb::SuperGeometryStatistics2D< T >::print |
Definition at line 476 of file superGeometryStatistics2D.hh.
void olb::SuperGeometryStatistics2D< T >::update | ( | bool | verbose = false | ) |
Updates the statistics if it is really needed.
Definition at line 75 of file superGeometryStatistics2D.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().