Returns the total power of the fields from the eigenmode source at frequency `freq`.
(self, freq)
| 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( |