Skip to content

Commit

Permalink
update mesh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duarte-jfs committed Jul 29, 2024
1 parent bdf3052 commit 9ce5de4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions femwell/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,17 @@ def mesh_from_OrderedDict(
"SurfacesList",
meshtracker.get_gmsh_xy_surfaces_from_label(label),
)

gmsh.model.mesh.field.setNumbers(
n + 1,
"CurvesList",
meshtracker.get_gmsh_xy_lines_from_label(label),
)

gmsh.option.setNumber("Mesh.MeshSizeExtendFromBoundary", 0)
gmsh.option.setNumber("Mesh.MeshSizeFromPoints", 0)
gmsh.option.setNumber("Mesh.MeshSizeFromCurvature", 0)

# Around surface
mesh_distance = mesh_setting["distance"]
gmsh.model.mesh.field.add("Distance", n + 2)
Expand Down

0 comments on commit 9ce5de4

Please sign in to comment.