Skip to content

[BUG]: Union gives seemingly wrongful error in simple setup #2457

@Lomholy

Description

@Lomholy

Describe the bug
I have made a simple instrument that places a cylinder inside a box, and sends neutron through it. The geometry is made with Union.

When running with 1e8 neutron rays, I get ~9 errors like:

ERROR, propagated out of current volume instead of to a point within!
length_to_scattering_specified = 0.00000000351831686216
length propagated = 0.00000000351831686216
length_to_boundary = 0.00004661509106687154
current_position = (-0.000681,0.000481,63.999977)
Debug info: Volumes[current_volume]->name = vert_out, but now inside volume number 2 named container.
Ray absorbed

It seems something might be off with my geometry, but to my mind, it seems that there is no overlap between the 2 geometries, and the cylinder is a complete child of the box.

The instrument is attached her:

fuel_cell.txt

OS and McStas/McXtrace version (please complete the following information):

  • OS: MacOS Tahoe 26.4.1
  • McCode variant: McStas
  • Version: 3.6.21

Metadata

Metadata

Labels

UnionItems related to the Union subsystem

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions