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 aggr , typename layout , template< typename > class layout_base, typename Decomposition > | |
static PointIteratorSkin< dim, T, Decomposition > | DrawSkin (vector_dist< dim, T, aggr, layout, layout_base, Decomposition > &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) More... | |
template<unsigned int dim, typename T , typename aggr , typename layout , template< typename > class layout_base, typename Decomposition > | |
static PointIteratorSkin< dim, T, Decomposition > | DrawSkin (vector_dist< dim, T, aggr, layout, layout_base, Decomposition > &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. More... | |
template<unsigned int dim, typename T , typename aggr , typename layout , template< typename > class layout_base, typename Decomposition > | |
static PointIterator< dim, T, Decomposition > | DrawBox (vector_dist< dim, T, aggr, layout, layout_base, Decomposition > &vd, size_t(&sz)[dim], Box< dim, T > &domain, Box< dim, T > &sub) |
Draw particles in a box. More... | |
|
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 121 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 47 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 83 of file DrawParticles.hpp.