MCPcopy Create free account
hub / github.com/NanoComp/meep / change_geom

Method change_geom

python/tests/test_simulation.py:355–365  ·  view source on GitHub ↗
(sim)

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls 2

meep_timeMethod · 0.80
set_materialsMethod · 0.45

Tested by

no test coverage detected