Skip to content

Commit

Permalink
add memo
Browse files Browse the repository at this point in the history
  • Loading branch information
mnagaso committed Apr 20, 2024
1 parent f88ba0f commit fcebf23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions EXAMPLES/Gmsh_example_CPML_MPI/create_geom_with_pygmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def add_one_rect_1d(self, geom, xy1, xy2, xy3, xy4, lc, nelm_h, nelm_v, transfin
mat_tag=mat_tag, pml_tag=pml_tag, bound_tag=bound_tag))
self.n_rects += 1


# add pml layers
# Currently only works for one column of rectangles
# but it is easy to update for multiple columns, which only requires
# additional lines to detect the leftmost and rightmost rectangles
# + multiple top/bottom rectangles
def add_pml_layers(self, geom, w_pml, lc_pml, top_pml=False):
# find the bottom and top rectangle
ave_y_min = 1e10
Expand Down

0 comments on commit fcebf23

Please sign in to comment.