Workspace 6.21.5
Public Member Functions | Protected Member Functions | List of all members
PartitionConstantBase Class Reference

#include <Mesh/DataStructures/partitionconstantbase.h>

Inheritance diagram for PartitionConstantBase:
[legend]

Public Member Functions

 PartitionConstantBase (const Vector3d &minDim, const Vector3d &maxDim, double spacing)
 
double GetGridSpacing () const
 
long GetKey (const Vector3d &v) const
 
long GetKey (long x, long y, long z) const
 
const Vector3dGetMaxControlVolume () const
 
const Vector3dGetMinControlVolume () const
 
long GetNumCellsX () const
 
long GetNumCellsY () const
 
long GetNumCellsZ () const
 
bool ValidIndexes (long x, long y, long z) const
 

Protected Member Functions

long FindCellIndex (const Vector3d &pos, int axis) const
 Find the axis index of the cell that encompasses pos.
 
long FindCellIndex (double d, int axis) const
 Find the axis index of the cell that encompasses d, which is the co-ordinate in the axis direction.
 

Constructor & Destructor Documentation

◆ PartitionConstantBase()

PartitionConstantBase ( const Vector3d minDim,
const Vector3d maxDim,
double  spacing 
)
inline

Member Function Documentation

◆ FindCellIndex() [1/2]

long FindCellIndex ( const Vector3d pos,
int  axis 
) const
inlineprotected

◆ FindCellIndex() [2/2]

long FindCellIndex ( double  d,
int  axis 
) const
inlineprotected

◆ GetGridSpacing()

double GetGridSpacing ( ) const
inline

◆ GetKey() [1/2]

long GetKey ( const Vector3d v) const
inline

◆ GetKey() [2/2]

long GetKey ( long  x,
long  y,
long  z 
) const
inline
Returns
The key that uniquely identifies the cell that the specified location belongs to.

◆ GetMaxControlVolume()

const Vector3d & GetMaxControlVolume ( ) const
inline

◆ GetMinControlVolume()

const Vector3d & GetMinControlVolume ( ) const
inline

◆ GetNumCellsX()

long GetNumCellsX ( ) const
inline

◆ GetNumCellsY()

long GetNumCellsY ( ) const
inline

◆ GetNumCellsZ()

long GetNumCellsZ ( ) const
inline

◆ ValidIndexes()

bool ValidIndexes ( long  x,
long  y,
long  z 
) const
inline
Returns
True if the specified location is within the range of the model.