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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user