`add_mode_monitor(fcen, df, nfreq, freq, ModeRegions, decimation_factor=0)` ##sig Similar to `add_flux`, but for use with `get_eigenmode_coefficients`.
(self, *args, **kwargs)
| 3528 | ) |
| 3529 | |
| 3530 | def add_mode_monitor(self, *args, **kwargs): |
| 3531 | """ |
| 3532 | `add_mode_monitor(fcen, df, nfreq, freq, ModeRegions, decimation_factor=0)` ##sig |
| 3533 | |
| 3534 | Similar to `add_flux`, but for use with `get_eigenmode_coefficients`. |
| 3535 | """ |
| 3536 | args = fix_dft_args(args, 0) |
| 3537 | freq = args[0] |
| 3538 | fluxes = args[1:] |
| 3539 | decimation_factor = kwargs.get("decimation_factor", 0) |
| 3540 | yee_grid = kwargs.get("yee_grid", False) |
| 3541 | flux = DftFlux( |
| 3542 | self._add_mode_monitor, [freq, fluxes, yee_grid, decimation_factor] |
| 3543 | ) |
| 3544 | self.dft_objects.append(flux) |
| 3545 | return flux |
| 3546 | |
| 3547 | def _add_mode_monitor(self, freq, fluxes, yee_grid, decimation_factor): |
| 3548 | if self.fields is None: |