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

Function diamond

python/examples/mpb_data_analysis.py:61–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def diamond():
62 # Import the ModeSolver from the mpb_diamond.py example
63 from mpb_diamond import ms as d_ms
64
65 dpwr = []
66
67 def get_dpwr(ms, band):
68 dpwr.append(ms.get_dpwr(band))
69
70 d_ms.run(mpb.output_at_kpoint(mp.Vector3(0, 0.625, 0.375), get_dpwr))
71
72 md = mpb.MPBData(rectify=True, periods=2, resolution=32)
73 converted_dpwr = [md.convert(d) for d in dpwr]
74
75 # TODO: Plot
76
77
78if __name__ == "__main__":

Callers 1

Calls 2

convertMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected