Changed distance drawing procedure;
Changed mover to work with times instead of distance; Changed how interactions are done (recombination still tbd)
This commit is contained in:
@@ -21,15 +21,16 @@ InteractionOutput ElasticScattering::performInteraction(
|
||||
DEBUG_LEVEL_3("Perform elastic scattering.");
|
||||
const blitz::TinyVector<double, 3> v_impact =
|
||||
particle.velocity().cartesianEntries();
|
||||
const auto x_impact = particle.position();
|
||||
const blitz::TinyVector<double, 3> v_target =
|
||||
target_->driftVelocity()->driftVelocity(x_impact).cartesianEntries() +
|
||||
target_->velocityDistibution()
|
||||
->rollVelocity(x_impact, generator->engine())
|
||||
.cartesianEntries();
|
||||
// const auto x_impact = particle.position();
|
||||
// const blitz::TinyVector<double, 3> v_target =
|
||||
// target_->driftVelocity()->driftVelocity(x_impact).cartesianEntries() +
|
||||
// target_->velocityDistribution()
|
||||
// ->rollVelocity(x_impact, generator->engine())
|
||||
// .cartesianEntries();
|
||||
|
||||
const blitz::TinyVector<double, 3> v_laboratory =
|
||||
kinematic::velocityTargetFixed(v_impact, v_target, particle.mass_kg(),
|
||||
kinematic::velocityTargetFixed(v_impact, target_velocity_.cartesianEntries(),
|
||||
particle.mass_kg(),
|
||||
target_->mass_kg());
|
||||
|
||||
const double E_kin =
|
||||
@@ -41,8 +42,8 @@ InteractionOutput ElasticScattering::performInteraction(
|
||||
|
||||
const blitz::TinyVector<double, 3> v_impact_new =
|
||||
kinematic::rotateVelocityInCenterOfMassFrame(
|
||||
v_impact, v_target, particle.mass_kg(), target_->mass_kg(), theta,
|
||||
phi);
|
||||
v_impact, target_velocity_.cartesianEntries(), particle.mass_kg(),
|
||||
target_->mass_kg(), theta, phi);
|
||||
|
||||
particle.velocity(CartesianVector(v_impact_new));
|
||||
// no Gyrocentrum movement because boris push is used;
|
||||
|
||||
Reference in New Issue
Block a user