Basic neccessities to draw from a density field;
does not yet work correctly since the neccessary density field is reset after a time resolution step
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
class DriftVelocity;
|
||||
class VelocityDistribution;
|
||||
class DynamicDensityField;
|
||||
|
||||
namespace particle {
|
||||
class Particle;
|
||||
@@ -37,8 +38,16 @@ class Injector {
|
||||
std::shared_ptr<DriftVelocity> mother_drift_velocity);
|
||||
|
||||
std::vector<particle::Particle> rollNewParticles(std::mt19937* engine,
|
||||
const double current_time,
|
||||
const int time_resolution_events);
|
||||
const double current_time);
|
||||
|
||||
void rollNewParticleFromDensityField(std::mt19937* engine,
|
||||
std::shared_ptr<species::TrackedSpecie> specie,
|
||||
std::vector<particle::Particle>& queue,
|
||||
const double weight,
|
||||
const double injection_time);
|
||||
|
||||
void initInjectionTimeDistribution(double delta_t);
|
||||
|
||||
double timePassed() const;
|
||||
|
||||
private:
|
||||
@@ -46,6 +55,7 @@ class Injector {
|
||||
const double activity_;
|
||||
std::shared_ptr<EventPositionDistribution> position_distribution_;
|
||||
std::shared_ptr<DriftVelocity> mother_drift_velocity_;
|
||||
std::uniform_real_distribution<double> injection_time_distribution_;
|
||||
|
||||
particle::Particle rollNewParticle(
|
||||
std::mt19937* engine,
|
||||
|
||||
Reference in New Issue
Block a user