Bin based drawing implemented (debug output not
yet removed)
This commit is contained in:
@@ -46,6 +46,12 @@ class PositionDistributionFromDensity {
|
||||
|
||||
// draw a position from the density provided at construction using the rejection method
|
||||
CylinderCoordinate drawPosition(std::mt19937* engine);
|
||||
|
||||
// draw a position uniformly distributed within the bin of the given index
|
||||
// (note that the r-dependence of the particle number in a uniform density distribution
|
||||
// is not incorporated)
|
||||
CylinderCoordinate drawPosition(std::mt19937* engine, int r_idx, int phi_idx,
|
||||
int z_idx);
|
||||
// sets the maximum density value needed for the rejection method
|
||||
// should not be called frequently, since during each call the density field is
|
||||
// recalculated from scratch by the DynamicDensityField object
|
||||
|
||||
Reference in New Issue
Block a user