Skip to content

Commit 4146674

Browse files
num_freqs
1 parent ca3b2b0 commit 4146674

File tree

1 file changed

+6
-0
lines changed
  • tidy3d/plugins/smatrix/ports

1 file changed

+6
-0
lines changed

tidy3d/plugins/smatrix/ports/wave.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ class WavePort(AbstractTerminalPort, Box):
108108
description="Extrudes structures that intersect the wave port plane by a few grid cells when ``True``, improving mode injection accuracy.",
109109
)
110110

111+
num_freqs: int = pd.Field(
112+
1,
113+
title="Number of frequencies",
114+
)
115+
111116
def _mode_voltage_coefficients(self, mode_data: ModeData) -> FreqModeDataArray:
112117
"""Calculates scaling coefficients to convert mode amplitudes
113118
to the total port voltage.
@@ -166,6 +171,7 @@ def to_source(
166171
direction=self.direction,
167172
name=self.name,
168173
frame=self.frame,
174+
num_freqs=self.num_freqs,
169175
)
170176

171177
def to_monitors(

0 commit comments

Comments
 (0)