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

Method restart_fields

python/simulation.py:4505–4515  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 4

run_k_pointMethod · 0.95
adjoint_runMethod · 0.80

Calls 2

init_simMethod · 0.95
zero_fieldsMethod · 0.80

Tested by 1