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

Method load_minus_flux_data

python/simulation.py:3651–3658  ·  view source on GitHub ↗

As `load_flux_data`, but negates the Fourier-transformed fields after they are loaded. This means that they will be *subtracted* from any future field Fourier transforms that are accumulated.

(self, flux, fdata)

Source from the content-addressed store, hash-verified

3649 load_mode_data = load_flux_data
3650
3651 def load_minus_flux_data(self, flux, fdata):
3652 """
3653 As `load_flux_data`, but negates the Fourier-transformed fields after they are
3654 loaded. This means that they will be *subtracted* from any future field Fourier
3655 transforms that are accumulated.
3656 """
3657 self.load_flux_data(flux, fdata)
3658 flux.scale_dfts(complex(-1.0))
3659
3660 load_minus_mode_data = load_minus_flux_data
3661

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
refl_coeff_meepFunction · 0.95
mainFunction · 0.95
refl_planarFunction · 0.95
run_bend_fluxMethod · 0.80

Calls 2

load_flux_dataMethod · 0.95
scale_dftsMethod · 0.45

Tested by 9

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