From bff894ceb12295ffa73cf0aeeca8fc64bb112410 Mon Sep 17 00:00:00 2001 From: itayhorin Date: Tue, 25 Oct 2022 13:42:26 +0300 Subject: [PATCH] changed p2 calc and verified it by maxwell boltzman distirbution --- src/physics.cpp | 4 +++- src/tallies/tally_scoring.cpp | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/physics.cpp b/src/physics.cpp index c59909f0998..0ceebe5b150 100644 --- a/src/physics.cpp +++ b/src/physics.cpp @@ -744,7 +744,9 @@ void elastic_scatter(int i_nuclide, const Reaction& rx, double kT, Particle& p) v_t = sample_target_velocity(*nuc, p.E(), p.u(), v_n, p.neutron_xs(i_nuclide).elastic, kT, p.current_seed()); } - p.v_t() = C_LIGHT*std::sqrt(2/(awr*p.getMass()))*v_t; + //std::cout << "v_n = "<< p.speed() <