Bin based drawing implemented (debug output not
yet removed)
This commit is contained in:
@@ -55,6 +55,15 @@ class VelocityDistributionFromDensityField : public VelocityDistribution {
|
||||
CartesianVector rollVelocity(
|
||||
const Coordinate& position, std::mt19937* engine,
|
||||
std::shared_ptr<MagneticField> magnetic_field);
|
||||
|
||||
// return a velocity vector drawn uniformly in the bin specifed by index
|
||||
CartesianVector drawVelocity(const blitz::TinyVector<int, 5> index,
|
||||
std::mt19937* engine);
|
||||
CartesianVector drawVelocity(const blitz::TinyVector<int, 5> index,
|
||||
std::mt19937* engine,
|
||||
const Coordinate& position,
|
||||
std::shared_ptr<MagneticField> magnetic_field);
|
||||
|
||||
private:
|
||||
// mass of the species of which the density field is a part of
|
||||
const double mass_kg_;
|
||||
|
||||
Reference in New Issue
Block a user