cad-to-dagmc 0.9.6__tar.gz → 0.9.8__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.
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.github/workflows/ci_with_pip_install.yml +12 -9
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/PKG-INFO +4 -4
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/README.md +3 -3
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/_version.py +3 -3
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc/core.py +17 -4
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc/direct_mesh_plugin.py +2 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc.egg-info/PKG-INFO +4 -4
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_file_creation.py +3 -1
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_get_volumes.py +20 -4
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_h5m_in_transport.py +3 -1
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_kwarg_args.py +3 -1
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_python_api.py +3 -1
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.github/workflows/black.yml +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.github/workflows/ci_with_benchmarks.yml +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.github/workflows/ci_with_conda_install.yml +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.github/workflows/python-publish.yml +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/.gitignore +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/CITATION.cff +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/LICENSE +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_and_unstructured_mesh/unstructured_mesh_with_conformal_surface_mesh.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_assembly.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_compound.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_object_and_stp_file.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_text.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/curved_cadquery_object_to_dagmc_surface_mesh.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/different_resolution_meshes.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/from_gmsh_mesh_file.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/from_gmsh_mesh_file_with_tags.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/from_gmsh_object_with_tag.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/multiple_cadquery_objects.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/multiple_stp_files.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/single_cadquery_object.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/single_stp_file.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/single_stp_file_multiple_volumes.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/tagged_mesh.msh +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/unstrucutred_volume_mesh/curved_cadquery_object_to_dagmc_volume_mesh.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/unstrucutred_volume_mesh/different_resolution_meshes.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/unstrucutred_volume_mesh/simulate_unstrucutred_volume_mesh_with_openmc.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/pyproject.toml +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/setup.cfg +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc/__init__.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc.egg-info/SOURCES.txt +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc.egg-info/dependency_links.txt +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc.egg-info/requires.txt +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/src/cad_to_dagmc.egg-info/top_level.txt +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/ENDFB-7.1-NNDC_H1.h5 +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/ball_reactor.brep +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/curved_extrude.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/extrude_rectangle.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/multi_volume_cylinders.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/one_cube.brep +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/single_cube.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/single_volume_thin.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/single_volume_thin.vtk +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/tagged_mesh.msh +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_brep_file.brep +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_loading_from_file_vs_shape_object.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_mesh_to_dagmc.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_two_joined_cubes.brep +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_two_sep_cubes.brep +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/test_version.py +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/two_connected_cubes.stp +0 -0
- {cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/tests/two_disconnected_cubes.stp +0 -0
|
@@ -21,22 +21,25 @@ on:
|
|
|
21
21
|
jobs:
|
|
22
22
|
testing:
|
|
23
23
|
runs-on: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
python-version: [3.12]
|
|
26
27
|
steps:
|
|
28
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
27
32
|
- name: Checkout repository
|
|
28
33
|
uses: actions/checkout@v4
|
|
29
34
|
|
|
30
35
|
- name: install non pypi dependencies
|
|
31
36
|
shell: bash
|
|
32
37
|
run: |
|
|
33
|
-
apt-get
|
|
34
|
-
apt-get
|
|
35
|
-
apt-get
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
apt install python3-pip
|
|
39
|
-
python -m pip install --extra-index-url https://shimwell.github.io/wheels moab
|
|
38
|
+
sudo apt-get update -y
|
|
39
|
+
sudo apt-get upgrade -y
|
|
40
|
+
sudo apt-get install -y libblas-dev liblapack-dev libgl1 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0 libxcursor-dev libxft2 libxinerama-dev make cmake libeigen3-dev
|
|
41
|
+
# Python3 and pip are pre-installed on GitHub Actions runners
|
|
42
|
+
python -m pip install --extra-index-url https://shimwell.github.io/wheels moab openmc
|
|
40
43
|
python -c "import pymoab"
|
|
41
44
|
python -m pip install .[tests]
|
|
42
45
|
python -m pip install git+https://github.com/svalinn/pydagmc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cad_to_dagmc
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.8
|
|
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
|
|
@@ -73,7 +73,7 @@ Cad-to-dagmc offers a wide range of features including.
|
|
|
73
73
|
|
|
74
74
|
- Install using Mamba
|
|
75
75
|
- Install using Conda
|
|
76
|
-
- Install using pip
|
|
76
|
+
- Install using pip
|
|
77
77
|
|
|
78
78
|
## Install using Mamba
|
|
79
79
|
|
|
@@ -151,10 +151,10 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
151
151
|
|
|
152
152
|
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
|
|
153
153
|
```bash
|
|
154
|
-
mamba install -c conda-forge -y "openmc=0.15.
|
|
154
|
+
mamba install -c conda-forge -y "openmc=0.15.2=dagmc*nompi*"
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
You could also install using this [wheel repo](https://github.com/shimwell/wheels)
|
|
158
158
|
|
|
159
159
|
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.
|
|
160
160
|
|
|
@@ -48,7 +48,7 @@ Cad-to-dagmc offers a wide range of features including.
|
|
|
48
48
|
|
|
49
49
|
- Install using Mamba
|
|
50
50
|
- Install using Conda
|
|
51
|
-
- Install using pip
|
|
51
|
+
- Install using pip
|
|
52
52
|
|
|
53
53
|
## Install using Mamba
|
|
54
54
|
|
|
@@ -126,10 +126,10 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
126
126
|
|
|
127
127
|
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
|
|
128
128
|
```bash
|
|
129
|
-
mamba install -c conda-forge -y "openmc=0.15.
|
|
129
|
+
mamba install -c conda-forge -y "openmc=0.15.2=dagmc*nompi*"
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
You could also install using this [wheel repo](https://github.com/shimwell/wheels)
|
|
133
133
|
|
|
134
134
|
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.
|
|
135
135
|
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.9.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 9,
|
|
31
|
+
__version__ = version = '0.9.8'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 9, 8)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g00e5e76df'
|
|
@@ -106,6 +106,9 @@ def vertices_to_h5m(
|
|
|
106
106
|
|
|
107
107
|
moab_core, tags = define_moab_core_and_tags()
|
|
108
108
|
|
|
109
|
+
# Add the vertices once at the start
|
|
110
|
+
all_moab_verts = moab_core.create_vertices(vertices)
|
|
111
|
+
|
|
109
112
|
volume_sets_by_solid_id = {}
|
|
110
113
|
for material_tag, (solid_id, triangles_on_each_face) in zip(
|
|
111
114
|
material_tags, triangles_by_solid_by_face.items()
|
|
@@ -145,14 +148,21 @@ def vertices_to_h5m(
|
|
|
145
148
|
|
|
146
149
|
moab_core.tag_set_data(tags["surf_sense"], face_set, sense_data)
|
|
147
150
|
|
|
148
|
-
|
|
151
|
+
# Collect only the vertices that lie on triangles on this face
|
|
152
|
+
face_vertices_set = set()
|
|
153
|
+
for triangle in triangles_on_face:
|
|
154
|
+
face_vertices_set.update(triangle)
|
|
155
|
+
face_vertices_list = sorted(face_vertices_set)
|
|
156
|
+
|
|
157
|
+
# Only add these to the MOAB face
|
|
158
|
+
moab_verts = [all_moab_verts[ii] for ii in face_vertices_list]
|
|
149
159
|
moab_core.add_entity(face_set, moab_verts)
|
|
150
160
|
|
|
151
161
|
for triangle in triangles_on_face:
|
|
152
162
|
tri = (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
163
|
+
all_moab_verts[int(triangle[0])],
|
|
164
|
+
all_moab_verts[int(triangle[1])],
|
|
165
|
+
all_moab_verts[int(triangle[2])],
|
|
156
166
|
)
|
|
157
167
|
|
|
158
168
|
moab_triangle = moab_core.create_element(types.MBTRI, tri)
|
|
@@ -687,6 +697,7 @@ class CadToDagmc:
|
|
|
687
697
|
assembly.add(part)
|
|
688
698
|
|
|
689
699
|
if imprint:
|
|
700
|
+
print("Imprinting assembly for unstructured mesh generation")
|
|
690
701
|
imprinted_assembly, _ = cq.occ_impl.assembly.imprint(assembly)
|
|
691
702
|
else:
|
|
692
703
|
imprinted_assembly = assembly
|
|
@@ -777,6 +788,7 @@ class CadToDagmc:
|
|
|
777
788
|
assembly.add(part)
|
|
778
789
|
|
|
779
790
|
if imprint:
|
|
791
|
+
print("Imprinting assembly for mesh generation")
|
|
780
792
|
imprinted_assembly, _ = cq.occ_impl.assembly.imprint(assembly)
|
|
781
793
|
else:
|
|
782
794
|
imprinted_assembly = assembly
|
|
@@ -1013,6 +1025,7 @@ class CadToDagmc:
|
|
|
1013
1025
|
elif meshing_backend == "gmsh":
|
|
1014
1026
|
# If assembly is not to be imprinted, pass through the assembly as-is
|
|
1015
1027
|
if imprint:
|
|
1028
|
+
print("Imprinting assembly for mesh generation")
|
|
1016
1029
|
imprinted_assembly, imprinted_solids_with_org_id = cq.occ_impl.assembly.imprint(
|
|
1017
1030
|
assembly
|
|
1018
1031
|
)
|
|
@@ -291,6 +291,7 @@ def to_mesh(
|
|
|
291
291
|
# Imprinted assemblies end up being compounds, whereas you have to step through each of the
|
|
292
292
|
# parts in an assembly and extract the solids.
|
|
293
293
|
if imprint:
|
|
294
|
+
print("Imprinting assembly for mesh generation")
|
|
294
295
|
# Imprint the assembly and process it as a compound
|
|
295
296
|
(
|
|
296
297
|
imprinted_assembly,
|
|
@@ -329,6 +330,7 @@ def to_mesh(
|
|
|
329
330
|
|
|
330
331
|
# Step through all of the collected solids and their respective faces to get the vertices
|
|
331
332
|
for solid in solids:
|
|
333
|
+
print(f"Meshing solid {solid_idx} of {len(solids)}")
|
|
332
334
|
# Reset this each time so that we get the correct number of faces per solid
|
|
333
335
|
face_triangles = {}
|
|
334
336
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cad_to_dagmc
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.8
|
|
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
|
|
@@ -73,7 +73,7 @@ Cad-to-dagmc offers a wide range of features including.
|
|
|
73
73
|
|
|
74
74
|
- Install using Mamba
|
|
75
75
|
- Install using Conda
|
|
76
|
-
- Install using pip
|
|
76
|
+
- Install using pip
|
|
77
77
|
|
|
78
78
|
## Install using Mamba
|
|
79
79
|
|
|
@@ -151,10 +151,10 @@ You may also want to install OpenMC with DAGMC to make use of the h5m geometry f
|
|
|
151
151
|
|
|
152
152
|
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
|
|
153
153
|
```bash
|
|
154
|
-
mamba install -c conda-forge -y "openmc=0.15.
|
|
154
|
+
mamba install -c conda-forge -y "openmc=0.15.2=dagmc*nompi*"
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
You could also install using this [wheel repo](https://github.com/shimwell/wheels)
|
|
158
158
|
|
|
159
159
|
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.
|
|
160
160
|
|
|
@@ -133,7 +133,9 @@ def test_h5m_with_multi_volume_touching(meshing_backend):
|
|
|
133
133
|
assert get_volumes_and_materials_from_h5m(h5m_file) == tags_dict
|
|
134
134
|
|
|
135
135
|
cad_to_dagmc.export_gmsh_file_to_dagmc_h5m_file(
|
|
136
|
-
dagmc_filename=h5m_file,
|
|
136
|
+
dagmc_filename=h5m_file,
|
|
137
|
+
material_tags=mat_tags,
|
|
138
|
+
gmsh_filename=h5m_file + ".msh",
|
|
137
139
|
)
|
|
138
140
|
assert get_volumes_and_materials_from_h5m(h5m_file) == tags_dict
|
|
139
141
|
|
|
@@ -9,8 +9,14 @@ import cad_to_dagmc
|
|
|
9
9
|
"scale_factor, expected_bbox",
|
|
10
10
|
[
|
|
11
11
|
(1.0, (-5.0000001, -5.0000001, -5.0000001, 5.0000001, 5.0000001, 5.0000001)),
|
|
12
|
-
(
|
|
13
|
-
|
|
12
|
+
(
|
|
13
|
+
2.0,
|
|
14
|
+
(-10.0000001, -10.0000001, -10.0000001, 10.0000001, 10.0000001, 10.0000001),
|
|
15
|
+
),
|
|
16
|
+
(
|
|
17
|
+
10.0,
|
|
18
|
+
(-50.0000001, -50.0000001, -50.0000001, 50.0000001, 50.0000001, 50.0000001),
|
|
19
|
+
),
|
|
14
20
|
],
|
|
15
21
|
)
|
|
16
22
|
def test_get_volumes(scale_factor, expected_bbox):
|
|
@@ -35,8 +41,18 @@ def test_get_volumes(scale_factor, expected_bbox):
|
|
|
35
41
|
@pytest.mark.parametrize(
|
|
36
42
|
"scale_factor, expected_bbox_lower_left, expected_bbox_upper_right, meshing_backend",
|
|
37
43
|
[
|
|
38
|
-
(
|
|
39
|
-
|
|
44
|
+
(
|
|
45
|
+
1.0,
|
|
46
|
+
(-5.0000001, -5.0000001, -5.0000001),
|
|
47
|
+
(5.0000001, 5.0000001, 5.0000001),
|
|
48
|
+
"cadquery",
|
|
49
|
+
),
|
|
50
|
+
(
|
|
51
|
+
1.0,
|
|
52
|
+
(-5.0000001, -5.0000001, -5.0000001),
|
|
53
|
+
(5.0000001, 5.0000001, 5.0000001),
|
|
54
|
+
"gmsh",
|
|
55
|
+
),
|
|
40
56
|
(
|
|
41
57
|
2.0,
|
|
42
58
|
(-10.0000001, -10.0000001, -10.0000001),
|
|
@@ -288,7 +288,9 @@ def test_umesh_with_volumes(meshing_backend):
|
|
|
288
288
|
model.add_cadquery_object(assembly, material_tags=mat_tags)
|
|
289
289
|
|
|
290
290
|
h5m_file = model.export_dagmc_h5m_file(
|
|
291
|
-
filename="dagmc.h5m",
|
|
291
|
+
filename="dagmc.h5m",
|
|
292
|
+
set_size={1: 0.9, 2: 0.1, 3: 0.9},
|
|
293
|
+
meshing_backend=meshing_backend,
|
|
292
294
|
)
|
|
293
295
|
|
|
294
296
|
vtk_file = model.export_unstructured_mesh_file(
|
|
@@ -54,7 +54,9 @@ class TestKwargsExportDagmcH5mFile:
|
|
|
54
54
|
|
|
55
55
|
with pytest.raises(ValueError, match="CadQuery backend cannot be used for volume meshing"):
|
|
56
56
|
self.my_model.export_dagmc_h5m_file(
|
|
57
|
-
filename=str(output_file),
|
|
57
|
+
filename=str(output_file),
|
|
58
|
+
meshing_backend="cadquery",
|
|
59
|
+
unstructured_volumes=[1],
|
|
58
60
|
)
|
|
59
61
|
|
|
60
62
|
def test_invalid_meshing_backend_raises_error(self, tmp_path):
|
|
@@ -400,7 +400,9 @@ def test_unstructured_mesh_with_volumes(meshing_backend):
|
|
|
400
400
|
model.add_cadquery_object(assembly, material_tags=["mat1", "mat2", "mat3"])
|
|
401
401
|
|
|
402
402
|
filename = model.export_dagmc_h5m_file(
|
|
403
|
-
filename="dagmc.h5m",
|
|
403
|
+
filename="dagmc.h5m",
|
|
404
|
+
set_size={1: 0.9, 2: 0.1, 3: 0.9},
|
|
405
|
+
meshing_backend=meshing_backend,
|
|
404
406
|
)
|
|
405
407
|
assert Path(filename).is_file()
|
|
406
408
|
|
|
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
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/cadquery_object_and_stp_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/different_resolution_meshes.py
RENAMED
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/from_gmsh_mesh_file_with_tags.py
RENAMED
|
File without changes
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/from_gmsh_object_with_tag.py
RENAMED
|
File without changes
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/examples/surface_mesh/multiple_cadquery_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cad_to_dagmc-0.9.6 → cad_to_dagmc-0.9.8}/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
|
|
File without changes
|
|
File without changes
|