MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
Public Types | Public Member Functions | Public Attributes
ParaGrid3D Class Reference

#include <paragrid3d.h>

List of all members.

Public Types

enum  MetisAlgo { Recursive_t = 0, Kway_t = 1, VKway_t = 2 }

Public Member Functions

 ParaGrid3D (Array< int > const &N, Array< double > &L, char const *FileKey=NULL, MetisAlgo Algo=Recursive_t)
int FindCell (Vec3_t const &X) const
 Get the Id of the cell containing the point with coordinates equal to X.
void FindCells (Vec3_t const &X, double R, int Ids[8]) const
 Get the Ids of the cells crossed by the cube centered at X.

Public Attributes

Array< int > N
 Number of cells along each axis.
Array< double > L
 Size of the grid (xmin,xmax, ymin,ymax, zmin,zmax)
Vec3_t D
 Dimension of each cell (dx,dy,dz)
Array< int > NeighProcs
 Neighbour processors/partitions of this processor.
Array< CellTypeId2Type
 Id of cell to type: size==num cells.
Array< int > Id2Proc
 Id of cell to partition/processor number: size==num cells.
Array< Array< int > > Id2NeighProcs

Member Enumeration Documentation

Enumerator:
Recursive_t 
Kway_t 
VKway_t 

Constructor & Destructor Documentation

ParaGrid3D::ParaGrid3D ( Array< int > const &  N,
Array< double > &  L,
char const *  FileKey = NULL,
MetisAlgo  Algo = Recursive_t 
) [inline]

Member Function Documentation

int ParaGrid3D::FindCell ( Vec3_t const &  X) const

Get the Id of the cell containing the point with coordinates equal to X.

void ParaGrid3D::FindCells ( Vec3_t const &  X,
double  R,
int  Ids[8] 
) const

Get the Ids of the cells crossed by the cube centered at X.


Member Data Documentation

Dimension of each cell (dx,dy,dz)

Id of cell to neighbour processors/partitions of cell: size == num cells. Only valid for those cells belonging to this processor.

Id of cell to partition/processor number: size==num cells.

Id of cell to type: size==num cells.

Size of the grid (xmin,xmax, ymin,ymax, zmin,zmax)

Number of cells along each axis.

Neighbour processors/partitions of this processor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines