Macros | Functions
MeshPointsMPI.hpp File Reference

Generates grids for parallel simulations. More...

#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_real_distribution.hpp>
#include "../tessellation/ConvexHull.hpp"
#include "../tessellation/VoronoiMesh.hpp"
#include "../misc/utils.hpp"
Include dependency graph for MeshPointsMPI.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

vector< Vector2DSquareMeshM (int nx, int ny, Tessellation const &tess, Vector2D const &lower_left, Vector2D const &upper_right)
 Creates a cartesian mesh for MPI. More...
 
vector< Vector2DCirclePointsRmaxM (int PointNum, double Rmin, double Rmax, Vector2D const &bottomleft, Vector2D const &topright, Tessellation const &tess, double xc=0, double yc=0)
 Generates a round grid with constant point density. More...
 
vector< Vector2DCirclePointsRmax_aM (int PointNum, double Rmin, double Rmax, double xc, double yc, double alpha, Tessellation const &tess)
 Generates a round grid with r^alpha point density. More...
 
vector< Vector2Dcircle_circumferenceM (int point_number, double radius, Vector2D const &center, Tessellation const &tproc)
 Creates a circle of evenly spaced points. More...
 
vector< Vector2DRandSquare (int npoints, Tessellation const &tess, Vector2D const &lowerleft, Vector2D const &upperright)
 Creates a uniform random mesh for MPI. More...
 

Detailed Description

Generates grids for parallel simulations.

Author
Elad Steinberg

Definition in file MeshPointsMPI.hpp.

Function Documentation

◆ circle_circumferenceM()

vector<Vector2D> circle_circumferenceM ( int  point_number,
double  radius,
Vector2D const &  center,
Tessellation const &  tproc 
)

Creates a circle of evenly spaced points.

Parameters
point_numberNumber of points along the circumference
radiusRadius of the circle
centerPosition of the center of the circle
tprocThe tessellation of the processors
Returns
List of two dimensional points

Definition at line 256 of file MeshPointsMPI.cpp.

Here is the call graph for this function:

◆ CirclePointsRmax_aM()

vector<Vector2D> CirclePointsRmax_aM ( int  PointNum,
double  Rmin,
double  Rmax,
double  xc,
double  yc,
double  alpha,
Tessellation const &  tess 
)

Generates a round grid with r^alpha point density.

Parameters
PointNumThe number of points.
RminThe min radius
RmaxThe max radius
xcX of circle center
ycY of circle center
alphaThe point density, should not be -1 or -2
tessThe tessellation of the processors
Returns
List of two dimensional points

Definition at line 218 of file MeshPointsMPI.cpp.

Here is the call graph for this function:

◆ CirclePointsRmaxM()

vector<Vector2D> CirclePointsRmaxM ( int  PointNum,
double  Rmin,
double  Rmax,
Vector2D const &  bottomleft,
Vector2D const &  topright,
Tessellation const &  tess,
double  xc = 0,
double  yc = 0 
)

Generates a round grid with constant point density.

Parameters
PointNumThe number of points.
RminThe min radius
RmaxThe max radius
bottomleftThe lower left corner of a boundaing box to cut off the circle
toprightThe top right corner of a boundaing box to cut off the circle
tessThe tessellation of the processors
xcX of circle center
ycY of circle center
Returns
List of two dimensional points

Definition at line 179 of file MeshPointsMPI.cpp.

Here is the call graph for this function:

◆ RandSquare()

vector<Vector2D> RandSquare ( int  npoints,
Tessellation const &  tess,
Vector2D const &  lowerleft,
Vector2D const &  upperright 
)

Creates a uniform random mesh for MPI.

Parameters
npointsThe total number of point
tessThe tessellation of the processors
lowerleftThe lower left point of the domain
upperrightThe upper right point of the domain
Returns
The set of points corresponding to the local process

Definition at line 115 of file MeshPointsMPI.cpp.

Here is the call graph for this function:

◆ SquareMeshM()

vector<Vector2D> SquareMeshM ( int  nx,
int  ny,
Tessellation const &  tess,
Vector2D const &  lower_left,
Vector2D const &  upper_right 
)

Creates a cartesian mesh for MPI.

Parameters
nxThe total number of point in the x direction
nyThe total number of point in the y direction
tessThe tessellation of the processors
lower_leftLower left point
upper_rightUpper right point
Returns
The set of points corresponding to the local process

Definition at line 146 of file MeshPointsMPI.cpp.

Here is the call graph for this function: