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

Method ExH

python/solver.py:360–363  ·  view source on GitHub ↗
(e, h)

Source from the content-addressed store, hash-verified

358 res = np.zeros(e.shape, dtype=np.complex128)
359
360 def ExH(e, h):
361 ev = mp.Vector3(e[0], e[1], e[2])
362 hv = mp.Vector3(h[0], h[1], h[2])
363 return ev.conj().cross(hv)
364
365 for i in range(e.shape[0]):
366 res[i] = np.array(ExH(e[i], h[i]))

Callers

nothing calls this directly

Calls 2

conjMethod · 0.95
crossMethod · 0.80

Tested by

no test coverage detected