Skip to content

Commit

Permalink
Merge pull request #868 from FlanFlanagan/decay_heat_fix
Browse files Browse the repository at this point in the history
fixed some decay heat math
  • Loading branch information
scopatz committed Oct 13, 2016
2 parents 9498d80 + 0cc9d39 commit ad1b2cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/material.cpp
Expand Up @@ -1101,9 +1101,9 @@ pyne::comp_map pyne::Material::decay_heat() {
pyne::comp_map dh;
double masspermole = mass * pyne::N_A;
for (pyne::comp_iter i = comp.begin(); i != comp.end(); ++i) {
dh[i->first] = pyne::MeV_per_MJ * masspermole * (i->second) * \
dh[i->first] = masspermole * (i->second) * \
decay_const(i->first) * q_val(i->first) / \
atomic_mass(i->first);
atomic_mass(i->first) / pyne::MeV_per_MJ;
}
return dh;
}
Expand Down
3 changes: 2 additions & 1 deletion src/material.h
Expand Up @@ -233,7 +233,8 @@ namespace pyne
/// nuclide's mass, decay_const, and atmoic_mass.
comp_map activity();
/// Calculates the decay heat of a material based on the composition and
/// each nuclide's mass, q_val, decay_const, and atomic_mass.
/// each nuclide's mass, q_val, decay_const, and atomic_mass. This assumes
/// input mass of grams. Return values is in mega joules.
comp_map decay_heat();
/// Caclulates the dose per gram using the composition of the the
/// material, the dose type desired, and the source for dose factors
Expand Down

0 comments on commit ad1b2cd

Please sign in to comment.