Given a frequency `frequency`, (provided as a keyword argument) output $\\varepsilon$ (relative permittivity); for an anisotropic $\\varepsilon$ tensor the output is the [harmonic mean](https://en.wikipedia.org/wiki/Harmonic_mean) of the $\\varepsilon$ eigenvalues. If `frequency` is
(sim=None, *step_func_args, **kwargs)
| 5619 | |
| 5620 | |
| 5621 | def output_epsilon(sim=None, *step_func_args, **kwargs): |
| 5622 | """ |
| 5623 | Given a frequency `frequency`, (provided as a keyword argument) output $\\varepsilon$ (relative |
| 5624 | permittivity); for an anisotropic $\\varepsilon$ tensor the output is the [harmonic |
| 5625 | mean](https://en.wikipedia.org/wiki/Harmonic_mean) of the $\\varepsilon$ eigenvalues. If |
| 5626 | `frequency` is non-zero, the output is complex; otherwise it is the real, |
| 5627 | frequency-independent part of $\\varepsilon$ (the $\\omega\\to\\infty$ limit). |
| 5628 | When called as part of a [step function](Python_User_Interface.md#controlling-when-a-step-function-executes), |
| 5629 | the `sim` argument specifying the `Simulation` object can be omitted, e.g., |
| 5630 | `sim.run(mp.at_beginning(mp.output_epsilon(frequency=1/0.7)),until=10)`. |
| 5631 | """ |
| 5632 | if sim is None: |
| 5633 | return lambda sim: mp.output_epsilon(sim, *step_func_args, **kwargs) |
| 5634 | |
| 5635 | frequency = kwargs.pop("frequency", 0.0) |
| 5636 | sim.output_component(mp.Dielectric, frequency=frequency) |
| 5637 | |
| 5638 | |
| 5639 | def output_mu(sim=None, *step_func_args, **kwargs): |
nothing calls this directly
no test coverage detected