Basic changes for time resolution.

Input from json still suboptimal.
This commit is contained in:
2024-05-14 09:23:52 +02:00
parent cac5e6ff5d
commit 77fa8d175a
12 changed files with 84 additions and 36 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ InteractionOutput ClusterFormation::performInteraction(
const blitz::TinyVector<double, 3> v_cluster =
kinematic::velocity(energy_eV, product_->mass_kg()) *
v_target / kinematic::norm(v_target);
particle::Particle cluster(product_, x_impact, CartesianVector(v_cluster));
particle::Particle cluster(product_, x_impact, CartesianVector(v_cluster),
particle.timeAlive());
InteractionOutput output;
output.add(cluster);
+6 -2
View File
@@ -93,10 +93,14 @@ InteractionOutput ElectronIonization::performInteraction(
particle.velocity(v_impact_new);
const double time_birth = particle.timeAlive();
InteractionOutput output;
output.add(
particle::Particle(electron_, x_impact, CartesianVector(v_ejected)));
output.add(particle::Particle(ion_, x_impact, CartesianVector(v_target)));
particle::Particle(electron_, x_impact, CartesianVector(v_ejected),
time_birth));
output.add(particle::Particle(ion_, x_impact, CartesianVector(v_target),
time_birth));
return output;
}