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

Method eig_power

python/source.py:630–637  ·  view source on GitHub ↗

Returns the total power of the fields from the eigenmode source at frequency `freq`.

(self, freq)

Source from the content-addressed store, hash-verified

628 self._eig_tolerance = check_positive("EigenModeSource.eig_tolerance", val)
629
630 def eig_power(self, freq):
631 """
632 Returns the total power of the fields from the eigenmode source at frequency `freq`.
633 """
634 amp = self.amplitude
635 if callable(getattr(self.src, "fourier_transform", None)):
636 amp *= self.src.fourier_transform(freq)
637 return abs(amp) ** 2
638
639 def add_source(self, sim):
640 where = mp.Volume(

Callers 1

run_mode_coeffsMethod · 0.95

Calls 2

absFunction · 0.85
fourier_transformMethod · 0.45

Tested by 1

run_mode_coeffsMethod · 0.76