openmsr / CAD_to_OpenMC

code to target the conversion from a step-file to a h5m-geometry for neutronics
MIT License
25 stars 16 forks source link

Meshing in parts of large models #86

Closed ebknudsen closed 5 months ago

ebknudsen commented 6 months ago

Meshing a large model can be quite cumbersome. It would therefore be very nice to be able to split the geometry into several different parts.

ebknudsen commented 5 months ago

The algorithm suggested by 1 has now been implemented by 04fac02dc5.

a function merge2h5m is defined in assembly.py that may be called

merge2h5m([A,B,C,D],'output.h5m')

where A,B,C, and D are assemblies that have previously been meshed. A drawback is that the assemblies have to be meshed on the fly, i.e. there is no import h5m-functionality yet.

The very good part is that it simplifies the turnaround time when debugging problematic models.

ebknudsen commented 5 months ago

closing this. Will reopen more specific issues for other projects