SPH
|
Generates particles uniformly on a line in x direction, for testing purposes. More...
#include <Distribution.h>
Public Member Functions | |
virtual Array< Vector > | generate (IScheduler &scheduler, const Size n, const IDomain &domain) const override |
Generates the requested number of particles in the domain. More... | |
![]() | |
virtual | ~Polymorphic () |
Generates particles uniformly on a line in x direction, for testing purposes.
Uses only center and radius of the domain.
Definition at line 179 of file Distribution.h.
|
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 492 of file Distribution.cpp.