Skip to content

Commit

Permalink
Merge pull request #173 from duarte-jfs/improve_meshing
Browse files Browse the repository at this point in the history
Improve meshing
  • Loading branch information
HelgeGehring authored Nov 7, 2024
2 parents 3553585 + 9ce5de4 commit ff3a4a3
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 ff3a4a3

Please sign in to comment.