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)
| 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 | """ |
no outgoing calls