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

Method test_run_te

python/tests/test_mpb.py:327–396  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325 self.assertEqual(len(ms.gap_list), 0)
326
327 def test_run_te(self):
328
329 expected_freqs = [
330 0.0,
331 0.5527092320101986,
332 0.7732265593069759,
333 0.773229883948054,
334 0.9229965195855876,
335 1.0001711176882833,
336 1.0001720032257042,
337 1.092820931747826,
338 ]
339
340 expected_brd = [
341 (
342 (0.0, mp.Vector3(0.0, 0.0, 0.0)),
343 (0.49683586474489877, mp.Vector3(0.5, 0.5, 0.0)),
344 ),
345 (
346 (0.4415884497225449, mp.Vector3(0.5, 0.0, 0.0)),
347 (0.5931405141160885, mp.Vector3(0.5, 0.5, 0.0)),
348 ),
349 (
350 (0.5931535863117832, mp.Vector3(0.5, 0.5, 0.0)),
351 (0.7732265593069759, mp.Vector3(0.0, 0.0, 0.0)),
352 ),
353 (
354 (0.6791690130757013, mp.Vector3(0.5, 0.5, 0.0)),
355 (
356 0.80968915516771,
357 mp.Vector3(0.30000000000000004, 0.30000000000000004, 0.0),
358 ),
359 ),
360 (
361 (0.8241814443502151, mp.Vector3(0.5, 0.30000000000000004, 0.0)),
362 (0.9229965195855876, mp.Vector3(0.0, 0.0, 0.0)),
363 ),
364 (
365 (0.8819770916660669, mp.Vector3(0.5, 0.5, 0.0)),
366 (1.0291597050650205, mp.Vector3(0.5, 0.0, 0.0)),
367 ),
368 (
369 (0.8819818134421844, mp.Vector3(0.5, 0.5, 0.0)),
370 (1.086072932359415, mp.Vector3(0.5, 0.0, 0.0)),
371 ),
372 (
373 (1.0878689635052692, mp.Vector3(0.5, 0.0, 0.0)),
374 (1.1119173707556929, mp.Vector3(0.5, 0.5, 0.0)),
375 ),
376 ]
377
378 expected_gap_list = [
379 (0.0022038709776893727, 0.5931405141160885, 0.5931535863117832),
380 (1.7739824912427062, 0.80968915516771, 0.8241814443502151),
381 (0.1652326724344101, 1.086072932359415, 1.0878689635052692),
382 ]
383
384 ms = self.init_solver()

Callers

nothing calls this directly

Calls 5

init_solverMethod · 0.95
check_band_range_dataMethod · 0.95
check_gap_listMethod · 0.95
get_epsilon_pointMethod · 0.45

Tested by

no test coverage detected