CadQuery / cadquery

A python parametric CAD scripting framework based on OCCT
https://cadquery.readthedocs.io
Other
2.97k stars 280 forks source link

Support for brep export with imprinting, merge and material tagging to allow h5m DAGMC geometry #383

Closed shimwell closed 3 years ago

shimwell commented 4 years ago

DAGMC allow use of faceted based geometry to simulate particle transport when used in conjunction with a suitable neutronics code like OpenMC.

Mainly neutrons and photons are transported using ray tracing like algorithms but there is support for charged particles in some codes. We use these codes for fusion reactor design. The faceted geometry has a few particular aspects:

h5 files are the a great format partly due to the speed they can be read into the code. The geometries can get quite large so this really helps.

There is one neutronics code (serpent II) that transport particles on STL geometry, hence my earlier interest in exporting STL format.

Not many formats support the virtual surfaces needed for imprinting and merging but I believe brep does. It is also tricky keeping track of the materials and volume numbers while they go through this process of removing surfaces. The input order in is not necessarily the volume order in the brep file.

There is an open source tool that takes the imprinted, merged, materiel tagged brep file and facets it and exports the h5m file

So log story short, supporting brep (or some other format) exporting with imprinted, merged and material geometry would naturally be of interest to our fusion neutronics community.

shimwell commented 3 years ago

I think this might be a duplicated of #449 which has a bit more detail so I should close this one and put comments over on #449