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

Method get_flux_data

python/simulation.py:3628–3634  ·  view source on GitHub ↗

Get the Fourier-transformed fields corresponding to the given flux object as a `FluxData`, which is just a named tuple of NumPy arrays. Note that this object is only useful for passing to `load_flux_data` below and should be considered opaque.

(self, flux)

Source from the content-addressed store, hash-verified

3626 load_minus_mode = load_minus_flux
3627
3628 def get_flux_data(self, flux):
3629 """
3630 Get the Fourier-transformed fields corresponding to the given flux object as a
3631 `FluxData`, which is just a named tuple of NumPy arrays. Note that this object is
3632 only useful for passing to `load_flux_data` below and should be considered opaque.
3633 """
3634 return FluxData(E=self.get_dft_data(flux.E), H=self.get_dft_data(flux.H))
3635
3636 get_mode_data = get_flux_data
3637

Callers 15

reflectance_angularMethod · 0.95
refl_planarMethod · 0.95
test_linear_taper_2dMethod · 0.95
test_grating_3dMethod · 0.95
test_phaseMethod · 0.95
adjoint_solverMethod · 0.95
refl_coeff_meepFunction · 0.95
mainFunction · 0.95

Calls 1

get_dft_dataMethod · 0.95

Tested by 11

reflectance_angularMethod · 0.76
refl_planarMethod · 0.76
test_linear_taper_2dMethod · 0.76
test_grating_3dMethod · 0.76
test_phaseMethod · 0.76
adjoint_solverMethod · 0.76
run_bend_fluxMethod · 0.64