SPH
|
Base class for generating vertices with specific distribution. More...
#include <Distribution.h>
Public Member Functions | |
virtual Array< Vector > | generate (IScheduler &scheduler, const Size n, const IDomain &domain) const =0 |
Generates the requested number of particles in the domain. More... | |
![]() | |
virtual | ~Polymorphic () |
Base class for generating vertices with specific distribution.
Also generates corresponding smoothing lengths and save them as fourth component of the vector.
Definition at line 21 of file Distribution.h.
|
pure virtual |
Generates the requested number of particles in the domain.
Function shall also set the smoothing lenghts of the generated particles in the 4th components of the returned vectors.
scheduler | Scheduler that can be used for parallelization. |
n | Expected number of generated particles. |
domain | Computational domain where the vertices are distributed |
Implemented in LinearDistribution, ParametrizedSpiralingDistribution, DiehlDistribution, HexagonalPacking, CubicPacking, StratifiedDistribution, RandomDistribution, PlanarDistribution, KelvinHelmholtzDistribution, and Distribution.