Energy split drawing implemented;
Debugging output still present, energy split hard coded
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user