Restart the fields at time zero, with zero fields. Does *not* reset the Fourier transforms of the flux planes, which continue to be accumulated.
(self)
| 4503 | self._is_initialized = False |
| 4504 | |
| 4505 | def restart_fields(self): |
| 4506 | """ |
| 4507 | Restart the fields at time zero, with zero fields. Does *not* reset the Fourier |
| 4508 | transforms of the flux planes, which continue to be accumulated. |
| 4509 | """ |
| 4510 | if self.fields is not None: |
| 4511 | self.fields.t = 0 |
| 4512 | self.fields.zero_fields() |
| 4513 | else: |
| 4514 | self._is_initialized = False |
| 4515 | self.init_sim() |
| 4516 | |
| 4517 | def clear_dft_monitors(self): |
| 4518 | """ |