|
| 1 | +from __future__ import annotations |
| 2 | + |
| 3 | +import warnings |
| 4 | + |
| 5 | +# Boundary |
| 6 | +from tidy3d.components.boundary import InternalAbsorber |
| 7 | + |
| 8 | +# Directivity monitor |
| 9 | +from tidy3d.components.data.monitor_data import DirectivityData |
| 10 | + |
| 11 | +# Frequency extrapolation |
| 12 | +from tidy3d.components.frequency_extrapolation import LowFrequencySmoothingSpec |
| 13 | + |
| 14 | +# Grid spec |
| 15 | +from tidy3d.components.grid.grid_spec import CornerFinderSpec, LayerRefinementSpec |
| 16 | + |
| 17 | +# Lumped elements |
| 18 | +from tidy3d.components.lumped_element import ( |
| 19 | + AdmittanceNetwork, |
| 20 | + CoaxialLumpedResistor, |
| 21 | + LinearLumpedElement, |
| 22 | + LumpedResistor, |
| 23 | + RectangularLumpedElement, |
| 24 | + RLCNetwork, |
| 25 | +) |
| 26 | + |
| 27 | +# Material |
| 28 | +from tidy3d.components.medium import ( |
| 29 | + HammerstadSurfaceRoughness, |
| 30 | + HuraySurfaceRoughness, |
| 31 | + LossyMetalMedium, |
| 32 | + SurfaceImpedanceFitterParam, |
| 33 | +) |
| 34 | + |
| 35 | +# Microwave data |
| 36 | +from tidy3d.components.microwave.data.monitor_data import ( |
| 37 | + AntennaMetricsData, |
| 38 | + MicrowaveModeData, |
| 39 | + MicrowaveModeSolverData, |
| 40 | +) |
| 41 | + |
| 42 | +# Impedance calculator |
| 43 | +from tidy3d.components.microwave.impedance_calculator import ( |
| 44 | + CurrentIntegralType, |
| 45 | + ImpedanceCalculator, |
| 46 | + VoltageIntegralType, |
| 47 | +) |
| 48 | + |
| 49 | +# Microwave mode spec |
| 50 | +from tidy3d.components.microwave.mode_spec import MicrowaveModeSpec |
| 51 | + |
| 52 | +# Microwave monitors |
| 53 | +from tidy3d.components.microwave.monitor import MicrowaveModeMonitor, MicrowaveModeSolverMonitor |
| 54 | + |
| 55 | +# Path integrals (actual integrals, not specs) |
| 56 | +from tidy3d.components.microwave.path_integrals.integrals.auto import ( |
| 57 | + path_integrals_from_lumped_element, |
| 58 | +) |
| 59 | +from tidy3d.components.microwave.path_integrals.integrals.base import ( |
| 60 | + AxisAlignedPathIntegral, |
| 61 | + Custom2DPathIntegral, |
| 62 | +) |
| 63 | +from tidy3d.components.microwave.path_integrals.integrals.current import ( |
| 64 | + AxisAlignedCurrentIntegral, |
| 65 | + CompositeCurrentIntegral, |
| 66 | + Custom2DCurrentIntegral, |
| 67 | +) |
| 68 | +from tidy3d.components.microwave.path_integrals.integrals.voltage import ( |
| 69 | + AxisAlignedVoltageIntegral, |
| 70 | + Custom2DVoltageIntegral, |
| 71 | +) |
| 72 | + |
| 73 | +# Path integral specs |
| 74 | +from tidy3d.components.microwave.path_integrals.specs.current import ( |
| 75 | + AxisAlignedCurrentIntegralSpec, |
| 76 | + CompositeCurrentIntegralSpec, |
| 77 | + Custom2DCurrentIntegralSpec, |
| 78 | +) |
| 79 | +from tidy3d.components.microwave.path_integrals.specs.impedance import ( |
| 80 | + AutoImpedanceSpec, |
| 81 | + CustomImpedanceSpec, |
| 82 | +) |
| 83 | +from tidy3d.components.microwave.path_integrals.specs.voltage import ( |
| 84 | + AxisAlignedVoltageIntegralSpec, |
| 85 | + Custom2DVoltageIntegralSpec, |
| 86 | +) |
| 87 | +from tidy3d.components.monitor import DirectivityMonitor |
| 88 | + |
| 89 | +# Source frame |
| 90 | +from tidy3d.components.source.frame import PECFrame |
| 91 | + |
| 92 | +# Subpixel spec |
| 93 | +from tidy3d.components.subpixel_spec import SurfaceImpedance |
| 94 | +from tidy3d.plugins.microwave import models |
| 95 | +from tidy3d.plugins.microwave.array_factor import ( |
| 96 | + BlackmanHarrisWindow, |
| 97 | + BlackmanWindow, |
| 98 | + ChebWindow, |
| 99 | + HammingWindow, |
| 100 | + HannWindow, |
| 101 | + KaiserWindow, |
| 102 | + RadialTaper, |
| 103 | + RectangularAntennaArrayCalculator, |
| 104 | + RectangularTaper, |
| 105 | + TaylorWindow, |
| 106 | +) |
| 107 | +from tidy3d.plugins.microwave.lobe_measurer import LobeMeasurer |
| 108 | +from tidy3d.plugins.microwave.rf_material_library import rf_material_library |
| 109 | +from tidy3d.plugins.smatrix.component_modelers.base import ( |
| 110 | + AbstractComponentModeler, |
| 111 | +) |
| 112 | +from tidy3d.plugins.smatrix.component_modelers.terminal import ( |
| 113 | + DirectivityMonitorSpec, |
| 114 | + ModelerLowFrequencySmoothingSpec, |
| 115 | + TerminalComponentModeler, |
| 116 | +) |
| 117 | +from tidy3d.plugins.smatrix.component_modelers.types import ComponentModelerType |
| 118 | +from tidy3d.plugins.smatrix.data.data_array import ( |
| 119 | + PortDataArray, |
| 120 | + TerminalPortDataArray, |
| 121 | +) |
| 122 | +from tidy3d.plugins.smatrix.data.terminal import ( |
| 123 | + MicrowaveSMatrixData, |
| 124 | + TerminalComponentModelerData, |
| 125 | +) |
| 126 | +from tidy3d.plugins.smatrix.data.types import ComponentModelerDataType |
| 127 | +from tidy3d.plugins.smatrix.ports.coaxial_lumped import CoaxialLumpedPort |
| 128 | +from tidy3d.plugins.smatrix.ports.rectangular_lumped import LumpedPort |
| 129 | +from tidy3d.plugins.smatrix.ports.wave import WavePort |
| 130 | + |
| 131 | +# Backwards compatibility |
| 132 | +CurrentIntegralTypes = CurrentIntegralType |
| 133 | +VoltageIntegralTypes = VoltageIntegralType |
| 134 | +# Instantiate on plugin import till we unite with toplevel |
| 135 | +warnings.filterwarnings( |
| 136 | + "once", |
| 137 | + message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.", |
| 138 | + category=FutureWarning, |
| 139 | +) |
| 140 | + |
| 141 | + |
| 142 | +__all__ = [ |
| 143 | + "AbstractComponentModeler", |
| 144 | + "AdmittanceNetwork", |
| 145 | + "AntennaMetricsData", |
| 146 | + "AutoImpedanceSpec", |
| 147 | + "AxisAlignedCurrentIntegral", |
| 148 | + "AxisAlignedCurrentIntegralSpec", |
| 149 | + "AxisAlignedPathIntegral", |
| 150 | + "AxisAlignedVoltageIntegral", |
| 151 | + "AxisAlignedVoltageIntegralSpec", |
| 152 | + "BlackmanHarrisWindow", |
| 153 | + "BlackmanWindow", |
| 154 | + "ChebWindow", |
| 155 | + "CoaxialLumpedPort", |
| 156 | + "CoaxialLumpedResistor", |
| 157 | + "ComponentModelerDataType", |
| 158 | + "ComponentModelerType", |
| 159 | + "CompositeCurrentIntegral", |
| 160 | + "CompositeCurrentIntegralSpec", |
| 161 | + "CornerFinderSpec", |
| 162 | + "CurrentIntegralTypes", |
| 163 | + "Custom2DCurrentIntegral", |
| 164 | + "Custom2DCurrentIntegralSpec", |
| 165 | + "Custom2DPathIntegral", |
| 166 | + "Custom2DVoltageIntegral", |
| 167 | + "Custom2DVoltageIntegralSpec", |
| 168 | + "CustomImpedanceSpec", |
| 169 | + "DirectivityData", |
| 170 | + "DirectivityMonitor", |
| 171 | + "DirectivityMonitorSpec", |
| 172 | + "HammerstadSurfaceRoughness", |
| 173 | + "HammingWindow", |
| 174 | + "HannWindow", |
| 175 | + "HuraySurfaceRoughness", |
| 176 | + "ImpedanceCalculator", |
| 177 | + "InternalAbsorber", |
| 178 | + "KaiserWindow", |
| 179 | + "LayerRefinementSpec", |
| 180 | + "LinearLumpedElement", |
| 181 | + "LobeMeasurer", |
| 182 | + "LossyMetalMedium", |
| 183 | + "LowFrequencySmoothingSpec", |
| 184 | + "LumpedPort", |
| 185 | + "LumpedResistor", |
| 186 | + "MicrowaveModeData", |
| 187 | + "MicrowaveModeMonitor", |
| 188 | + "MicrowaveModeSolverData", |
| 189 | + "MicrowaveModeSolverMonitor", |
| 190 | + "MicrowaveModeSpec", |
| 191 | + "MicrowaveSMatrixData", |
| 192 | + "ModelerLowFrequencySmoothingSpec", |
| 193 | + "PECFrame", |
| 194 | + "PortDataArray", |
| 195 | + "RLCNetwork", |
| 196 | + "RadialTaper", |
| 197 | + "RectangularAntennaArrayCalculator", |
| 198 | + "RectangularLumpedElement", |
| 199 | + "RectangularTaper", |
| 200 | + "SurfaceImpedance", |
| 201 | + "SurfaceImpedanceFitterParam", |
| 202 | + "TaylorWindow", |
| 203 | + "TerminalComponentModeler", |
| 204 | + "TerminalComponentModelerData", |
| 205 | + "TerminalPortDataArray", |
| 206 | + "VoltageIntegralTypes", |
| 207 | + "WavePort", |
| 208 | + "models", |
| 209 | + "path_integrals_from_lumped_element", |
| 210 | + "rf_material_library", |
| 211 | +] |
0 commit comments