(sim)
| 353 | |
| 354 | def test_set_materials(self): |
| 355 | def change_geom(sim): |
| 356 | t = sim.meep_time() |
| 357 | fn = t * 0.02 |
| 358 | geom = [ |
| 359 | mp.Cylinder( |
| 360 | radius=3, material=mp.Medium(index=3.5), center=mp.Vector3(fn, fn) |
| 361 | ), |
| 362 | mp.Ellipsoid(size=mp.Vector3(1, 2, mp.inf), center=mp.Vector3(fn, fn)), |
| 363 | ] |
| 364 | |
| 365 | sim.set_materials(geometry=geom) |
| 366 | |
| 367 | c = mp.Cylinder(radius=3, material=mp.Medium(index=3.5)) |
| 368 | e = mp.Ellipsoid(size=mp.Vector3(1, 2, mp.inf)) |
nothing calls this directly
no test coverage detected