Bin based drawing implemented (debug output not

yet removed)
This commit is contained in:
2025-05-14 16:41:19 +02:00
parent 60430abcba
commit b28245f1a8
14 changed files with 328 additions and 36 deletions
@@ -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_;