GEOUNED-org / GEOUNED

A tool to convert CAD to CSG & CSG to CAD for Monte Carlo transport codes
European Union Public License 1.2
57 stars 30 forks source link

[BUG] - "sort_enclosure": true does not work properly #254

Closed davideflammini closed 4 months ago

davideflammini commented 4 months ago

When "sort_enclosure": true is selected the enclosure cell(s) is repeated twice in the MCNP input file, using the same cell numbering. If one copy of the cell(s) is manually cancelled from the MCNP input, the geometry still presents errors that are not present when "sort_enclosure": false is set. The geometry errors are due to a wrong sense of some of the surfaces used in the cell description of the enclosure.

Enclosure is written in cell #4 of the attached examples and should be defined as follows:

4 0 -3 4 8 11 -12 -5 (15:14:-13)

It is instead defines as follows when "sort_enclosure": true:

C ########################################################## C ENCLOSURE 1 C ########################################################## C 4 0 3 4 8 11 12 -5 (15:14:-13) imp:n=1.0 imp:p=1.0

In attachment: step file used for the test, MCNP inputs obtained with "sort_enclosure": true and "sort_enclosure": false sort_enclosure_false.txt sort_enclosure_true.txt step_file.zip

psauvan commented 4 months ago

bug fixed PR #255