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

Method load_flux_data

python/simulation.py:3638–3647  ·  view source on GitHub ↗

Load the Fourier-transformed fields into the given flux object (replacing any values currently there) from the `FluxData` object `fdata`. You must load from an object that was created by `get_flux_data` in a simulation of the same dimensions (for both the cell and th

(self, flux, fdata)

Source from the content-addressed store, hash-verified

3636 get_mode_data = get_flux_data
3637
3638 def load_flux_data(self, flux, fdata):
3639 """
3640 Load the Fourier-transformed fields into the given flux object (replacing any
3641 values currently there) from the `FluxData` object `fdata`. You must load from an
3642 object that was created by `get_flux_data` in a simulation of the same dimensions
3643 (for both the cell and the flux regions) with the same number of processors and
3644 chunk layout.
3645 """
3646 mp._load_dft_data(flux.E, fdata.E)
3647 mp._load_dft_data(flux.H, fdata.H)
3648
3649 load_mode_data = load_flux_data
3650

Callers 1

load_minus_flux_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected