A class to draw/create particles based on simple shaped. More...
A class to draw/create particles based on simple shaped.
Definition at line 22 of file DrawParticles.hpp.
#include <DrawParticles.hpp>
Static Public Member Functions | |
| template<unsigned int dim, typename T , typename vd_type > | |
| static PointIteratorSkin< dim, T, typename vd_type::Decomposition_type > | DrawSkin (vd_type &vd, size_t(&sz)[dim], Box< dim, T > &domain, Box< dim, T > &sub_A, Box< dim, T > &sub_B) |
| Draw particles in a box B excluding the area of a second box A (B - A) | |
| template<unsigned int dim, typename T , typename vd_type > | |
| static PointIteratorSkin< dim, T, typename vd_type::Decomposition_type > | DrawSkin (vd_type &vd, size_t(&sz)[dim], Box< dim, T > &domain, openfpm::vector< Box< dim, T > > &sub_A, Box< dim, T > &sub_B) |
| Draw particles in a box B excluding the areas of an array of boxes A_n. | |
| template<unsigned int dim, typename T , typename vd_type > | |
| static PointIterator< dim, T, typename vd_type::Decomposition_type > | DrawBox (vd_type &vd, size_t(&sz)[dim], Box< dim, T > &domain, Box< dim, T > &sub) |
| Draw particles in a box. | |
|
inlinestatic |
Draw particles in a box.
The function return an iterator over particles defined on a virtual grid in the simulation domain.
| vd | particles where we are creating the particles |
| sz | indicate the grid size of the virtual grid. |
| domain | Domain where the virtual grid is defined (Must match the domain of vd) |
| sub | box contained in domain that define where the particle iterator must iterate, particles are placed strictly inside this box |
Definition at line 123 of file DrawParticles.hpp.
|
inlinestatic |
Draw particles in a box B excluding the area of a second box A (B - A)
The function return an iterator over particles defined on a virtual grid in the simulation domain.
| vd | particles where we are creating the particles |
| sz | indicate the grid size of the virtual grid. |
| domain | Domain where the virtual grid is defined (Must match the domain of vd) |
| sub_B | box contained in domain that define where the particle iterator must iterate, particles are placed strictly inside this box |
| sub_A | box contained in the domain that define where the particle iterator should not iterate (excluding area) |
Definition at line 48 of file DrawParticles.hpp.
|
inlinestatic |
Draw particles in a box B excluding the areas of an array of boxes A_n.
The function return an iterator over particles defined on a virtual grid in the simulation domain.
| vd | particles where we are creating the particles |
| sz | indicate the grid size of the virtual grid. |
| domain | Domain where the virtual grid is defined (Must match the domain of vd) |
| sub_B | box contained in domain that define where the particle iterator must iterate, particles are placed strictly inside this box |
| sub_A | array of boxes contained in the domain that define where the particle iterator should not iterate (excluding areas) |
Definition at line 85 of file DrawParticles.hpp.