Open raska-s opened 3 months ago
Trying with
mySettings = geouned.Settings(
startCell = 0,
startSurf = 0)
Also does not generate a surface starting from 0
Thanks for this! Can confirm the CAD file contains splines. Is it possible to add a feature that stops conversion when splines are detected? Or a pre-check before solid decomposition?
edit: PR #210 seems to be the one
Is it possible to add a feature that stops conversion when splines are detected? Or a pre-check before solid decomposition?
yes, I am working on it.
Describe the bug
I am trying to convert a STEP file into an OpenMC .xml file. The conversion via GEOUNED succeeds but it creates cells that references a non-existent surface (surface 0). This causes an issue when loading in OpenMC, as it won't be able to locate the surface. No error is thrown by GEOUNED. The STEP file and the OpenMC .xml and .py files are available in this link to download.
To Reproduce
Steps to reproduce the behaviour:
The code will produce OpenMC geometry .xml and .py files with cells that reference a non-existent surface S0. This can be shown in the below snippet of the first cell's definition which requires the positive half-space of surface S0:
Expected behaviour
I expected for the cells to not reference cell S0 - I've seen in previous conversion files by GEOUNED the surface indexing starts at 1.
Error message
If applicable, include the error message displayed in the console: strange type of surface, unexpected exit, python exception… No error is thrown by GEOUNED. But upon loading the file using openmc.Geometry.from_xml, this error is thrown by OpenMC:
Please complete the following information):
Additional context
Add any other context about the problem here.