https://github.com/openmc-dev/openmc_cad_adapter
Convert OpenMC Geometry Components to CAD
https://github.com/openmc-dev/openmc_cad_adapter
Last synced: 2 months ago
JSON representation
Convert OpenMC Geometry Components to CAD
- Host: GitHub
- URL: https://github.com/openmc-dev/openmc_cad_adapter
- Owner: openmc-dev
- License: mit
- Created: 2024-08-15T16:57:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-20T15:28:22.000Z (over 1 year ago)
- Last Synced: 2024-11-20T16:35:19.320Z (over 1 year ago)
- Language: Python
- Size: 140 KB
- Stars: 14
- Watchers: 17
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Conversion of OpenMC Geometry Components to CAD
[](https://opensource.org/licenses/MIT)
This project converts OpenMC models from XML files to a Cubit journal file for import as CAD geometry.
## Installation
To install this tool run:
```shell
python -m pip install git+https://github.com/openmc-dev/openmc_cad_adapter.git
```
This will make the `openmc_to_cad` script available for use. To convert an OpenMC model, run:
```shell
openmc_to_cad /path/to/openmc/model.xml
```
## Disclaimer
There has been no methodical V&V on this converter; use at your own risk!
- [NumPy](https://numpy.org/)
- [OpenMC](https://docs.openmc.org/en/stable/) (>= v0.14.0)
## Limitations
There are several known and many unknown limitations of this tool. It is in a
preliminary state and subject to considerable redesign, including the addition
of a backend for other CAD engines.
Specific Limitations:
- general Cones are not handled
- Torii are required to have a single minor radius, OpenMC allows for different minor radii orthogonal to the toroidal axis