| 1 | """ |
| 2 | |
| 3 | .. currentmodule:: skrf.instances |
| 4 | ======================================== |
| 5 | instances (:mod:`skrf.instances`) |
| 6 | ======================================== |
| 7 | |
| 8 | This module contains commonly used instantiated objects's. |
| 9 | |
| 10 | |
| 11 | |
| 12 | Standard Waveguide Bands |
| 13 | ---------------------------- |
| 14 | |
| 15 | :class:`~skrf.frequency.Frequency` Objects |
| 16 | ++++++++++++++++++++++++++++++++++++++++++++ |
| 17 | These are predefined :class:`~skrf.frequency.Frequency` objects |
| 18 | that correspond to standard waveguide bands. This information is taken |
| 19 | from the VDI Application Note 1002 [#]_ . IEEE designators are taken |
| 20 | from Spinner TD-00036 [#]_ . |
| 21 | |
| 22 | |
| 23 | ======================= =============================================== |
| 24 | Object Name Description |
| 25 | ======================= =============================================== |
| 26 | f_wr10 WR-10, 75-110 GHz |
| 27 | f_wr3 WR-3, 220-325 GHz |
| 28 | f_wr2p2 WR-2.2, 330-500 GHz |
| 29 | f_wr1p5 WR-1.5, 500-750 GHz |
| 30 | f_wr1 WR-1, 750-1100 GHz |
| 31 | ... ... |
| 32 | ======================= =============================================== |
| 33 | |
| 34 | |
| 35 | :class:`~skrf.media.rectangularWaveguide.RectangularWaveguide` Objects |
| 36 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 37 | These are predefined :class:`~skrf.media.rectangularWaveguide.RectangularWaveguide` |
| 38 | objects for standard waveguide bands. |
| 39 | |
| 40 | ======================= =============================================== |
| 41 | Object Name Description |
| 42 | ======================= =============================================== |
| 43 | wr10 WR-10, 75-110 GHz |
| 44 | wr3 WR-3, 220-325 GHz |
| 45 | wr2p2 WR-2.2, 330-500 GHz |
| 46 | wr1p5 WR-1.5, 500-750 GHz |
| 47 | wr1 WR-1, 750-1100 GHz |
| 48 | ... ... |
| 49 | ======================= =============================================== |
| 50 | |
| 51 | |
| 52 | |
| 53 | References |
| 54 | ---------- |
| 55 | .. [#] VDI Application Note: VDI Waveguide Band Designations (VDI-1002) http://vadiodes.com/VDI/pdf/waveguidechart200908.pdf |
| 56 | .. [#] Spinner Technical Information: Cross Reference For Hollow Metallic Waveguides (TD-00036) https://www.spinner-group.com/images/download/technical_documents/SPINNER_TD00036.pdf |
| 57 | """ |
| 58 | |
| 59 | from .constants import mil |
| 60 | from .frequency import Frequency |
| 61 | from .media import Freespace, RectangularWaveguide |
| 62 | |
| 63 | |
| 64 | class StaticInstances: |
| 65 | @property |
| 66 | def air(self) -> Freespace: |
| 67 | return Freespace() |
| 68 | |
| 69 | @property |
| 70 | def air50(self) -> Freespace: |
| 71 | return Freespace(z0_override=50) |
| 72 | |
| 73 | @property |
| 74 | def f_wr51(self) -> Frequency: |
| 75 | return Frequency(15,22,1001, 'GHz') |
| 76 | |
| 77 | @property |
| 78 | def f_wr42(self) -> Frequency: |
| 79 | return Frequency(17.5,26.5,1001, 'GHz') |
| 80 | |
| 81 | @property |
| 82 | def f_wr34(self) -> Frequency: |
| 83 | return Frequency(22,33,1001, 'GHz') |
| 84 | |
| 85 | @property |
| 86 | def f_wr28(self) -> Frequency: |
| 87 | return Frequency(26.5,40,1001, 'GHz') |
| 88 | |
| 89 | @property |
| 90 | def f_wr22p4(self) -> Frequency: |
| 91 | return Frequency(33,50.5,1001, 'GHz') |
| 92 | |
| 93 | @property |
| 94 | def f_wr18p8(self) -> Frequency: |
| 95 | return Frequency(40,60,1001, 'GHz') |
| 96 | |
| 97 | @property |
| 98 | def f_wr14p8(self) -> Frequency: |
| 99 | return Frequency(50,75,1001, 'GHz') |
| 100 | |
| 101 | @property |
| 102 | def f_wr12p2(self) -> Frequency: |
| 103 | return Frequency(60,90,1001, 'GHz') |
| 104 | |
| 105 | @property |
| 106 | def f_wr10(self) -> Frequency: |
| 107 | return Frequency(75,110,1001, 'GHz') |
| 108 | |
| 109 | @property |
| 110 | def f_wr8(self) -> Frequency: |
| 111 | return Frequency(90,140,1001, 'GHz') |
| 112 | |
| 113 | @property |
| 114 | def f_wr6p5(self) -> Frequency: |
| 115 | return Frequency(110,170,1001, 'GHz') |
| 116 | |
| 117 | @property |
| 118 | def f_wr5p1(self) -> Frequency: |
| 119 | return Frequency(140,220,1001, 'GHz') |
| 120 | |
| 121 | @property |
| 122 | def f_wr4p3(self) -> Frequency: |
| 123 | return Frequency(170,260,1001, 'GHz') |
| 124 | |
| 125 | @property |
| 126 | def f_wr3p4(self) -> Frequency: |
| 127 | return Frequency(220,330,1001, 'GHz') |
| 128 | |
| 129 | @property |
| 130 | def f_wr2p8(self) -> Frequency: |
| 131 | return Frequency(260,400,1001, 'GHz') |
| 132 | |
| 133 | @property |
| 134 | def f_wr2p2(self) -> Frequency: |
| 135 | return Frequency(330,500,1001, 'GHz') |
| 136 | |
| 137 | @property |
| 138 | def f_wr1p9(self) -> Frequency: |
| 139 | return Frequency(400,600,1001, 'GHz') |
| 140 | |
| 141 | @property |
| 142 | def f_wr1p5(self) -> Frequency: |
| 143 | return Frequency(500,750,1001, 'GHz') |
| 144 | |
| 145 | @property |
| 146 | def f_wr1p2(self) -> Frequency: |
| 147 | return Frequency(600,900,1001, 'GHz') |
| 148 | |
| 149 | @property |
| 150 | def f_wr1(self) -> Frequency: |
| 151 | return Frequency(750,1100,1001, 'GHz') |
| 152 | |
| 153 | @property |
| 154 | def f_wr0p8(self) -> Frequency: |
| 155 | return Frequency(900,1400,1001, 'GHz') |
| 156 | |
| 157 | @property |
| 158 | def f_wr0p65(self) -> Frequency: |
| 159 | return Frequency(1100,1700,1001, 'GHz') |
| 160 | |
| 161 | @property |
| 162 | def f_wr0p51(self) -> Frequency: |
| 163 | return Frequency(1400,2200,1001, 'GHz') |
| 164 | |
| 165 | @property |
| 166 | def f_wm106(self) -> Frequency: |
| 167 | return Frequency(1700,2600,1001, 'ghz') |
| 168 | |
| 169 | @property |
| 170 | def f_wm86(self) -> Frequency: |
| 171 | return Frequency(2200,3300,1001, 'ghz') |
| 172 | |
| 173 | @property |
| 174 | def f_wm1295(self) -> Frequency: |
| 175 | return self.f_wr5p1 |
| 176 | |
| 177 | @property |
| 178 | def f_wm1092(self) -> Frequency: |
| 179 | return self.f_wr4p3 |
| 180 | |
| 181 | @property |
| 182 | def f_wm864(self) -> Frequency: |
| 183 | return self.f_wr3p4 |
| 184 | |
| 185 | @property |
| 186 | def f_wm710(self) -> Frequency: |
| 187 | return self.f_wr2p8 |
| 188 | |
| 189 | @property |
| 190 | def f_wm570(self) -> Frequency: |
| 191 | return self.f_wr2p2 |
| 192 | |
| 193 | @property |
| 194 | def f_wm470(self) -> Frequency: |
| 195 | return self.f_wr1p9 |
| 196 | |
| 197 | @property |
| 198 | def f_wm380(self) -> Frequency: |
| 199 | return self.f_wr1p5 |
| 200 | |
| 201 | @property |
| 202 | def f_wm310(self) -> Frequency: |
| 203 | return self.f_wr1p2 |
| 204 | |
| 205 | @property |
| 206 | def f_wm250(self) -> Frequency: |
| 207 | return self.f_wr1 |
| 208 | |
| 209 | @property |
| 210 | def f_wm200(self) -> Frequency: |
| 211 | return self.f_wr0p8 |
| 212 | |
| 213 | @property |
| 214 | def f_wm164(self) -> Frequency: |
| 215 | return self.f_wr0p65 |
| 216 | |
| 217 | @property |
| 218 | def f_wm130(self) -> Frequency: |
| 219 | return self.f_wr0p51 |
| 220 | |
| 221 | @property |
| 222 | def wr51(self) -> RectangularWaveguide: |
| 223 | return RectangularWaveguide(self.f_wr51.copy(),a=510*mil,b=255*mil,z0_override=50) |
| 224 | |
| 225 | @property |
| 226 | def wr42(self) -> RectangularWaveguide: |
| 227 | return RectangularWaveguide(self.f_wr42.copy(),a=420*mil,b=170*mil,z0_override=50) |
| 228 | |
| 229 | @property |
| 230 | def wr34(self) -> RectangularWaveguide: |
| 231 | return RectangularWaveguide(self.f_wr34.copy(),a=340*mil,b=170*mil,z0_override=50) |
| 232 | |
| 233 | @property |
| 234 | def wr28(self) -> RectangularWaveguide: |
| 235 | return RectangularWaveguide(self.f_wr28.copy(),a=280*mil,b=140*mil,z0_override=50) |
| 236 | |
| 237 | @property |
| 238 | def wr22p4(self) -> RectangularWaveguide: |
| 239 | return RectangularWaveguide(self.f_wr22p4.copy(),a=224*mil,b=112*mil,z0_override=50) |
| 240 | |
| 241 | @property |
| 242 | def wr18p8(self) -> RectangularWaveguide: |
| 243 | return RectangularWaveguide(self.f_wr18p8.copy(),a=188*mil,b=94*mil,z0_override=50) |
| 244 | |
| 245 | @property |
| 246 | def wr14p8(self) -> RectangularWaveguide: |
| 247 | return RectangularWaveguide(self.f_wr14p8.copy(),a=148*mil,b=74*mil,z0_override=50) |
| 248 | |
| 249 | @property |
| 250 | def wr12p2(self) -> RectangularWaveguide: |
| 251 | return RectangularWaveguide(self.f_wr12p2.copy(),a=122*mil,b=61*mil,z0_override=50) |
| 252 | |
| 253 | @property |
| 254 | def wr10(self) -> RectangularWaveguide: |
| 255 | return RectangularWaveguide(self.f_wr10.copy(),a=100*mil,b=50*mil,z0_override=50) |
| 256 | |
| 257 | @property |
| 258 | def wr8(self) -> RectangularWaveguide: |
| 259 | return RectangularWaveguide(self.f_wr8.copy(),a=80*mil,b=40*mil,z0_override=50) |
| 260 | |
| 261 | @property |
| 262 | def wr6p5(self) -> RectangularWaveguide: |
| 263 | return RectangularWaveguide(self.f_wr6p5.copy(),a=65*mil,b=32.5*mil,z0_override=50) |
| 264 | |
| 265 | @property |
| 266 | def wr5p1(self) -> RectangularWaveguide: |
| 267 | return RectangularWaveguide(self.f_wr5p1.copy(),a=51*mil,b=25.5*mil,z0_override=50) |
| 268 | |
| 269 | @property |
| 270 | def wr4p3(self) -> RectangularWaveguide: |
| 271 | return RectangularWaveguide(self.f_wr4p3.copy(),a=43*mil,b=21.5*mil,z0_override=50) |
| 272 | |
| 273 | @property |
| 274 | def wr3p4(self) -> RectangularWaveguide: |
| 275 | return RectangularWaveguide(self.f_wr3p4.copy(),a=34*mil,b=17*mil,z0_override=50) |
| 276 | |
| 277 | @property |
| 278 | def wr2p8(self) -> RectangularWaveguide: |
| 279 | return RectangularWaveguide(self.f_wr2p8.copy(),a=28*mil,b=14*mil,z0_override=50) |
| 280 | |
| 281 | @property |
| 282 | def wr2p2(self) -> RectangularWaveguide: |
| 283 | return RectangularWaveguide(self.f_wr2p2.copy(),a=22*mil,b=11*mil,z0_override=50) |
| 284 | |
| 285 | @property |
| 286 | def wr1p9(self) -> RectangularWaveguide: |
| 287 | return RectangularWaveguide(self.f_wr1p9.copy(),a=19*mil,b=9.5*mil,z0_override=50) |
| 288 | |
| 289 | @property |
| 290 | def wr1p5(self) -> RectangularWaveguide: |
| 291 | return RectangularWaveguide(self.f_wr1p5.copy(),a=15*mil,b=7.5*mil,z0_override=50) |
| 292 | |
| 293 | @property |
| 294 | def wr1p2(self) -> RectangularWaveguide: |
| 295 | return RectangularWaveguide(self.f_wr1p2.copy(),a=12*mil,b=6*mil,z0_override=50) |
| 296 | |
| 297 | @property |
| 298 | def wr1(self) -> RectangularWaveguide: |
| 299 | return RectangularWaveguide(self.f_wr1.copy(),a=10*mil,b=5*mil,z0_override=50) |
| 300 | |
| 301 | @property |
| 302 | def wr0p8(self) -> RectangularWaveguide: |
| 303 | return RectangularWaveguide(self.f_wr0p8.copy(),a=8*mil,b=4*mil,z0_override=50) |
| 304 | |
| 305 | @property |
| 306 | def wr0p65(self) -> RectangularWaveguide: |
| 307 | return RectangularWaveguide(self.f_wr0p65.copy(),a=6.5*mil,b=3.25*mil,z0_override=50) |
| 308 | |
| 309 | @property |
| 310 | def wr0p51(self) -> RectangularWaveguide: |
| 311 | return RectangularWaveguide(self.f_wr0p51.copy(),a=5.1*mil,b=2.55*mil,z0_override=50) |
| 312 | |
| 313 | @property |
| 314 | def wm1295(self) -> RectangularWaveguide: |
| 315 | return RectangularWaveguide(self.f_wm1295.copy(),a=1295e-6,b=647.5e-6,z0_override=50) |
| 316 | |
| 317 | @property |
| 318 | def wm1092(self) -> RectangularWaveguide: |
| 319 | return RectangularWaveguide(self.f_wm1092.copy(),a=1092e-6,b=546e-6,z0_override=50) |
| 320 | |
| 321 | @property |
| 322 | def wm864(self) -> RectangularWaveguide: |
| 323 | return RectangularWaveguide(self.f_wm864.copy(),a=864e-6,b=432e-6,z0_override=50) |
| 324 | |
| 325 | @property |
| 326 | def wm710(self) -> RectangularWaveguide: |
| 327 | return RectangularWaveguide(self.f_wm710.copy(),a=710e-6,b=355e-6,z0_override=50) |
| 328 | |
| 329 | @property |
| 330 | def wm570(self) -> RectangularWaveguide: |
| 331 | return RectangularWaveguide(self.f_wm570.copy(),a=570e-6,b=285e-6,z0_override=50) |
| 332 | |
| 333 | @property |
| 334 | def wm470(self) -> RectangularWaveguide: |
| 335 | return RectangularWaveguide(self.f_wm470.copy(),a=470e-6,b=235e-6,z0_override=50) |
| 336 | |
| 337 | @property |
| 338 | def wm380(self) -> RectangularWaveguide: |
| 339 | return RectangularWaveguide(self.f_wm380.copy(),a=380e-6,b=190e-6,z0_override=50) |
| 340 | |
| 341 | @property |
| 342 | def wm310(self) -> RectangularWaveguide: |
| 343 | return RectangularWaveguide(self.f_wm310.copy(),a=310e-6,b=155e-6,z0_override=50) |
| 344 | |
| 345 | @property |
| 346 | def wm250(self) -> RectangularWaveguide: |
| 347 | return RectangularWaveguide(self.f_wm250.copy(),a=250e-6,b=125e-6,z0_override=50) |
| 348 | |
| 349 | @property |
| 350 | def wm200(self) -> RectangularWaveguide: |
| 351 | return RectangularWaveguide(self.f_wm200.copy(),a=200e-6,b=100e-6,z0_override=50) |
| 352 | |
| 353 | @property |
| 354 | def wm164(self) -> RectangularWaveguide: |
| 355 | return RectangularWaveguide(self.f_wm164.copy(),a=164e-6,b=82e-6,z0_override=50) |
| 356 | |
| 357 | @property |
| 358 | def wm130(self) -> RectangularWaveguide: |
| 359 | return RectangularWaveguide(self.f_wm130.copy(),a=130e-6,b=65e-6,z0_override=50) |
| 360 | |
| 361 | @property |
| 362 | def wm106(self) -> RectangularWaveguide: |
| 363 | return RectangularWaveguide(self.f_wm106.copy(),a=106e-6,b=53e-6,z0_override=50) |
| 364 | |
| 365 | @property |
| 366 | def wm86(self) -> RectangularWaveguide: |
| 367 | return RectangularWaveguide(self.f_wm86.copy(),a=86e-6,b=43e-6,z0_override=50) |
| 368 | |
| 369 | _instances = StaticInstances() |
| 370 | |
| 371 | def __getattr__(name): |
| 372 | return getattr(_instances, name) |