`newstructure` should be the `structure` field of another `Simulation` object with the same cell size and resolution. Over the next time period `phasetime` (in the current simulation's time units), the current structure ($\\varepsilon$, $\\mu$, and conductivi
(self, structure, time)
| 2645 | return self.fields.round_time() |
| 2646 | |
| 2647 | def phase_in_material(self, structure, time): |
| 2648 | """ |
| 2649 | `newstructure` should be the `structure` field of another |
| 2650 | `Simulation` object with the same cell size and resolution. |
| 2651 | Over the next time period `phasetime` (in the current |
| 2652 | simulation's time units), the current structure |
| 2653 | ($\\varepsilon$, $\\mu$, and conductivity $\\sigma_D$) will be |
| 2654 | gradually changed to `newstructure`. In particular, at each |
| 2655 | timestep it linearly interpolates between the old structure |
| 2656 | and the new structure. After `phasetime` has elapsed, the |
| 2657 | structure will remain equal to `newstructure`. This is |
| 2658 | demonstrated in the following image for two |
| 2659 | [Cylinder](#cylinder) objects (the simulation script is in |
| 2660 | [examples/phase_in_material.py](https://github.com/NanoComp/meep/blob/master/python/examples/phase_in_material.py)). |
| 2661 | |
| 2662 |  |
| 2663 | """ |
| 2664 | if self.fields is None: |
| 2665 | self.init_sim() |
| 2666 | |
| 2667 | return self.fields.phase_in_material(structure, time) |
| 2668 | |
| 2669 | def set_boundary(self, side, direction, condition): |
| 2670 | """ |
no test coverage detected