cad-to-dagmc 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- _version.py +2 -2
- {cad_to_dagmc-0.6.0.dist-info → cad_to_dagmc-0.6.1.dist-info}/METADATA +57 -21
- cad_to_dagmc-0.6.1.dist-info/RECORD +8 -0
- cad_to_dagmc-0.6.0.dist-info/RECORD +0 -8
- {cad_to_dagmc-0.6.0.dist-info → cad_to_dagmc-0.6.1.dist-info}/LICENSE +0 -0
- {cad_to_dagmc-0.6.0.dist-info → cad_to_dagmc-0.6.1.dist-info}/WHEEL +0 -0
- {cad_to_dagmc-0.6.0.dist-info → cad_to_dagmc-0.6.1.dist-info}/top_level.txt +0 -0
_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cad_to_dagmc
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Converts CAD files to a DAGMC h5m file
|
|
5
5
|
Author-email: Jonathan Shimwell <mail@jshimwell.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/fusion-energy/cad_to_dagmc
|
|
@@ -14,6 +14,8 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: trimesh
|
|
16
16
|
Requires-Dist: networkx
|
|
17
|
+
Requires-Dist: cadquery-ocp >=7.7.2
|
|
18
|
+
Requires-Dist: cadquery >=2.4.0
|
|
17
19
|
Provides-Extra: tests
|
|
18
20
|
Requires-Dist: pytest ; extra == 'tests'
|
|
19
21
|
Requires-Dist: vtk ; extra == 'tests'
|
|
@@ -40,8 +42,7 @@ cad-to-dagmc can convert:
|
|
|
40
42
|
- STEP files
|
|
41
43
|
- CadQuery objects (in memory)
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
cad-to-dagmc aims to produce DAGMC compatible h5m files from CAD geometry is intended to convert [STEP](http://www.steptools.com/stds/step/) files or [CadQuery](https://cadquery.readthedocs.io) objects to a [DAGMC](https://github.com/svalinn/DAGMC/) compatible h5m file.
|
|
45
46
|
|
|
46
47
|
The resulting DAGMC geometry can then be used for simulations in [OpenMC](https://github.com/openmc-dev/openmc/) or [other supported codes](https://svalinn.github.io/DAGMC/).
|
|
47
48
|
|
|
@@ -49,16 +50,20 @@ This package is tested with [pytest tests](https://github.com/fusion-energy/cad_
|
|
|
49
50
|
|
|
50
51
|
Also checkout these other software projects that also create DAGMC geometry [CAD-to-OpenMC](https://github.com/openmsr/CAD_to_OpenMC), [Stellarmesh](https://github.com/Thea-Energy/stellarmesh) and [Coreform Cubit](https://coreform.com/products/coreform-cubit/)
|
|
51
52
|
|
|
52
|
-
# Installation
|
|
53
|
+
# Installation options
|
|
54
|
+
|
|
55
|
+
- Install using Mamba and pip
|
|
56
|
+
- Install using Conda and pip
|
|
57
|
+
- Install using pip and source compilations
|
|
58
|
+
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
## Install using Mamba and pip
|
|
61
|
+
|
|
62
|
+
In principle, installing any Conda/Mamba distribution will work. A few Conda/Mamba options are:
|
|
55
63
|
- [Miniforge](https://github.com/conda-forge/miniforge) (recommended as it includes mamba)
|
|
56
64
|
- [Anaconda](https://www.anaconda.com/download)
|
|
57
65
|
- [Miniconda](https://docs.conda.io/en/latest/miniconda.html)
|
|
58
66
|
|
|
59
|
-
|
|
60
|
-
# Install using Mamba and pip
|
|
61
|
-
|
|
62
67
|
This example assumes you have installed the Miniforge option or separately have installed Mamba with ```conda install -c conda-forge mamba -y```
|
|
63
68
|
|
|
64
69
|
Create a new conda environment, I've chosen Python 3.10 here but newer versions are
|
|
@@ -74,7 +79,7 @@ mamba activate new_env
|
|
|
74
79
|
|
|
75
80
|
Install the dependencies
|
|
76
81
|
```bash
|
|
77
|
-
mamba install -y -c conda-forge
|
|
82
|
+
mamba install -y -c conda-forge "moab>=5.3.0" gmsh python-gmsh
|
|
78
83
|
```
|
|
79
84
|
|
|
80
85
|
Then you can install the cad_to_dagmc package with ```pip```
|
|
@@ -82,19 +87,13 @@ Then you can install the cad_to_dagmc package with ```pip```
|
|
|
82
87
|
pip install cad_to_dagmc
|
|
83
88
|
```
|
|
84
89
|
|
|
85
|
-
You may also want to install OpenMC with DAGMC to make use of the h5m geometry files produced in simulations. However you could also use other supported particle transport codes such as MCNP, FLUKA and others [link to DAGMC documentation](https://svalinn.github.io/DAGMC/).
|
|
86
|
-
|
|
87
|
-
To install OpenMC You can run ```mamba install -c conda-forge openmc``` however this more specific command makes sure the latest version of OpenMC which contains DAGMC is chosen by conda / mamba
|
|
88
|
-
```bash
|
|
89
|
-
mamba install -c conda-forge -y "openmc=0.14.0=dagmc*nompi*"
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
It might not be possible to install OpenMC and cad-to-dagmc in the same conda/mamba python environment so you may have to create a new conda/mamba environment and install OpenMC there.
|
|
93
|
-
|
|
94
|
-
Another option would be to [install OpenMC from source](https://docs.openmc.org/en/stable/quickinstall.html) which would also need compiling with MOAB and DAGMC options.
|
|
95
90
|
|
|
91
|
+
## Install using Conda and pip
|
|
96
92
|
|
|
97
|
-
|
|
93
|
+
In principle, installing any Conda/Mamba distribution will work. A few Conda/Mamba options are:
|
|
94
|
+
- [Miniforge](https://github.com/conda-forge/miniforge) (recommended as it includes mamba)
|
|
95
|
+
- [Anaconda](https://www.anaconda.com/download)
|
|
96
|
+
- [Miniconda](https://docs.conda.io/en/latest/miniconda.html)
|
|
98
97
|
|
|
99
98
|
This example uses Conda to install some dependencies that are not available via PyPi.
|
|
100
99
|
|
|
@@ -110,7 +109,7 @@ conda activate new_env
|
|
|
110
109
|
|
|
111
110
|
Install the dependencies
|
|
112
111
|
```bash
|
|
113
|
-
conda install -y -c conda-forge
|
|
112
|
+
conda install -y -c conda-forge "moab>=5.3.0" gmsh python-gmsh
|
|
114
113
|
```
|
|
115
114
|
|
|
116
115
|
Then you can install the cad_to_dagmc package with ```pip```
|
|
@@ -118,6 +117,43 @@ Then you can install the cad_to_dagmc package with ```pip```
|
|
|
118
117
|
pip install cad_to_dagmc
|
|
119
118
|
```
|
|
120
119
|
|
|
120
|
+
## Install using pip and source compilations
|
|
121
|
+
|
|
122
|
+
It should possible to avoid the use of conda and installing using pip and compiling from source.
|
|
123
|
+
|
|
124
|
+
First compile MOAB (and install Pymoab) from source
|
|
125
|
+
|
|
126
|
+
Then install gmsh from source (installing from pip appears to cause conflicts with the open cascade used in ocp and cadquery)
|
|
127
|
+
|
|
128
|
+
Then you can install the cad_to_dagmc package with ```pip```
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pip install cad_to_dagmc
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Install with transport code (e.g OpenMC)
|
|
135
|
+
|
|
136
|
+
You may also want to install OpenMC with DAGMC to make use of the h5m geometry files produced in simulations. However you could also use other supported particle transport codes such as MCNP, FLUKA and others [link to DAGMC documentation](https://svalinn.github.io/DAGMC/).
|
|
137
|
+
|
|
138
|
+
To install OpenMC you can run ```mamba install -c conda-forge openmc``` however this more specific command makes sure the latest version of OpenMC which contains DAGMC is chosen by conda / mamba
|
|
139
|
+
```bash
|
|
140
|
+
mamba install -c conda-forge -y "openmc=0.14.0=dagmc*nompi*"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
It might not be possible to install OpenMC and cad-to-dagmc in the same conda/mamba python environment so you may have to create a new conda/mamba environment and install OpenMC there.
|
|
144
|
+
|
|
145
|
+
Another option would be to [install OpenMC from source](https://docs.openmc.org/en/stable/quickinstall.html) which would also need compiling with MOAB and DAGMC options.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
# Known incompatibilities
|
|
150
|
+
|
|
151
|
+
The package requires newer versions of Linux. For example the package does not work on Ubuntu 18.04 or older.
|
|
152
|
+
|
|
153
|
+
The package requires newer versions of pip. It is recommended to ensure that your version of pip is up to date. This can be done with ```python -m pip install --upgrade pip```
|
|
154
|
+
|
|
155
|
+
Installing one of the package dependancies (gmsh) with pip appears to result in occational errors when passing cad objects between cadquery / ocp and gmsh. The conda install gmsh appears to work fine.
|
|
156
|
+
|
|
121
157
|
# Usage - with OpenMC
|
|
122
158
|
|
|
123
159
|
You may also want to install OpenMC with DAGMC to make use of the h5m geometry files produced in simulations. However you could also use other supported particle transport codes such as MCNP, FLUKA and others supported by [DAGMC](https://svalinn.github.io/DAGMC/).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
_version.py,sha256=lgiCYGSijhLK71WmuudWf_AyhNAutwQWx2V8bV6a5VQ,411
|
|
2
|
+
cad_to_dagmc/__init__.py,sha256=fskHUTyCunSpnpJUvBfAYjx4uwDKXHTTiMP6GqnFRf0,494
|
|
3
|
+
cad_to_dagmc/core.py,sha256=eMwKgKOjje3gBZEqjNzy9O6NF8a02WxD-VhXB5AJg58,18108
|
|
4
|
+
cad_to_dagmc-0.6.1.dist-info/LICENSE,sha256=B8kznH_777JVNZ3HOKDc4Tj24F7wJ68ledaNYeL9sCw,1070
|
|
5
|
+
cad_to_dagmc-0.6.1.dist-info/METADATA,sha256=Fw_uOmqvNJCm1-XPMr1vy4fWgxWW4ZPmqSgCJouGmr4,8183
|
|
6
|
+
cad_to_dagmc-0.6.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
7
|
+
cad_to_dagmc-0.6.1.dist-info/top_level.txt,sha256=zTi8C64SEBsE5WOtPovnxhOzt-E6Oc5nC3RW6M_5aEA,22
|
|
8
|
+
cad_to_dagmc-0.6.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
_version.py,sha256=2JKwcA-YQ0okV2N-gwTWy_n51igWrPcsKQFm0cnqsvw,411
|
|
2
|
-
cad_to_dagmc/__init__.py,sha256=fskHUTyCunSpnpJUvBfAYjx4uwDKXHTTiMP6GqnFRf0,494
|
|
3
|
-
cad_to_dagmc/core.py,sha256=eMwKgKOjje3gBZEqjNzy9O6NF8a02WxD-VhXB5AJg58,18108
|
|
4
|
-
cad_to_dagmc-0.6.0.dist-info/LICENSE,sha256=B8kznH_777JVNZ3HOKDc4Tj24F7wJ68ledaNYeL9sCw,1070
|
|
5
|
-
cad_to_dagmc-0.6.0.dist-info/METADATA,sha256=Zrz_-X2KkLAoKrucNIcvOr1070dmSxq10ytsfqU5oWA,6771
|
|
6
|
-
cad_to_dagmc-0.6.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
7
|
-
cad_to_dagmc-0.6.0.dist-info/top_level.txt,sha256=zTi8C64SEBsE5WOtPovnxhOzt-E6Oc5nC3RW6M_5aEA,22
|
|
8
|
-
cad_to_dagmc-0.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|