Hi all,
I am trying to find the absorption reaction rate of a few nuclides for which I’m geting a key word error when i use the string ‘absorption’. Can you tell me if the string i used is wrong?
P.S: I intend to calculate the conversion ratio by dividing sum of n,gamma reaction rates by sum of absorption reaction rates.
This is the command i used:
_time, u233abs_rate = results.get_reaction_rate(“1”, “U233”, ‘absorption’)
@Mashaba In a depletion simulation, only a few specific reaction rates are saved in the depletion results file, e.g. (n,gamma) and (n,2n). If we want the absorption rate through depletion, what you should do is define a tally including that reaction rate and export it to a tallies.xml file before beginning the depletion simulation.
@paulromano okay i have made the changes like you said I am able to calculate the mean and standard deviation.
but how can I read the absorption rate at different burnups e.g. 10-100 MWd/kg and assign it to an array?
@Mashaba After each transport run, depletion module writes tally data to statepoint file. Open each statepoint file using the StatePoint class just like you did after the transport run. Here file names are named
openmc_simulation_n0.h5 = At fresh
openmc_simulation_n1.h5 = First burn
openmc_simulation_n2.h5 = Second burn
and so on…
sp = openmc.StatePoint('openmc_simulation_n1.h5')
tally = sp.get_tally(name='name of the tally')
tally.get_pandas_dataframe()
It definitely helped! @Pranto but is there any way i can transfer those absorption rate values to an array…for example using a for loop or a command or something?
THERE’S SEEMS TO BE ANOTHER PROBLEM. im plotting k eigenvalues with respect to burnup. But the time variable generated doesn’t match with the burnup time steps i’ve defined.
When i specify the nuclides using tally.nuclides=[‘all’] the kernel dies.
even when i specify the nuclides using abs_rate.nuclides = [‘U233’,‘U235’,‘Pu239’,‘Pu241’] the kernel dies saying it didnt find U-233 in the material. BUT these nuclides will contribute to the absorption rate of neutron ,consequently the conversion ratio later when they are formed so i will need their absorption rate.
What should i do?
@Mashaba I would suggest adding a very low concentration of U233 (e.g., 1e-12) into your original material to avoid that error. Even though U233 will get added in during depletion, if you try to tally it on the first timestep and it doesn’t see it in the original material, you’ll get this error.
Have not considered that but I’ll go for a even small value 1e-24 or restart depletion after 1st time-step and don’t forget to update tally definition this time.