fix ion velocity ionization
This commit is contained in:
@@ -37,7 +37,14 @@ InteractionOutput ElectronIonization::performInteraction(
|
|||||||
particle.velocity().cartesianEntries();
|
particle.velocity().cartesianEntries();
|
||||||
const auto x_impact = particle.cartesianPosition();
|
const auto x_impact = particle.cartesianPosition();
|
||||||
|
|
||||||
// blitz::TinyVector<double, 3> v_target;
|
blitz::TinyVector<double, 3> v_target = target_->velocityDistribution()->
|
||||||
|
rollVelocity(particle.cylinderPosition(),
|
||||||
|
generator->engine()).cartesianEntries();
|
||||||
|
if(target_->driftVelocity()) {
|
||||||
|
v_target += target_->driftVelocity()
|
||||||
|
->driftVelocity(x_impact, particle.cylinderPosition())
|
||||||
|
.cartesianEntries();
|
||||||
|
}
|
||||||
blitz::TinyVector<double, 3> v_laboratory = kinematic::velocityTargetFixed(
|
blitz::TinyVector<double, 3> v_laboratory = kinematic::velocityTargetFixed(
|
||||||
v_impact, target_velocity_.cartesianEntries(), particle.mass_kg(), target_->mass_kg()
|
v_impact, target_velocity_.cartesianEntries(), particle.mass_kg(), target_->mass_kg()
|
||||||
);
|
);
|
||||||
@@ -107,7 +114,7 @@ InteractionOutput ElectronIonization::performInteraction(
|
|||||||
output.add(
|
output.add(
|
||||||
particle::Particle(electron_, x_impact, CartesianVector(v_ejected),
|
particle::Particle(electron_, x_impact, CartesianVector(v_ejected),
|
||||||
time_birth, weight_parent));
|
time_birth, weight_parent));
|
||||||
output.add(particle::Particle(ion_, x_impact, target_velocity_,
|
output.add(particle::Particle(ion_, x_impact, CartesianVector(v_target),
|
||||||
time_birth, weight_parent));
|
time_birth, weight_parent));
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
Reference in New Issue
Block a user