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

Function output_mu

python/simulation.py:5639–5654  ·  view source on GitHub ↗

Given a frequency `frequency`, (provided as a keyword argument) output $\\mu$ (relative permeability); for an anisotropic $\\mu$ tensor the output is the [harmonic mean](https://en.wikipedia.org/wiki/Harmonic_mean) of the $\\mu$ eigenvalues. If `frequency` is non-zero, the output is

(sim=None, *step_func_args, **kwargs)

Source from the content-addressed store, hash-verified

5637
5638
5639def output_mu(sim=None, *step_func_args, **kwargs):
5640 """
5641 Given a frequency `frequency`, (provided as a keyword argument) output $\\mu$ (relative
5642 permeability); for an anisotropic $\\mu$ tensor the output is the [harmonic
5643 mean](https://en.wikipedia.org/wiki/Harmonic_mean) of the $\\mu$ eigenvalues. If
5644 `frequency` is non-zero, the output is complex; otherwise it is the real,
5645 frequency-independent part of $\\mu$ (the $\\omega\\to\\infty$ limit).
5646 When called as part of a [step function](Python_User_Interface.md#controlling-when-a-step-function-executes),
5647 the `sim` argument specifying the `Simulation` object can be omitted, e.g.,
5648 `sim.run(mp.at_beginning(mp.output_mu(frequency=1/0.7)),until=10)`.
5649 """
5650 if sim is None:
5651 return lambda sim: mp.output_mu(sim, *step_func_args, **kwargs)
5652
5653 frequency = kwargs.pop("frequency", 0.0)
5654 sim.output_component(mp.Permeability, frequency=frequency)
5655
5656
5657def output_hpwr(sim):

Callers

nothing calls this directly

Calls 2

output_muMethod · 0.80
output_componentMethod · 0.80

Tested by

no test coverage detected