@@ -272,15 +272,15 @@ class _IndependentRateHelper(ReactionRateHelper):
272272
273273 This class does not generate tallies, and instead stores cross sections
274274 for each nuclide and transmutation reaction relevant for a depletion
275- calculation. The reaction rate is calculated by multiplying the flux by the
276- cross sections.
275+ calculation. The reaction rate is calculated by multiplying the flux by
276+ the cross sections.
277277
278278 Parameters
279279 ----------
280280 op : openmc.deplete.IndependentOperator
281281 Reference to the object encapsulate _IndependentRateHelper.
282- We pass this so we don't have to duplicate the :attr:`IndependentOperator.number` object.
283-
282+ We pass this so we don't have to duplicate the
283+ :attr:`IndependentOperator.number` object.
284284
285285 Attributes
286286 ----------
@@ -317,15 +317,14 @@ def get_material_rates(self, mat_id, nuc_index, react_index):
317317 """
318318 self ._results_cache .fill (0.0 )
319319
320- volume = self ._op .number .get_mat_volume (mat_id )
321320 for i_nuc , i_react in product (nuc_index , react_index ):
322321 nuc = self .nuc_ind_map [i_nuc ]
323322 rxn = self .rxn_ind_map [i_react ]
324- density = self ._op .number .get_atom_density (mat_id , nuc )
325323
326- # Sigma^j_i * V = sigma^j_i * rho * V
324+ # Sigma^j_i * V = sigma^j_i * n_i * V = sigma^j_i * N_i
327325 self ._results_cache [i_nuc ,i_react ] = \
328- self ._op .cross_sections [rxn ][nuc ] * density * volume
326+ self ._op .cross_sections [rxn ][nuc ] * \
327+ self ._op .number [mat_id , nuc ]
329328
330329 return self ._results_cache
331330
0 commit comments