Particle underwent maximum number of events?

Hi everyone. Can anyone tell me the reason for such warning? how do i eliminate it?

Imtiaj

@imtiaj_hossain Do you have a model you’re able to share that exhibits this problem? If so, I can try to reproduce and see what the issue is.

Hi @paulromano, i already found a solution of it for my geometry. May be it was caused by overlapping of geometry. But i modified the geometry & it showed no more warning.

1 Like

I was trying to run a openMC code importing a CAD geometry. My OpenMC code is given below:
import openmc

from IPython.display import Image
from matplotlib import pyplot as plt

materials

u235 = openmc.Material(name=“1”)
u235.add_nuclide(‘U235’, 1.0, ‘ao’)
u235.set_density(‘g/cc’, 11)
materials = openmc.Materials([u235])

dagmc_univ = openmc.DAGMCUniverse(filename=‘cylinder_cubit.h5m’, auto_geom_ids=True, auto_mat_ids=True)
bounding_box = openmc.rectangular_prism(20,20,boundary_type=‘reflective’)

cell = openmc.Cell(region=bounding_box, fill=dagmc_univ)
geometry = openmc.Geometry([cell])

settings = openmc.Settings()
settings.batches = 100
settings.inactive = 2
settings.particles = 10000

model = openmc.Model(geometry=geometry, materials=materials, settings=settings)
model.export_to_model_xml()

p = openmc.Plot()
p.width = (25.0, 25.0)
p.pixels = (400, 400)
p.color_by = ‘material’
p.colors = {u235: ‘yellow’}
openmc.plot_inline(p)
openmc.run()

But it shows,
WARNING: Particle 7525 underwent maximum number of events.
in repetition.