small bugfix
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#include "simulation/kinematic.h"
|
#include "simulation/kinematic.h"
|
||||||
#include "simulation/logger.h"
|
#include "simulation/logger.h"
|
||||||
#include "simulation/velocity_distribution.h"
|
#include "simulation/velocity_distribution.h"
|
||||||
|
#include "constants/physical_constants.h"
|
||||||
|
|
||||||
namespace interaction {
|
namespace interaction {
|
||||||
|
|
||||||
@@ -24,7 +25,8 @@ InteractionOutput ClusterFormation::performInteraction(
|
|||||||
->rollVelocity(x_impact, generator->engine())
|
->rollVelocity(x_impact, generator->engine())
|
||||||
.cartesianEntries();
|
.cartesianEntries();
|
||||||
const double energy_eV =
|
const double energy_eV =
|
||||||
kinematic::kineticEnergy(v_target, target_->mass_kg());
|
kinematic::kineticEnergy(v_target, target_->mass_kg()) *
|
||||||
|
UnitConversion::JouleToeV;
|
||||||
const blitz::TinyVector<double, 3> v_cluster =
|
const blitz::TinyVector<double, 3> v_cluster =
|
||||||
kinematic::velocity(energy_eV, product_->mass_kg()) * v_target /
|
kinematic::velocity(energy_eV, product_->mass_kg()) * v_target /
|
||||||
kinematic::norm(v_target);
|
kinematic::norm(v_target);
|
||||||
|
|||||||
Reference in New Issue
Block a user