Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add images to RF waveguide tutorial #166

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "improved meshing"
This reverts commit 995a03d.
  • Loading branch information
duarte-jfs committed Jul 29, 2024
commit 9792556f8194b648b0531d9e5706cacf834c271a
13 changes: 0 additions & 13 deletions femwell/mesh/mesh.py
Original file line number Diff line number Diff line change
@@ -359,17 +359,6 @@ 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)
@@ -392,12 +381,10 @@ def mesh_from_OrderedDict(
gmsh.model.mesh.field.setNumber(n + 3, "DistMin", 0)
gmsh.model.mesh.field.setNumber(n + 3, "DistMax", mesh_distance)
gmsh.model.mesh.field.setNumber(n + 3, "StopAtDistMax", 1)

# Save and increment
refinement_fields.append(n + 1)
refinement_fields.append(n + 3)
n += 4
pass

if global_quad:
gmsh.option.setNumber("Mesh.Algorithm", 8)