![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <paragrid3d.h>
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< CellType > | Id2Type |
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 |
ParaGrid3D::ParaGrid3D | ( | Array< int > const & | N, |
Array< double > & | L, | ||
char const * | FileKey = NULL , |
||
MetisAlgo | Algo = Recursive_t |
||
) | [inline] |
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.
Dimension of each cell (dx,dy,dz)
Array< Array<int> > ParaGrid3D::Id2NeighProcs |
Id of cell to neighbour processors/partitions of cell: size == num cells. Only valid for those cells belonging to this processor.
Array<int> ParaGrid3D::Id2Proc |
Id of cell to partition/processor number: size==num cells.
Id of cell to type: size==num cells.
Array<double> ParaGrid3D::L |
Size of the grid (xmin,xmax, ymin,ymax, zmin,zmax)
Array<int> ParaGrid3D::N |
Number of cells along each axis.
Neighbour processors/partitions of this processor.