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

Function pw_amp

python/examples/diffracted_planewave.py:49–53  ·  view source on GitHub ↗
(k, x0)

Source from the content-addressed store, hash-verified

47 symmetries = [mp.Mirror(direction=mp.Y, phase=-1)]
48
49 def pw_amp(k, x0):
50 def _pw_amp(x):
51 return cmath.exp(1j * 2 * math.pi * k.dot(x + x0))
52
53 return _pw_amp
54
55 src_pt = mp.Vector3(-0.5 * sx + dpml, 0, 0)
56 sources = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected