changed C_LIGHT back to m/s and changed velocity units in tally.F90

This commit is contained in:
Sam Shaner 2015-11-10 10:17:14 -05:00
parent 4d51fb6e5b
commit c16c43d866
2 changed files with 8 additions and 4 deletions

View file

@ -66,7 +66,7 @@ module constants
MASS_NEUTRON_MEV = 939.565379_8, & ! mass of a neutron in MeV/c^2
MASS_PROTON = 1.007276466812_8, & ! mass of a proton in amu
AMU = 1.660538921e-27_8, & ! 1 amu in kg
C_LIGHT = 2.99792458e10_8, & ! speed of light in cm/s
C_LIGHT = 2.99792458e8_8, & ! speed of light in m/s
N_AVOGADRO = 0.602214129_8, & ! Avogadro's number in 10^24/mol
K_BOLTZMANN = 8.6173324e-11_8, & ! Boltzmann constant in MeV/K
INFINITY = huge(0.0_8), & ! positive infinity

View file

@ -148,12 +148,16 @@ contains
else
score = p % last_wgt
end if
! Score the flux weighted inverse velocity with velocity in units of
! cm/s
score = score / material_xs % total &
/ (sqrt(TWO * E / (MASS_NEUTRON_MEV)) * C_LIGHT)
/ (sqrt(TWO * E / (MASS_NEUTRON_MEV)) * C_LIGHT * 100.0)
else
! For inverse velocity, we don't need a cross section
score = flux / (sqrt(TWO * E / (MASS_NEUTRON_MEV)) * C_LIGHT)
! For inverse velocity, we don't need a cross section. The velocity is
! in units of cm/s.
score = flux / (sqrt(TWO * E / (MASS_NEUTRON_MEV)) * C_LIGHT * 100.0)
end if