Basic changes for time resolution.
Input from json still suboptimal.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user