diff --git a/examples/surface_mesh/from_gmsh_mesh_file.py b/examples/surface_mesh/from_gmsh_mesh_file.py index d03afab..4d1a5a7 100644 --- a/examples/surface_mesh/from_gmsh_mesh_file.py +++ b/examples/surface_mesh/from_gmsh_mesh_file.py @@ -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") diff --git a/src/cad_to_dagmc/core.py b/src/cad_to_dagmc/core.py index 965c370..49daee6 100644 --- a/src/cad_to_dagmc/core.py +++ b/src/cad_to_dagmc/core.py @@ -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) @@ -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, @@ -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,