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

Method load_force_data

python/simulation.py:3474–3484  ·  view source on GitHub ↗

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

(self, force, fdata)

Source from the content-addressed store, hash-verified

3472 )
3473
3474 def load_force_data(self, force, fdata):
3475 """
3476 Load the Fourier-transformed fields into the given force object (replacing any
3477 values currently there) from the `ForceData` object `fdata`. You must load from an
3478 object that was created by `get_force_data` in a simulation of the same dimensions
3479 (for both the cell and the flux regions) with the same number of processors and
3480 chunk layout.
3481 """
3482 mp._load_dft_data(force.offdiag1, fdata.offdiag1)
3483 mp._load_dft_data(force.offdiag2, fdata.offdiag2)
3484 mp._load_dft_data(force.diag, fdata.diag)
3485
3486 def load_minus_force_data(self, force, fdata):
3487 """

Callers 2

load_minus_force_dataMethod · 0.95
test_forceMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_forceMethod · 0.76