|
SPH
|
Generates random positions using stratified sampling. More...
#include <Distribution.h>
Public Member Functions | |
| StratifiedDistribution (const Size seed) | |
| virtual Array< Vector > | generate (IScheduler &scheduler, const Size n, const IDomain &domain) const override |
| Generates the requested number of particles in the domain. More... | |
Public Member Functions inherited from Polymorphic | |
| virtual | ~Polymorphic () |
Generates random positions using stratified sampling.
Definition at line 55 of file Distribution.h.
|
explicit |
Definition at line 63 of file Distribution.cpp.
|
overridevirtual |
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 |
Implements IDistribution.
Definition at line 66 of file Distribution.cpp.