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 ca3b2b0 commit 4146674Copy full SHA for 4146674
tidy3d/plugins/smatrix/ports/wave.py
@@ -108,6 +108,11 @@ class WavePort(AbstractTerminalPort, Box):
108
description="Extrudes structures that intersect the wave port plane by a few grid cells when ``True``, improving mode injection accuracy.",
109
)
110
111
+ num_freqs: int = pd.Field(
112
+ 1,
113
+ title="Number of frequencies",
114
+ )
115
+
116
def _mode_voltage_coefficients(self, mode_data: ModeData) -> FreqModeDataArray:
117
"""Calculates scaling coefficients to convert mode amplitudes
118
to the total port voltage.
@@ -166,6 +171,7 @@ def to_source(
166
171
direction=self.direction,
167
172
name=self.name,
168
173
frame=self.frame,
174
+ num_freqs=self.num_freqs,
169
175
170
176
177
def to_monitors(
0 commit comments