You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin provides component modelers for computing S-parameters (scattering parameters) for both **photonics** and **RF/microwave** applications. The plugin supports:
* **RF/Microwave**: Terminal component modelers for microwave circuits and antennas (available in :class:`tidy3d.rf` subpackage)
9
+
* **RF/Microwave**: Terminal component modelers for microwave circuits and antennas (available in :class:`tidy3d.rf` subpackage as well)
10
10
11
11
.. warning::
12
12
@@ -28,21 +28,26 @@ For photonics applications, use the **ModalComponentModeler** which computes mod
28
28
29
29
RF/Microwave Component Modelers
30
30
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
+
.. seealso::
32
+
33
+
For classes related to microwave/RF modeling, please refer to the main `Microwave and RF <../microwave/index.html>`_ page and `tidy3d.rf` sub-package.
34
+
31
35
32
-
For RF and microwave applications, use the **TerminalComponentModeler** (available in ``tidy3d.rf``) which computes terminal-based S-parameters.
36
+
For RF and microwave applications, use the **TerminalComponentModeler** (available in ``tidy3d.rf`` as well) which computes terminal-based S-parameters.
33
37
34
38
.. warning::
35
39
36
40
RF simulations will require new license requirements in an upcoming release. All RF-specific classes are available in the ``tidy3d.rf`` subpackage.
msg=" ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You are using RF-specific components in this simulation."
4285
+
msg="RF simulations and functionality will require new license requirements in an upcoming release. All RF-specific classes are now available within the sub-package 'tidy3d.rf'."
Copy file name to clipboardExpand all lines: tidy3d/plugins/smatrix/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
# Instantiate on plugin import till we unite with toplevel
34
34
warnings.filterwarnings(
35
35
"once",
36
-
message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
36
+
message="RF simulations and functionality will require new license requirements in an upcoming release. All RF-specific classes are now available within the sub-package 'tidy3d.rf'.",
Copy file name to clipboardExpand all lines: tidy3d/plugins/smatrix/component_modelers/base.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,14 @@ class AbstractComponentModeler(ABC, Tidy3dBaseModel):
102
102
"Otherwise, a default source time will be constructed.",
103
103
)
104
104
105
+
@pd.root_validator(pre=False)
106
+
def_warn_refactor_2_10(cls, values):
107
+
log.warning(
108
+
f"'{cls.__name__}' was refactored (tidy3d 'v2.10.0'). Existing functionality is available differently. Please consult the migration documentation: https://docs.flexcompute.com/projects/tidy3d/en/latest/api/microwave/microwave_migration.html",
109
+
log_once=True,
110
+
)
111
+
returnvalues
112
+
105
113
@pd.validator("simulation", always=True)
106
114
def_sim_has_no_sources(cls, val):
107
115
"""Make sure simulation has no sources as they interfere with tool."""
Copy file name to clipboardExpand all lines: tidy3d/plugins/smatrix/component_modelers/terminal.py
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -210,14 +210,6 @@ class TerminalComponentModeler(AbstractComponentModeler, MicrowaveBaseModel):
210
210
description="The low frequency smoothing parameters for the terminal component simulation.",
211
211
)
212
212
213
-
@pd.root_validator(pre=False)
214
-
def_warn_refactor_2_10(cls, values):
215
-
log.warning(
216
-
f"ℹ️ ⚠️ The {cls.__name__} class was refactored in tidy3d version 2.10. Migration documentation will be provided, and existing functionality can be accessed in a different way.",
217
-
log_once=True,
218
-
)
219
-
returnvalues
220
-
221
213
@property
222
214
def_sim_with_sources(self) ->Simulation:
223
215
"""Instance of :class:`.Simulation` with all sources and absorbers added for each port, for plotting."""
Copy file name to clipboardExpand all lines: tidy3d/rf.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@
134
134
# Instantiate on plugin import till we unite with toplevel
135
135
warnings.filterwarnings(
136
136
"once",
137
-
message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.",
137
+
message="RF simulations and functionality will require new license requirements in an upcoming release. All RF-specific classes are now available within the sub-package 'tidy3d.rf'.",
0 commit comments