Energy split drawing implemented;

Debugging output still present, energy split hard coded
This commit is contained in:
2025-02-28 17:13:34 +01:00
parent 62e3c27ba4
commit 51877687b1
10 changed files with 482 additions and 23 deletions
@@ -55,6 +55,23 @@ class VelocityDistributionFromDensityField : public VelocityDistribution {
CartesianVector rollVelocity(
const Coordinate& position, std::mt19937* engine,
std::shared_ptr<MagneticField> magnetic_field);
// returns a velocity vector drawn from the energy and pitch angle distributions
// use the given magnetic field at the provided position to determine the
// direction of velocity from the pitch angle
// the direction of the perpendicular part of the velocity vector is drawn isotropically
// draw from the distribution below the threshold energy if above = false
// and from above otherwise
CartesianVector rollVelocity(
const Coordinate& position, std::mt19937* engine,
std::shared_ptr<MagneticField> magnetic_field,
const int E_th_bin,
const bool above);
CartesianVector rollVelocity(
const Coordinate& position, std::mt19937* engine,
const int E_th_bin,
const bool above);
private:
// mass of the species of which the density field is a part of
const double mass_kg_;