Skip to content

Commit

Permalink
Merge pull request #75 from fusion-energy/tiny_fixes
Browse files Browse the repository at this point in the history
corrected doc string
  • Loading branch information
shimwell authored Apr 5, 2024
2 parents 677e61b + c1ff68a commit 82ad8f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/surface_mesh/from_gmsh_mesh_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# making use of the DAGMC file in OpenMC
import openmc

openmc.config["cross_sections"] = "/home/j/endf-b8.0-hdf5/endfb-viii.0-hdf5/cross_sections.xml"
openmc.config["cross_sections"] = "cross_sections.xml"

mat1 = openmc.Material(name="mat1")
mat1.add_nuclide("H1", 1, percent_type="ao")
Expand Down
9 changes: 3 additions & 6 deletions src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,10 @@ def _mesh_brep(
def mesh_to_vertices_and_triangles(
dims_and_vol_ids,
):
"""Converts gmsh volumes into a DAGMC h5m file.
"""Converts gmsh volumes into vertices and triangles for each face.
Args:
volumes: the volumes in the gmsh file, found with gmsh.model.occ.importShapes
material_tags: A list of material tags to tag the DAGMC volumes with.
Should be in the same order as the volumes
h5m_filename: the filename of the DAGMC h5m file to write
Returns:
vertices and triangles (grouped by solid then by face)
Expand Down Expand Up @@ -435,7 +432,7 @@ def export_unstructured_mesh_file(

imprinted_assembly, _ = cq.occ_impl.assembly.imprint(assembly)

gmsh, volumes = _mesh_brep(
gmsh, _ = _mesh_brep(
brep_object=imprinted_assembly.wrapped._address(),
min_mesh_size=min_mesh_size,
max_mesh_size=max_mesh_size,
Expand Down Expand Up @@ -480,7 +477,7 @@ def export_gmsh_mesh_file(

imprinted_assembly, _ = cq.occ_impl.assembly.imprint(assembly)

gmsh, volumes = _mesh_brep(
gmsh, _ = _mesh_brep(
brep_object=imprinted_assembly.wrapped._address(),
min_mesh_size=min_mesh_size,
max_mesh_size=max_mesh_size,
Expand Down

0 comments on commit 82ad8f8

Please sign in to comment.