Skip to content

Negative scores with CylindricalMesh filter #3369

Open
@RemDelaporteMathurin

Description

@RemDelaporteMathurin

Bug Description

@rossmacdonald98 and I recently noticed negative values in a tally with a CylindricalMesh filter.
Also discussed this with @pshriwise

Code available here

Tally
	ID             =	1
	Name           =	TBR
	Filters        =	CellFilter, MeshFilter
	Nuclides       =	total
	Scores         =	['(n,Xt)']
	Estimator      =	tracklength
	Multiply dens. =	True
No. radial bins (x) 28
No. angular bins (y) 2
No. axial bins (z) 26
Dataframe:
     cell mesh 1        nuclide   score      mean std. dev.
               x  y   z                                    
0       7      1  1   1   total  (n,Xt)  4.66e-07  1.20e-07
1       7      2  1   1   total  (n,Xt) -1.60e-04  1.52e-04
2       7      3  1   1   total  (n,Xt) -5.71e-06  1.50e-05
3       7      4  1   1   total  (n,Xt) -2.46e-05  2.86e-05
4       7      5  1   1   total  (n,Xt) -7.69e-05  8.44e-05
...   ...    ... ..  ..     ...     ...       ...       ...
1451    7     24  2  26   total  (n,Xt) -7.24e-04  4.54e-04
1452    7     25  2  26   total  (n,Xt) -3.01e-03  1.27e-03
1453    7     26  2  26   total  (n,Xt) -5.95e-04  2.97e-04
1454    7     27  2  26   total  (n,Xt) -1.93e-03  8.04e-04
1455    7     28  2  26   total  (n,Xt) -1.79e-02  1.31e-02

Steps to Reproduce

  • n,Xt score
  • CylindricalMeshFilter tally with offset mesh origin

Environment

Environment file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions