Implemented pitch angle resolution.

Still includes (and uses) the non-pitch angle
resolved fields as well; have to be either removed
completely or refactored s.t. one of the two options
is chosen.
Pitch angle distribution has a hardcoded number of
bins for now, and exists in 'energy_binning.h'
This commit is contained in:
2024-10-28 15:00:19 +01:00
parent b4cbd8c44c
commit 5fc227e1b1
24 changed files with 1126 additions and 42 deletions
+8
View File
@@ -11,6 +11,7 @@
class DriftVelocity;
class VelocityDistribution;
class DynamicDensityField;
class MagneticField;
namespace particle {
class Particle;
@@ -45,6 +46,13 @@ class Injector {
std::vector<particle::Particle>& queue,
const double weight,
const double injection_time);
void rollNewParticleFromDensityField(std::mt19937* engine,
std::shared_ptr<species::TrackedSpecie> specie,
std::vector<particle::Particle>& queue,
std::shared_ptr<MagneticField> field,
const double weight,
const double injection_time);
void initInjectionTimeDistribution(double delta_t);