Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Nov 27, 2024
1 parent dcde3d8 commit ff03ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openmc_plasma_source/fuel_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_neutron_energy_distribution(
# 1.0 neutron yield, all reactions scaled by this value
num_of_vals = 100
# single grid for TT neutrons
E_pspec = np.linspace(0, 12e6, num_of_vals) # E_pspec is exspected in MeV units
E_pspec = np.linspace(0, 12e6, num_of_vals) # E_pspec is exspected in eV units

DDmean = neutron_energy_mean(ion_temperature=ion_temperature, reaction="DD")
DTmean = neutron_energy_mean(ion_temperature=ion_temperature, reaction="DT")
Expand All @@ -165,7 +165,7 @@ def get_neutron_energy_distribution(
if reactions == ["TT"]:
strength_TT = 1.0
dNdE_TT = strength_TT * nst.dNdE_TT(E_pspec, ion_temperature)
tt_source = openmc.stats.Tabular(E_pspec * 1e6, dNdE_TT)
tt_source = openmc.stats.Tabular(E_pspec, dNdE_TT)
return tt_source

elif reactions == ["DD"]:
Expand Down

0 comments on commit ff03ebf

Please sign in to comment.