improve pml specification
This commit is contained in:
parent
c137da15b9
commit
d02cd18403
4 changed files with 69 additions and 54 deletions
4
fdtd.py
4
fdtd.py
|
|
@ -126,7 +126,9 @@ def main():
|
|||
|
||||
logger.info('grid shape: {}'.format(grid.shape))
|
||||
# #### Create the simulation grid ####
|
||||
sim = Simulation(grid.grids, do_poynting=True, pml_thickness=8)
|
||||
pmls = [{'axis': a, 'polarity': p, 'thickness': pml_thickness}
|
||||
for a in 'xyz' for p in 'np']
|
||||
sim = Simulation(grid.grids, do_poynting=True, pmls=pmls)
|
||||
|
||||
# Source parameters and function
|
||||
w = 2 * numpy.pi * dx / wl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue