cad-to-dagmc 0.7.6__tar.gz → 0.7.7__tar.gz
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.
Potentially problematic release.
This version of cad-to-dagmc might be problematic. Click here for more details.
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.github/workflows/ci_with_conda_install.yml +30 -21
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/PKG-INFO +21 -17
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/README.md +17 -13
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/pyproject.toml +2 -2
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/_version.py +2 -2
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc.egg-info/PKG-INFO +21 -17
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc.egg-info/requires.txt +2 -2
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.github/workflows/black.yml +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.github/workflows/ci_with_benchmarks.yml +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.github/workflows/ci_with_pip_install.yml +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.github/workflows/python-publish.yml +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/.gitignore +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/CITATION.cff +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/LICENSE +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_assembly.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_compound.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_object_and_stp_file.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_text.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/curved_cadquery_object_to_dagmc_surface_mesh.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/from_gmsh_mesh_file.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/multiple_cadquery_objects.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/multiple_stp_files.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/single_cadquery_object.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/single_stp_file.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/single_stp_file_multiple_volumes.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/unstrucutred_volume_mesh/curved_cadquery_object_to_dagmc_volume_mesh.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/unstrucutred_volume_mesh/simulate_unstrucutred_volume_mesh_with_openmc.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/setup.cfg +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc/__init__.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc/core.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc.egg-info/SOURCES.txt +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc.egg-info/dependency_links.txt +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/src/cad_to_dagmc.egg-info/top_level.txt +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/ENDFB-7.1-NNDC_H1.h5 +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/ball_reactor.brep +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/curved_extrude.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/extrude_rectangle.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/multi_volume_cylinders.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/one_cube.brep +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/single_cube.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/single_volume_thin.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/single_volume_thin.vtk +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_brep_file.brep +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_file_creation.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_h5m_in_transport.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_loading_from_file_vs_shape_object.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_python_api.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_two_joined_cubes.brep +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_two_sep_cubes.brep +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/test_version.py +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/two_connected_cubes.stp +0 -0
- {cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/tests/two_disconnected_cubes.stp +0 -0
|
@@ -21,45 +21,54 @@ on:
|
|
|
21
21
|
jobs:
|
|
22
22
|
testing:
|
|
23
23
|
runs-on: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
matrix:
|
|
26
|
-
python-version: ["3.10", "3.11", "3.12"]
|
|
24
|
+
|
|
27
25
|
steps:
|
|
28
26
|
- name: Checkout repository
|
|
29
27
|
uses: actions/checkout@v4
|
|
30
28
|
|
|
31
|
-
- name:
|
|
32
|
-
shell: bash
|
|
29
|
+
- name: Install system packages
|
|
33
30
|
run: |
|
|
34
|
-
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
|
|
35
|
-
bash Miniforge3.sh -b -p "${HOME}/conda"
|
|
36
|
-
source "${HOME}/conda/etc/profile.d/conda.sh"
|
|
37
|
-
source "${HOME}/conda/etc/profile.d/mamba.sh"
|
|
38
|
-
sudo apt-get --allow-releaseinfo-change update
|
|
39
31
|
sudo apt-get update -y
|
|
40
32
|
sudo apt-get upgrade -y
|
|
41
33
|
sudo apt-get install -y libgl1 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
|
|
35
|
+
- name: Set up Conda
|
|
36
|
+
uses: conda-incubator/setup-miniconda@v2
|
|
37
|
+
with:
|
|
38
|
+
activate-environment: ci-env
|
|
39
|
+
miniforge-version: latest
|
|
40
|
+
channels: conda-forge
|
|
41
|
+
|
|
42
|
+
- name: install dependencies
|
|
43
|
+
shell: bash -l {0}
|
|
44
|
+
run: |
|
|
45
|
+
conda install -y -c conda-forge "openmc=0.15.0=dagmc*nompi*" trimesh networkx cadquery gmsh python-gmsh vtk
|
|
46
|
+
python -m pip install .[tests]
|
|
47
|
+
|
|
48
|
+
- name: Test import
|
|
49
|
+
shell: bash -l {0}
|
|
50
|
+
run: |
|
|
48
51
|
python -c "import cad_to_dagmc"
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
|
|
53
|
+
- name: Run tests
|
|
54
|
+
shell: bash -l {0}
|
|
55
|
+
run: |
|
|
51
56
|
pytest -v tests
|
|
57
|
+
|
|
58
|
+
- name: Run examples
|
|
59
|
+
shell: bash -l {0}
|
|
60
|
+
run: |
|
|
52
61
|
python examples/surface_mesh/cadquery_assembly.py
|
|
62
|
+
python examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py
|
|
53
63
|
python examples/surface_mesh/cadquery_compound.py
|
|
54
64
|
python examples/surface_mesh/cadquery_object_and_stp_file.py
|
|
55
65
|
python examples/surface_mesh/cadquery_text.py
|
|
56
66
|
python examples/surface_mesh/curved_cadquery_object_to_dagmc_surface_mesh.py
|
|
67
|
+
python examples/surface_mesh/from_gmsh_mesh_file.py
|
|
57
68
|
python examples/surface_mesh/multiple_cadquery_objects.py
|
|
58
69
|
python examples/surface_mesh/multiple_stp_files.py
|
|
59
|
-
python examples/surface_mesh/single_stp_file_multiple_volumes.py
|
|
60
70
|
python examples/surface_mesh/single_cadquery_object.py
|
|
71
|
+
python examples/surface_mesh/single_stp_file_multiple_volumes.py
|
|
61
72
|
python examples/surface_mesh/single_stp_file.py
|
|
62
|
-
python examples/surface_mesh/from_gmsh_mesh_file.py
|
|
63
73
|
python examples/unstrucutred_volume_mesh/curved_cadquery_object_to_dagmc_volume_mesh.py
|
|
64
74
|
python examples/unstrucutred_volume_mesh/simulate_unstrucutred_volume_mesh_with_openmc.py
|
|
65
|
-
python examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: cad_to_dagmc
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
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,8 +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>=2.
|
|
18
|
-
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: cadquery>=2.5.2
|
|
18
|
+
Requires-Dist: numpy
|
|
19
19
|
Requires-Dist: gmsh
|
|
20
20
|
Provides-Extra: tests
|
|
21
21
|
Requires-Dist: pytest; extra == "tests"
|
|
@@ -35,17 +35,25 @@ Requires-Dist: vtk; extra == "tests"
|
|
|
35
35
|
[](https://pypi.org/project/cad_to_dagmc/)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/)
|
|
38
|
+
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/) compatible meshes
|
|
39
39
|
|
|
40
|
-
cad-to-dagmc can create:
|
|
40
|
+
cad-to-dagmc can create DAGMC compatible:
|
|
41
41
|
- surface meshes / faceted geometry / triangular meshes
|
|
42
42
|
- unstructured mesh / tetrahedral meshes / volume meshes
|
|
43
43
|
|
|
44
|
-
cad-to-dagmc can convert:
|
|
44
|
+
cad-to-dagmc can convert the following in to DAGMC compatible meshes:
|
|
45
45
|
- STEP files
|
|
46
|
-
- CadQuery objects
|
|
46
|
+
- CadQuery objects
|
|
47
|
+
- Gmsh meshes
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
Options include
|
|
50
|
+
- Ability to scale the output mesh (e.g from meters to cm)
|
|
51
|
+
- Ability to skip imprinting stage
|
|
52
|
+
- Specify meshing parameters for finer or coarser meshes or change the mesh algorithm
|
|
53
|
+
- Ability to specify a material tag for the DAGMC implicit complement
|
|
54
|
+
- Pass objects from CadQuery in memory (without writting to disk)
|
|
55
|
+
|
|
56
|
+
cad-to-dagmc aims to produce DAGMC compatible h5m and vtk files from CAD geometry is intended to convert [STEP](http://www.steptools.com/stds/step/) files, [CadQuery](https://cadquery.readthedocs.io) or [Gmsh]([https://cadquery.readthedocs.io](https://gmsh.info/)) meshes objects to a [DAGMC](https://github.com/svalinn/DAGMC/) compatible h5m file or a DAGMC compatible Unstruuctre vtk file.
|
|
49
57
|
|
|
50
58
|
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/).
|
|
51
59
|
|
|
@@ -146,7 +154,7 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
146
154
|
|
|
147
155
|
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
|
|
148
156
|
```bash
|
|
149
|
-
mamba install -c conda-forge -y "openmc=0.
|
|
157
|
+
mamba install -c conda-forge -y "openmc=0.15.0=dagmc*nompi*"
|
|
150
158
|
```
|
|
151
159
|
|
|
152
160
|
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.
|
|
@@ -160,15 +168,11 @@ The package requires newer versions of Linux. For example the package does not w
|
|
|
160
168
|
|
|
161
169
|
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```
|
|
162
170
|
|
|
163
|
-
Installing one of the package dependancies (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
# Usage - creation of DAGMC h5m files
|
|
171
|
+
Installing one of the package dependancies (Gmsh) with pip appears to result in errors when passing cad objects in memory between cadquery / ocp and gmsh. The default method of passing cad objects is via file so this should not impact most users. The conda install gmsh appears to work fine with in memory passing of cad objects as the version of OCP matches between Gmsh and CadQuery.
|
|
167
172
|
|
|
168
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
169
173
|
|
|
170
|
-
# Usage
|
|
174
|
+
# Usage
|
|
171
175
|
|
|
172
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
176
|
+
For examples showing creation of DAGMC h5m files, vtk files and usage within OpenMC transport code see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
173
177
|
|
|
174
178
|
For more examples see the CAD tasks in the [neutronics-workshop](https://github.com/fusion-energy/neutronics-workshop) and [model benchmark zoo](https://github.com/fusion-energy/model_benchmark_zoo)
|
|
@@ -12,17 +12,25 @@
|
|
|
12
12
|
[](https://pypi.org/project/cad_to_dagmc/)
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/)
|
|
15
|
+
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/) compatible meshes
|
|
16
16
|
|
|
17
|
-
cad-to-dagmc can create:
|
|
17
|
+
cad-to-dagmc can create DAGMC compatible:
|
|
18
18
|
- surface meshes / faceted geometry / triangular meshes
|
|
19
19
|
- unstructured mesh / tetrahedral meshes / volume meshes
|
|
20
20
|
|
|
21
|
-
cad-to-dagmc can convert:
|
|
21
|
+
cad-to-dagmc can convert the following in to DAGMC compatible meshes:
|
|
22
22
|
- STEP files
|
|
23
|
-
- CadQuery objects
|
|
23
|
+
- CadQuery objects
|
|
24
|
+
- Gmsh meshes
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
Options include
|
|
27
|
+
- Ability to scale the output mesh (e.g from meters to cm)
|
|
28
|
+
- Ability to skip imprinting stage
|
|
29
|
+
- Specify meshing parameters for finer or coarser meshes or change the mesh algorithm
|
|
30
|
+
- Ability to specify a material tag for the DAGMC implicit complement
|
|
31
|
+
- Pass objects from CadQuery in memory (without writting to disk)
|
|
32
|
+
|
|
33
|
+
cad-to-dagmc aims to produce DAGMC compatible h5m and vtk files from CAD geometry is intended to convert [STEP](http://www.steptools.com/stds/step/) files, [CadQuery](https://cadquery.readthedocs.io) or [Gmsh]([https://cadquery.readthedocs.io](https://gmsh.info/)) meshes objects to a [DAGMC](https://github.com/svalinn/DAGMC/) compatible h5m file or a DAGMC compatible Unstruuctre vtk file.
|
|
26
34
|
|
|
27
35
|
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/).
|
|
28
36
|
|
|
@@ -123,7 +131,7 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
123
131
|
|
|
124
132
|
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
|
|
125
133
|
```bash
|
|
126
|
-
mamba install -c conda-forge -y "openmc=0.
|
|
134
|
+
mamba install -c conda-forge -y "openmc=0.15.0=dagmc*nompi*"
|
|
127
135
|
```
|
|
128
136
|
|
|
129
137
|
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.
|
|
@@ -137,15 +145,11 @@ The package requires newer versions of Linux. For example the package does not w
|
|
|
137
145
|
|
|
138
146
|
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```
|
|
139
147
|
|
|
140
|
-
Installing one of the package dependancies (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
# Usage - creation of DAGMC h5m files
|
|
148
|
+
Installing one of the package dependancies (Gmsh) with pip appears to result in errors when passing cad objects in memory between cadquery / ocp and gmsh. The default method of passing cad objects is via file so this should not impact most users. The conda install gmsh appears to work fine with in memory passing of cad objects as the version of OCP matches between Gmsh and CadQuery.
|
|
144
149
|
|
|
145
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
146
150
|
|
|
147
|
-
# Usage
|
|
151
|
+
# Usage
|
|
148
152
|
|
|
149
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
153
|
+
For examples showing creation of DAGMC h5m files, vtk files and usage within OpenMC transport code see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
150
154
|
|
|
151
155
|
For more examples see the CAD tasks in the [neutronics-workshop](https://github.com/fusion-energy/neutronics-workshop) and [model benchmark zoo](https://github.com/fusion-energy/model_benchmark_zoo)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: cad_to_dagmc
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
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,8 +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>=2.
|
|
18
|
-
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: cadquery>=2.5.2
|
|
18
|
+
Requires-Dist: numpy
|
|
19
19
|
Requires-Dist: gmsh
|
|
20
20
|
Provides-Extra: tests
|
|
21
21
|
Requires-Dist: pytest; extra == "tests"
|
|
@@ -35,17 +35,25 @@ Requires-Dist: vtk; extra == "tests"
|
|
|
35
35
|
[](https://pypi.org/project/cad_to_dagmc/)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/)
|
|
38
|
+
A minimal package that converts CAD geometry to [DAGMC](https://github.com/svalinn/DAGMC/) compatible meshes
|
|
39
39
|
|
|
40
|
-
cad-to-dagmc can create:
|
|
40
|
+
cad-to-dagmc can create DAGMC compatible:
|
|
41
41
|
- surface meshes / faceted geometry / triangular meshes
|
|
42
42
|
- unstructured mesh / tetrahedral meshes / volume meshes
|
|
43
43
|
|
|
44
|
-
cad-to-dagmc can convert:
|
|
44
|
+
cad-to-dagmc can convert the following in to DAGMC compatible meshes:
|
|
45
45
|
- STEP files
|
|
46
|
-
- CadQuery objects
|
|
46
|
+
- CadQuery objects
|
|
47
|
+
- Gmsh meshes
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
Options include
|
|
50
|
+
- Ability to scale the output mesh (e.g from meters to cm)
|
|
51
|
+
- Ability to skip imprinting stage
|
|
52
|
+
- Specify meshing parameters for finer or coarser meshes or change the mesh algorithm
|
|
53
|
+
- Ability to specify a material tag for the DAGMC implicit complement
|
|
54
|
+
- Pass objects from CadQuery in memory (without writting to disk)
|
|
55
|
+
|
|
56
|
+
cad-to-dagmc aims to produce DAGMC compatible h5m and vtk files from CAD geometry is intended to convert [STEP](http://www.steptools.com/stds/step/) files, [CadQuery](https://cadquery.readthedocs.io) or [Gmsh]([https://cadquery.readthedocs.io](https://gmsh.info/)) meshes objects to a [DAGMC](https://github.com/svalinn/DAGMC/) compatible h5m file or a DAGMC compatible Unstruuctre vtk file.
|
|
49
57
|
|
|
50
58
|
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/).
|
|
51
59
|
|
|
@@ -146,7 +154,7 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
146
154
|
|
|
147
155
|
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
|
|
148
156
|
```bash
|
|
149
|
-
mamba install -c conda-forge -y "openmc=0.
|
|
157
|
+
mamba install -c conda-forge -y "openmc=0.15.0=dagmc*nompi*"
|
|
150
158
|
```
|
|
151
159
|
|
|
152
160
|
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.
|
|
@@ -160,15 +168,11 @@ The package requires newer versions of Linux. For example the package does not w
|
|
|
160
168
|
|
|
161
169
|
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```
|
|
162
170
|
|
|
163
|
-
Installing one of the package dependancies (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
# Usage - creation of DAGMC h5m files
|
|
171
|
+
Installing one of the package dependancies (Gmsh) with pip appears to result in errors when passing cad objects in memory between cadquery / ocp and gmsh. The default method of passing cad objects is via file so this should not impact most users. The conda install gmsh appears to work fine with in memory passing of cad objects as the version of OCP matches between Gmsh and CadQuery.
|
|
167
172
|
|
|
168
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
169
173
|
|
|
170
|
-
# Usage
|
|
174
|
+
# Usage
|
|
171
175
|
|
|
172
|
-
For examples see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
176
|
+
For examples showing creation of DAGMC h5m files, vtk files and usage within OpenMC transport code see the [examples folder](https://github.com/fusion-energy/cad_to_dagmc/tree/main/examples)
|
|
173
177
|
|
|
174
178
|
For more examples see the CAD tasks in the [neutronics-workshop](https://github.com/fusion-energy/neutronics-workshop) and [model benchmark zoo](https://github.com/fusion-energy/model_benchmark_zoo)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/cadquery_object_and_stp_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/multiple_cadquery_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.7.6 → cad_to_dagmc-0.7.7}/examples/surface_mesh/single_stp_file_multiple_volumes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|