Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ pw_amp
Function
pw_amp
python/examples/mode_coeff_phase.py:56–60 ·
view source on GitHub ↗
(k, x0)
Source
from the content-addressed store, hash-verified
54
55
# planewave amplitude function (for line source)
56
def
pw_amp(k, x0):
57
def
_pw_amp(x):
58
return
cmath.exp(1j * 2 * math.pi * k.dot(x + x0))
59
60
return
_pw_amp
61
62
src_pt = mp.Vector3(-0.5 * sx, 0, 0)
63
Callers
1
refl_coeff_meep
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected