OpenLB 1.7
|
#include <blockGeometryStatistics2D.h>
Public Member Functions | |
BlockGeometryStatistics2D (BlockGeometry< T, 2 > *blockGeometry) | |
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) | |
std::map< int, int > | getMaterial2n () |
Returns the map with the numbers of voxels for each material. | |
std::map< int, int > | getMaterial2n () const |
void | update (bool verbose=true) |
Updates the statistics if it is really needed. | |
int | getNmaterials () |
Returns the number of different materials. | |
int | getNmaterials () const |
int | getNvoxel (int material) |
Returns the number of voxels for a given material number. | |
int | getNvoxel (int material) const |
int | getNvoxel () |
Returns the number of voxels with material!=0. | |
int | getNvoxel () const |
std::vector< int > | getMinLatticeR (int material) |
Returns the min. lattice position in each direction. | |
std::vector< int > | getMinLatticeR (int material) const |
std::vector< int > | getMaxLatticeR (int material) |
Returns the max. lattice position in each direction. | |
std::vector< int > | getMaxLatticeR (int material) const |
std::vector< T > | getMinPhysR (int material) const |
Returns the min. phys position in each direction. | |
std::vector< T > | getMaxPhysR (int material) const |
Returns the max. phys position in each direction. | |
std::vector< T > | getLatticeExtend (int material) |
Returns the lattice extend as length in each direction. | |
std::vector< T > | getLatticeExtend (int material) const |
std::vector< T > | getPhysExtend (int material) |
Returns the phys extend as length in each direction. | |
std::vector< T > | getPhysExtend (int material) const |
std::vector< T > | getPhysRadius (int material) |
Returns the phys radius as length in each direction. | |
std::vector< T > | getPhysRadius (int material) const |
std::vector< T > | getCenterPhysR (int material) |
Returns the center position. | |
std::vector< T > | getCenterPhysR (int material) const |
std::vector< int > | getType (const int *input) const |
Returns the boundary type which is characterized by a discrete normal (c.f. Zimny) | |
std::vector< int > | getType (int iX, int iY) const |
std::vector< int > | computeNormal (int iX, int iY) |
Returns normal that points into the fluid for paraxial surfaces. | |
std::vector< int > | computeNormal (int iX, int iY) const |
std::vector< T > | computeNormal (int material) |
Returns normal that points into the fluid for paraxial surfaces. | |
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. | |
std::vector< int > | computeDiscreteNormal (int material, T maxNorm=1.1) const |
bool | check (int material, int iX, int iY, unsigned offsetX, unsigned offsetY) |
bool | check (int material, int iX, int iY, unsigned offsetX, unsigned offsetY) const |
bool | find (int material, unsigned offsetX, unsigned offsetY, int &iX, int &iY) |
bool | find (int material, unsigned offsetX, unsigned offsetY, int &iX, int &iY) const |
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 53 of file blockGeometryStatistics2D.h.
olb::BlockGeometryStatistics2D< T >::BlockGeometryStatistics2D | ( | BlockGeometry< T, 2 > * | blockGeometry | ) |
Definition at line 43 of file blockGeometryStatistics2D.hh.
bool olb::BlockGeometryStatistics2D< T >::check | ( | int | material, |
int | iX, | ||
int | iY, | ||
unsigned | offsetX, | ||
unsigned | offsetY ) |
Definition at line 509 of file blockGeometryStatistics2D.hh.
bool olb::BlockGeometryStatistics2D< T >::check | ( | int | material, |
int | iX, | ||
int | iY, | ||
unsigned | offsetX, | ||
unsigned | offsetY ) const |
Definition at line 516 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< 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 480 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::computeDiscreteNormal | ( | int | material, |
T | maxNorm = 1.1 ) const |
Definition at line 486 of file blockGeometryStatistics2D.hh.
References olb::norm(), and olb::util::sqrt().
std::vector< int > olb::BlockGeometryStatistics2D< T >::computeNormal | ( | int | iX, |
int | iY ) |
Returns normal that points into the fluid for paraxial surfaces.
Definition at line 418 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::computeNormal | ( | int | iX, |
int | iY ) const |
Definition at line 424 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::computeNormal | ( | int | material | ) |
Returns normal that points into the fluid for paraxial surfaces.
Definition at line 452 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::computeNormal | ( | int | material | ) | const |
Definition at line 458 of file blockGeometryStatistics2D.hh.
References olb::norm(), and olb::util::sqrt().
bool olb::BlockGeometryStatistics2D< T >::find | ( | int | material, |
unsigned | offsetX, | ||
unsigned | offsetY, | ||
int & | iX, | ||
int & | iY ) |
Definition at line 531 of file blockGeometryStatistics2D.hh.
References olb::BlockGeometryStatistics2D< T >::find().
bool olb::BlockGeometryStatistics2D< T >::find | ( | int | material, |
unsigned | offsetX, | ||
unsigned | offsetY, | ||
int & | iX, | ||
int & | iY ) const |
Definition at line 538 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getCenterPhysR | ( | int | material | ) |
Returns the center position.
Definition at line 262 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getCenterPhysR | ( | int | material | ) | const |
Definition at line 269 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getLatticeExtend | ( | int | material | ) |
Returns the lattice extend as length in each direction.
Definition at line 205 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getLatticeExtend | ( | int | material | ) | const |
Definition at line 212 of file blockGeometryStatistics2D.hh.
std::map< int, int > olb::BlockGeometryStatistics2D< T >::getMaterial2n | ( | ) |
Returns the map with the numbers of voxels for each material.
Definition at line 121 of file blockGeometryStatistics2D.hh.
std::map< int, int > olb::BlockGeometryStatistics2D< T >::getMaterial2n | ( | ) | const |
Definition at line 128 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getMaxLatticeR | ( | int | material | ) |
Returns the max. lattice position in each direction.
Definition at line 170 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getMaxLatticeR | ( | int | material | ) | const |
Definition at line 177 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getMaxPhysR | ( | int | material | ) | const |
Returns the max. phys position in each direction.
Definition at line 197 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getMinLatticeR | ( | int | material | ) |
Returns the min. lattice position in each direction.
Definition at line 151 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getMinLatticeR | ( | int | material | ) | const |
Definition at line 158 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getMinPhysR | ( | int | material | ) | const |
Returns the min. phys position in each direction.
Definition at line 189 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNmaterials | ( | ) |
Returns the number of different materials.
Definition at line 90 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNmaterials | ( | ) | const |
Definition at line 97 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNvoxel | ( | ) |
Returns the number of voxels with material!=0.
Definition at line 134 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNvoxel | ( | ) | const |
Definition at line 141 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNvoxel | ( | int | material | ) |
Returns the number of voxels for a given material number.
Definition at line 103 of file blockGeometryStatistics2D.hh.
int olb::BlockGeometryStatistics2D< T >::getNvoxel | ( | int | material | ) | const |
Definition at line 110 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getPhysExtend | ( | int | material | ) |
Returns the phys extend as length in each direction.
Definition at line 228 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getPhysExtend | ( | int | material | ) | const |
Definition at line 235 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getPhysRadius | ( | int | material | ) |
Returns the phys radius as length in each direction.
Definition at line 245 of file blockGeometryStatistics2D.hh.
std::vector< T > olb::BlockGeometryStatistics2D< T >::getPhysRadius | ( | int | material | ) | const |
Definition at line 252 of file blockGeometryStatistics2D.hh.
bool & olb::BlockGeometryStatistics2D< T >::getStatisticsStatus | ( | ) |
Read and write access to a flag, which indicates if an uptate is needed (=true)
Definition at line 52 of file blockGeometryStatistics2D.hh.
bool const & olb::BlockGeometryStatistics2D< T >::getStatisticsStatus | ( | ) | const |
Read only access to a flag, which indicates if an uptate is needed (=true)
Definition at line 58 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getType | ( | const int * | input | ) | const |
Returns the boundary type which is characterized by a discrete normal (c.f. Zimny)
Definition at line 279 of file blockGeometryStatistics2D.hh.
std::vector< int > olb::BlockGeometryStatistics2D< T >::getType | ( | int | iX, |
int | iY ) const |
boundary0N and boundary 0P
boundary1N and boundary1P
externalCornerNN and externalCornerNP
externalCornerPN and externalCornerPP
internalCornerNN and internalCornerNP
internalCornerPN and internalCornerPP
Definition at line 285 of file blockGeometryStatistics2D.hh.
void olb::BlockGeometryStatistics2D< T >::print | ( | ) |
Prints some statistic information, i.e. the number of voxels and min. max. physical position for each different material.
Definition at line 554 of file blockGeometryStatistics2D.hh.
void olb::BlockGeometryStatistics2D< T >::print | ( | ) | const |
Definition at line 561 of file blockGeometryStatistics2D.hh.
void olb::BlockGeometryStatistics2D< T >::update | ( | bool | verbose = true | ) |
Updates the statistics if it is really needed.
Definition at line 65 of file blockGeometryStatistics2D.hh.