Hello to everyone,
I am studying a fusion reactor, that for simplicity has been designed as cylindrical and I want to take advantage of the axial symmetry of the cylinder to reduce the computational cost of the calculation. The design includes an isotropic neutronic source at the center of the cylinder, and as far as I run the calculation in full geometry, no problem detected. I added the axial symmetry as follow
surf1 = openmc.ZCylinder(surface_id=1, x0=0, y0=0, r=radius[0], name=‘surf 1’)
surf2 = openmc.ZCylinder(surface_id=2, x0=0, y0=0, r=radius[1], name=‘surf 2’)
surf3 = openmc.ZCylinder(surface_id=3, x0=0, y0=0, r=radius[2], name=‘surf 3’)
surf3.boundary_type = ‘vacuum’
xplane = openmc.XPlane(x0=0, boundary_type=‘periodic’)
yplane = openmc.YPlane(y0=0, boundary_type=‘periodic’)
xplane.periodic_surface = yplane
min_z = openmc.ZPlane(z0=-5, boundary_type=‘reflective’)
max_z = openmc.ZPlane(z0=5, boundary_type=‘reflective’)
cell_1 = openmc.Cell(cell_id=1, name=‘cell 1’)
cell_2 = openmc.Cell(cell_id=2, name=‘cell 2’)
cell_3 = openmc.Cell(cell_id=3, name=‘cell 3’)
cell_1.region = -surf1 & -max_z & +min_z & -xplane & +yplane
cell_2.region = -surf2 & +surf1 & -max_z & +min_z & -xplane & +yplane
cell_3.region = -surf3 & +surf2 & -max_z & +min_z & -xplane & +yplane
with a source thought as follow:
source = openmc.Source(strength=1.0e+19)
source.space = openmc.stats.Box((0, 0, -5), (0, 0, 5))
source.angle = openmc.stats.Isotropic()
And I get the error:
ERROR: More than 95% of external source sites sampled were rejected. Please
** check your external source definition.**
As far as I understood from the OpenMC guide, the lines concerning the creation of both the x=0 and y=0 planes should be implemented as I reported here.
And yet, if I run a calculation, I get the afore mentioned error.
I want to thank in advance anyone that can give me some tips or further instructions and help me to solve my issue.
Best regards,
Tony