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"

Go to the source code of this file.
Functions | |
| vector< Vector2D > | SquareMeshM (int nx, int ny, Tessellation const &tess, Vector2D const &lower_left, Vector2D const &upper_right) |
| Creates a cartesian mesh for MPI. More... | |
| 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. More... | |
| 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. More... | |
| vector< Vector2D > | circle_circumferenceM (int point_number, double radius, Vector2D const ¢er, Tessellation const &tproc) |
| Creates a circle of evenly spaced points. More... | |
| vector< Vector2D > | RandSquare (int npoints, Tessellation const &tess, Vector2D const &lowerleft, Vector2D const &upperright) |
| Creates a uniform random mesh for MPI. More... | |
Generates grids for parallel simulations.
Definition in file MeshPointsMPI.hpp.
| vector<Vector2D> circle_circumferenceM | ( | int | point_number, |
| double | radius, | ||
| Vector2D const & | center, | ||
| Tessellation const & | tproc | ||
| ) |
Creates a circle of evenly spaced points.
| point_number | Number of points along the circumference |
| radius | Radius of the circle |
| center | Position of the center of the circle |
| tproc | The tessellation of the processors |
Definition at line 256 of file MeshPointsMPI.cpp.

| 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.
| PointNum | The number of points. |
| Rmin | The min radius |
| Rmax | The max radius |
| xc | X of circle center |
| yc | Y of circle center |
| alpha | The point density, should not be -1 or -2 |
| tess | The tessellation of the processors |
Definition at line 218 of file MeshPointsMPI.cpp.

| 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.
| PointNum | The number of points. |
| Rmin | The min radius |
| Rmax | The max radius |
| bottomleft | The lower left corner of a boundaing box to cut off the circle |
| topright | The top right corner of a boundaing box to cut off the circle |
| tess | The tessellation of the processors |
| xc | X of circle center |
| yc | Y of circle center |
Definition at line 179 of file MeshPointsMPI.cpp.

| vector<Vector2D> RandSquare | ( | int | npoints, |
| Tessellation const & | tess, | ||
| Vector2D const & | lowerleft, | ||
| Vector2D const & | upperright | ||
| ) |
Creates a uniform random mesh for MPI.
| npoints | The total number of point |
| tess | The tessellation of the processors |
| lowerleft | The lower left point of the domain |
| upperright | The upper right point of the domain |
Definition at line 115 of file MeshPointsMPI.cpp.

| vector<Vector2D> SquareMeshM | ( | int | nx, |
| int | ny, | ||
| Tessellation const & | tess, | ||
| Vector2D const & | lower_left, | ||
| Vector2D const & | upper_right | ||
| ) |
Creates a cartesian mesh for MPI.
| nx | The total number of point in the x direction |
| ny | The total number of point in the y direction |
| tess | The tessellation of the processors |
| lower_left | Lower left point |
| upper_right | Upper right point |
Definition at line 146 of file MeshPointsMPI.cpp.

1.8.13