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

Method reset_meep

python/simulation.py:4490–4503  ·  view source on GitHub ↗

Reset all of Meep's parameters, deleting the fields, structures, etcetera, from memory as if you had not run any computations. If the `num_chunks` or `chunk_layout` attributes have been modified internally, they are reset to their original values passed in at instant

(self)

Source from the content-addressed store, hash-verified

4488 self.add_sources()
4489
4490 def reset_meep(self):
4491 """
4492 Reset all of Meep's parameters, deleting the fields, structures, etcetera, from
4493 memory as if you had not run any computations. If the `num_chunks` or `chunk_layout`
4494 attributes have been modified internally, they are reset to their original
4495 values passed in at instantiation.
4496 """
4497 self.fields = None
4498 self.structure = None
4499 self.geps = None
4500 self.dft_objects = []
4501 self.num_chunks = self._num_chunks_original
4502 self.chunk_layout = self._chunk_layout_original
4503 self._is_initialized = False
4504
4505 def restart_fields(self):
4506 """

Callers 15

reflectance_angularMethod · 0.95
test_array_metadataMethod · 0.95
refl_planarMethod · 0.95
forward_simulationFunction · 0.95
adjoint_solverFunction · 0.95
test_nea2far_periodicMethod · 0.95
test_linear_taper_2dMethod · 0.95
test_grating_3dMethod · 0.95
test_phaseMethod · 0.95

Calls

no outgoing calls

Tested by 15

reflectance_angularMethod · 0.76
test_array_metadataMethod · 0.76
refl_planarMethod · 0.76
forward_simulationFunction · 0.76
adjoint_solverFunction · 0.76
test_nea2far_periodicMethod · 0.76
test_linear_taper_2dMethod · 0.76
test_grating_3dMethod · 0.76
test_phaseMethod · 0.76