(self)
| 25 | mp.delete_directory(cls.temp_dir) |
| 26 | |
| 27 | def init(self): |
| 28 | resolution = 20 |
| 29 | |
| 30 | cell = mp.Vector3(10, 10, 0) |
| 31 | |
| 32 | pml_layers = mp.PML(1.0) |
| 33 | |
| 34 | fcen = 1.0 |
| 35 | df = 1.0 |
| 36 | |
| 37 | sources = mp.Source( |
| 38 | src=mp.GaussianSource(fcen, fwidth=df), center=mp.Vector3(), component=mp.Ez |
| 39 | ) |
| 40 | |
| 41 | symmetries = [mp.Mirror(mp.X), mp.Mirror(mp.Y)] |
| 42 | |
| 43 | return mp.Simulation( |
| 44 | resolution=resolution, |
| 45 | cell_size=cell, |
| 46 | boundary_layers=[pml_layers], |
| 47 | sources=[sources], |
| 48 | symmetries=symmetries, |
| 49 | ) |
| 50 | |
| 51 | def init2(self): |
| 52 | n = 3.4 |
no outgoing calls
no test coverage detected