<?xml version="1.0"?>
<tallies>
<mesh id="1">
<type>regular</type>
<dimension>50 1</dimension>
<lower_left>-70.71 -70.71</lower_left>
<width>70.71 70.71</width>
</mesh>
<filter id="1" type="mesh">
<bins>1</bins>
</filter>
<tally id="1">
<filters>1</filters>
<scores>flux</scores>
</tally>
</tallies>
where 70.71 is the radius of my reactor. Now, In the tally.out file I got something
============================> TALLY 1 <============================
Mesh Index (1, 1)
Total Material
Flux 12.2047 +/- 6.30332E-02
Mesh Index (2, 1)
Total Material
Flux 11.7069 +/- 6.12077E-02
.......
for the first two mash. And the rest is 0. I want to plot the neutron flux from center to radius of the reactor. I am not getting such values. Am I missing something? If I had the value I would use them to generate a downward plot in Microsoft excel. But, so far I am stuck on not getting the proper data in flux tally. Please help.
--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.
--
sp = openmc.StatePoint('statepoint.50.h5')", Can you please guide me on the commands to run on the pythonAPI after opening it to get the flux plot? I will load the statepoint file manually by above process.
A list of commands for this perticular query would be much helpful. I am tying to learn to work with python API also.
Thanks you.
Regards,
Sharif Abu Darda, Mohammad Talhi
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
Dear Paul,
Continuing with this post, I have some questions.
I am simulating a single fuel element and, in my report, I would like to include a graph showing the flux spectrum. To get that spectrum, I created the flux tally following the steps of this example notebook.
--------------------------------
# Create equal-lethargy energies to put in filter energies = np.logspace(np.log10(1e-5), np.log10(20.0e6), 501) energy_filter = openmc.EnergyFilter(energies) # Create tally with energy filter tally = openmc.Tally(tally_id=100, name=’Flux’) tally.scores = ['flux'] tally.filters = [energy_filter]
--------------------------------
Now, I want to transform the y-axis units. Specifically, in the y-axis, I want the units “flux per unit lethargy [neutrons/cm2s]” and, in the x-axis, “Energy [eV]”. My questions are:
1- Why the equal-lethargy energies to put in the filter were created considering “np.log10(x)”? Isn’t the lethargy calculated using the “np.log(x)” function?
2- To transform the flux units from “flux [neutrons-cm/source neutron]” to “flux per unit lethargy neutrons/cm2s]”, should I multiply the tally by the normalization factor (presented in another post) and divided it by the lethargy? Something like this:
--------------------------------
t = sp.get_tally(name='Flux')
flux = t.mean.ravel()
factor = (P*nu_fission)/(fission_rate*vol*Q*k_eff)
delta_u = np.log(energies[1:501]) - np.log(energies[0:500])
flux1 = flux*factor/delta_u
plt.semilogx(energies[:-1], flux1, color=”red”)
plt.xlabel(“Energy [eV]”)
plt.ylabel(“Flux per unit lethargy [neutrons/cm$^2$s]”)
--------------------------------
Thank you,
Javier
Hi Shawn,My apologies for the slow response on this. I've put together a quick example notebook showing how one would tally a flux spectrum using the Python package. Let me know if you have any questions about it.Best regards,Paul
On Tue, Apr 10, 2018 at 10:18 AM, <shawn.w...@gmail.com> wrote:
Dear Paul:
I am trying to produce a plot of the normalized neutron flux (per unit lethargy) as a function of neutron energy for the reactor described in the attached ,pynb file. Also attached is a generic .jpg file of what I'm expecting.
I have trouble working with arrays in python. Can you help me with this? Is there a simple script for such a plot?
Sincerely,
Shawn Wachter
--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openmc-users/2f14f6ca-2470-4f75-972a-977e9c444e42%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc...@googlegroups.com.