I am in the process of building up to a large shielding problem. Within this, I am depleting my core model, restarting from a user defined point (based on activity), and then writing a source file using the sourcepoint setting. However, when checking the contents of this source, despite having photon_transport = True, there are no photons in my source file. Is there an additional setting that must be included?
Excuse my naivety, however is it physical to just replace the Particletype? If I did want a mixed source, is there a way to overwrite the default behaviour or would the approach have to change in obtaining seperate gamma and neutron sources?
When assigning the openmc.Settings.source it accepts an iterable of Sources so you can have as many different sources as you like. Different source objects can have different particles.
Ah yes, thank you.
If I wanted to write a gamma source, I am assuming is this not an available feature?
I essentially want to write a source (gamma and neutron, separate or combined) obtained from a core model, and then use openmc.Filesource in a fixed source run, where I have shielding in place. I hope that makes sense!
I have seen examples of using isotropic sources and other custom sources from the fusion workshop, however havent come across many where the source is written to file (and none for writing a photon source). My geometry will become relatively complex and I would like to maintain the best spatial and spectral photon sources
Hi all,
Maybe I am confused about the functionaltiy of sourcepoint… Does it tally the source particles and then just assign ALL to neutrons, or does it not include any photons?
Is this also the same for the surface source writing class?
source = openmc.Source()
source .particle = 'neutron'
settings = openmc.Settings()
settings.source = [source]
settings.photon_transport=True # you may still want this on to get photons made by neutrons
Thank you for your response. Based on this, I believe I will use surface tallying to obtain the spatial and energy distributions. Is there functionality to obtain angular distribution of different particle types?
Hi there,
I believe my issue has been remedied through the use of surf_source_write. This way, even with a DAGMC geometry, I have been able to produce neutron and photon sources provided the surfaces of interest. If my interpretation is correct, sourcepoint will simply grab the fission source bank; whereas surf_source_write will essentially do the particle current crossing the given surfaces.