MeshPointsMPI.hpp
Go to the documentation of this file.
1 
6 #ifndef MESHPOINTSMPI_HPP
7 #define MESHPOINTSMPI_HPP 1
8 #ifdef RICH_MPI
9 #define _USE_MATH_DEFINES
10 #include <boost/random/mersenne_twister.hpp>
11 #include <boost/random/uniform_real_distribution.hpp>
12 #include "../tessellation/ConvexHull.hpp"
13 #include "../tessellation/VoronoiMesh.hpp"
14 #include "../misc/utils.hpp"
15 
25 vector<Vector2D> SquareMeshM(int nx,int ny,Tessellation const& tess,
26  Vector2D const& lower_left,
27  Vector2D const& upper_right);
28 
41 vector<Vector2D> CirclePointsRmaxM(int PointNum,double Rmin,double Rmax,
42  Vector2D const& bottomleft,Vector2D const& topright,
43  Tessellation const& tess,double xc=0,double yc=0);
55 vector<Vector2D> CirclePointsRmax_aM(int PointNum,double Rmin,double Rmax,
56  double xc,double yc,double alpha,Tessellation const& tess);
57 
66 vector<Vector2D> circle_circumferenceM(int point_number,double radius,
67  Vector2D const& center,Tessellation const& tproc);
68 
77 vector<Vector2D> RandSquare(int npoints,Tessellation const& tess,
78  Vector2D const& lowerleft,Vector2D const& upperright);
79 
80 #endif
81 #endif //MESHPOINTSMPI_HPP
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.
vector< Vector2D > SquareMeshM(int nx, int ny, Tessellation const &tess, Vector2D const &lower_left, Vector2D const &upper_right)
Creates a cartesian mesh for MPI.
Abstract class for tessellation.
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.
vector< Vector2D > circle_circumferenceM(int point_number, double radius, Vector2D const &center, Tessellation const &tproc)
Creates a circle of evenly spaced points.
vector< Vector2D > RandSquare(int npoints, Tessellation const &tess, Vector2D const &lowerleft, Vector2D const &upperright)
Creates a uniform random mesh for MPI.
2D Mathematical vector
Definition: geometry.hpp:15