Some optimizations (mfp: vector instead of recalc,

reduced number of density recalculations);
Default gravity field of 0;
adjusted error output
This commit is contained in:
2025-01-29 16:59:10 +01:00
parent 5dffc0c102
commit b529021149
5 changed files with 74 additions and 35 deletions
+6 -3
View File
@@ -43,12 +43,15 @@ class Simulation {
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random);
std::vector<particle::Particle>
determineInjectedDensityParticles(RandomNumbers* random,
const int numberParticlesToDraw, const int current);
const int numberParticlesToDraw, const int current,
std::map<std::string, double>& particleNumbers);
double meanFreePath(particle::Particle& particle, RandomNumbers* random);
double meanFreePath(particle::Particle& particle, RandomNumbers* random,
std::vector<double>& macroscopic_cross_sections_m);
interaction::InteractionOutput interact(particle::Particle& particle,
RandomNumbers* random);
RandomNumbers* random,
std::vector<double>& macroscopic_cross_sections_m);
blitz::Array<double,3> chargedensity();