We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259d1c4 commit e820311Copy full SHA for e820311
tidy3d/plugins/mode/mode_solver.py
@@ -153,6 +153,14 @@ def _solver_grid(self) -> Grid:
153
154
return self.simulation._subgrid(span_inds=span_inds)
155
156
+ @cached_property
157
+ def _num_cells_freqs_modes(self) -> Tuple[int, int, int]:
158
+ """Get the number of spatial points, number of freqs, and number of modes requested."""
159
+ num_cells = np.prod(self._solver_grid.num_cells)
160
+ num_modes = self.mode_spec.num_modes
161
+ num_freqs = len(self.freqs)
162
+ return num_cells, num_freqs, num_modes
163
+
164
def solve(self) -> ModeSolverData:
165
""":class:`.ModeSolverData` containing the field and effective index data.
166
0 commit comments