GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — HFSS_script/test_cylinder.vbs at master · very3b/HFSS_script Expand file tree/ Copy pathtest_cylinder.vbsMore file actions 592 lines (592 loc) · 45.7 KB / Copy pathtest_cylinder.vbsFile metadata and controls592 lines (592 loc) · 45.7 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 ' ---------------------------------------------- ' Script Recorded by Ansoft HFSS Version 14.0.1 ' 10:06:41 AM Jan 02, 2015 ' ---------------------------------------------- Dim oAnsoftApp Dim oDesktop Dim oProject Dim oDesign Dim oEditor Dim oModule Set oAnsoftApp = CreateObject("AnsoftHfss.HfssScriptInterface") Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.SetActiveProject("Project17") Set oDesign = oProject.SetActiveDesign("FPC_MSLine") Set oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.CreateCylinder Array("NAME:CylinderParameters", "XCenter:=", "-1mm", "YCenter:=", _ "14mm", "ZCenter:=", "0mm", "Radius:=", "5.8309518948453mm", "Height:=", "2mm", "WhichAxis:=", _ "Z", "NumSides:=", "0"), Array("NAME:Attributes", "Name:=", "Cylinder1", "Flags:=", _ "", "Color:=", "(132 132 193)", "Transparency:=", 0, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _ true) oEditor.ChangeProperty Array("NAME:AllTabs", Array("NAME:Geometry3DAttributeTab", Array("NAME:PropServers", _ "Cylinder1"), Array("NAME:ChangedProps", Array("NAME:Material", "Value:=", "" & Chr(34) & "copper" & Chr(34) & "")))) Set oProject = oDesktop.NewProject oProject.InsertDesign "HFSS", "FPC_MSLine", "DrivenModal", "" Set oDesign = oProject.SetActiveDesign("FPC_MSLine") oDesign.ChangeProperty Array("NAME:AllTabs", Array("NAME:LocalVariableTab", Array("NAME:PropServers", _ "LocalVariables"), Array("NAME:NewProps", Array("NAME:--Patch Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:patchX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:patchY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:patch_edge", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Substrate Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:subH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0508mm"), Array("NAME:subX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:subY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "28mm"), Array("NAME:--Copper", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:CuH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.018mm"), Array("NAME:--AirBox", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:airX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:airY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "60mm"), Array("NAME:airH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:--PD-LED", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:cypdX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cypdY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cypdH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cypdR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cyledY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cyledH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Feed", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:feedX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0889mm"), Array("NAME:feedY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:feed_length", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm")))) Set oDefinitionManager = oProject.GetDefinitionManager() oDefinitionManager.AddMaterial Array("NAME:AP LaminateFPC", "CoordinateSystemType:=", _ "Cartesian", Array("NAME:AttachedData"), Array("NAME:ModifierData"), "permittivity:=", _ "3.4", "dielectric_loss_tangent:=", "0.004") Set oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "subH"), Array("NAME:Attributes", "Name:=", "sub", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "-CuH"), Array("NAME:Attributes", "Name:=", "METG", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "subH"), Array("NAME:Attributes", "Name:=", "subb", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH*2+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "-CuH"), Array("NAME:Attributes", "Name:=", "METGb", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "-cuH", "XSize:=", "subX", "YSize:=", "-CuH", "ZSize:=", _ "subH*2+cuH*3+5mm"), Array("NAME:Attributes", "Name:=", "METV", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "subH", "XSize:=", "subX", "YSize:=", "subH", "ZSize:=", _ "5mm+cuH*2"), Array("NAME:Attributes", "Name:=", "subv", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "subH", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "subH", "XSize:=", "patchX", "YSize:=", "patchY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "PATCH", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1b", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "patchX", "YSize:=", _ "patchY", "ZSize:=", "CuH"), Array("NAME:Attributes", "Name:=", "PATCHb", "Flags:=", _ "", "Color:=", "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) Set oProject = oDesktop.NewProject oProject.InsertDesign "HFSS", "FPC_MSLine", "DrivenModal", "" Set oDesign = oProject.SetActiveDesign("FPC_MSLine") oDesign.ChangeProperty Array("NAME:AllTabs", Array("NAME:LocalVariableTab", Array("NAME:PropServers", _ "LocalVariables"), Array("NAME:NewProps", Array("NAME:--Patch Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:patchX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:patchY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:patch_edge", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Substrate Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:subH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0508mm"), Array("NAME:subX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:subY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "28mm"), Array("NAME:--Copper", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:CuH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.018mm"), Array("NAME:--AirBox", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:airX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:airY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "60mm"), Array("NAME:airH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:--PD-LED", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:cypdX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cypdY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cypdH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cypdR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cyledY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cyledH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Feed", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:feedX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0889mm"), Array("NAME:feedY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:feed_length", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm")))) Set oDefinitionManager = oProject.GetDefinitionManager() oDefinitionManager.AddMaterial Array("NAME:AP LaminateFPC", "CoordinateSystemType:=", _ "Cartesian", Array("NAME:AttachedData"), Array("NAME:ModifierData"), "permittivity:=", _ "3.4", "dielectric_loss_tangent:=", "0.004") Set oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "subH"), Array("NAME:Attributes", "Name:=", "sub", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "-CuH"), Array("NAME:Attributes", "Name:=", "METG", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "subH"), Array("NAME:Attributes", "Name:=", "subb", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH*2+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "-CuH"), Array("NAME:Attributes", "Name:=", "METGb", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "-cuH", "XSize:=", "subX", "YSize:=", "-CuH", "ZSize:=", _ "subH*2+cuH*3+5mm"), Array("NAME:Attributes", "Name:=", "METV", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "subH", "XSize:=", "subX", "YSize:=", "subH", "ZSize:=", _ "5mm+cuH*2"), Array("NAME:Attributes", "Name:=", "subv", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "subH", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "subH", "XSize:=", "patchX", "YSize:=", "patchY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "PATCH", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1b", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "patchX", "YSize:=", _ "patchY", "ZSize:=", "CuH"), Array("NAME:Attributes", "Name:=", "PATCHb", "Flags:=", _ "", "Color:=", "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateCylinder Array("NAME:CylinderParameters", "XCenter:=", "cypdX", "YCenter:=", _ "cypdY", "ZCenter:=", "cuH", "Radius:=", "cypdR", "Height:=", "-cypdH", "WhichAxis:=", _ "Z", "NumSides:=", "0"), Array("NAME:Attributes", "Name:=", "CylinderPD", "Flags:=", _ "", "Color:=", "(132 1 193)", "Transparency:=", 0.4, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm", "Width:=", "subH", "Height:=", _ "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", "port1", "Flags:=", _ "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm+SubH*2+CuH+5mm+CuH", "Width:=", _ "-subH", "Height:=", "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", _ "port2", "Flags:=", "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) Set oModule = oDesign.GetModule("BoundarySetup") oModule.AssignLumpedPort Array("NAME:1", "Objects:=", Array("port1"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("0mm", "4.42650744617717e-18mm", _ "-8.1650628641107e-18mm"), "End:=", Array("6.93889390390723e-18mm", _ "1.25958732376599e-17mm", "0.0508mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oModule.AssignLumpedPort Array("NAME:2", "Objects:=", Array("port2"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("-6.93889390390723e-18mm", _ "-3.74285834530558e-18mm", "5.0868mm"), "End:=", Array("0mm", _ "4.42650744617717e-18mm", "5.1376mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-airX/2", "YPosition:=", _ "-airY/4", "ZPosition:=", "-airH/5", "XSize:=", "airX", "YSize:=", "airY", "ZSize:=", _ "airH"), Array("NAME:Attributes", "Name:=", "airbox", "Flags:=", "", "Color:=", _ "(132 133 0)", "Transparency:=", 0.9, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "air" & Chr(34) & "", "SolveInside:=", _ true) oModule.AssignRadiation Array("NAME:Rad1", "Objects:=", Array("airbox"), "IsIncidentField:=", _ false, "IsEnforcedField:=", false, "IsFssReference:=", false, "IsForPML:=", _ false, "UseAdaptiveIE:=", false, "IncludeInPostproc:=", true) Set oModule = oDesign.GetModule("AnalysisSetup") oModule.InsertSetup "HfssDriven", Array("NAME:Setup1", "Frequency:=", "24GHz", "PortsOnly:=", _ false, "MaxDeltaS:=", 0.02, "UseMatrixConv:=", false, "MaximumPasses:=", 15, "MinimumPasses:=", _ 1, "MinimumConvergedPasses:=", 1, "PercentRefinement:=", 30, "IsEnabled:=", _ true, "BasisOrder:=", 1, "UseIterativeSolver:=", true, "IterativeResidual:=", _ 0.0001, "DoLambdaRefine:=", true, "DoMaterialLambda:=", true, "SetLambdaTarget:=", _ false, "Target:=", 0.3333, "UseMaxTetIncrease:=", false, "PortAccuracy:=", 2, "UseABCOnPort:=", _ false, "SetPortMinMaxTri:=", false, "EnableSolverDomains:=", false, "SaveRadFieldsOnly:=", _ false, "SaveAnyFields:=", true, "NoAdditionalRefinementOnImport:=", false) oModule.InsertFrequencySweep "Setup1", Array("NAME:Sweep1", "IsEnabled:=", true, "SetupType:=", _ "LinearCount", "StartValue:=", "19.2GHz", "StopValue:=", "28.8GHz", "Count:=", _ 100, "Type:=", "Interpolating", "SaveFields:=", false, "InterpTolerance:=", _ 0.5, "InterpMaxSolns:=", 50, "InterpMinSolns:=", 0, "InterpMinSubranges:=", 1, "ExtrapToDC:=", _ false, "InterpUseS:=", true, "InterpUsePortImped:=", false, "InterpUsePropConst:=", _ true, "UseDerivativeConvergence:=", false, "InterpDerivTolerance:=", 0.2, "UseFullBasis:=", _ true, "EnforcePassivity:=", false) Set oProject = oDesktop.NewProject oProject.InsertDesign "HFSS", "FPC_MSLine", "DrivenModal", "" Set oDesign = oProject.SetActiveDesign("FPC_MSLine") oDesign.ChangeProperty Array("NAME:AllTabs", Array("NAME:LocalVariableTab", Array("NAME:PropServers", _ "LocalVariables"), Array("NAME:NewProps", Array("NAME:--Patch Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:patchX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:patchY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:patch_edge", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Substrate Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:subH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0508mm"), Array("NAME:subX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:subY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "28mm"), Array("NAME:--Copper", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:CuH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.018mm"), Array("NAME:--AirBox", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:airX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:airY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "60mm"), Array("NAME:airH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:--PD-LED", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:cypdX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cypdY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "20mm"), Array("NAME:cypdH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cypdR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cyledY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cyledH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Feed", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:feedX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0889mm"), Array("NAME:feedY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:feed_length", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm")))) Set oDefinitionManager = oProject.GetDefinitionManager() oDefinitionManager.AddMaterial Array("NAME:AP LaminateFPC", "CoordinateSystemType:=", _ "Cartesian", Array("NAME:AttachedData"), Array("NAME:ModifierData"), "permittivity:=", _ "3.4", "dielectric_loss_tangent:=", "0.004") Set oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "subH"), Array("NAME:Attributes", "Name:=", "sub", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "-CuH"), Array("NAME:Attributes", "Name:=", "METG", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "subH"), Array("NAME:Attributes", "Name:=", "subb", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH*2+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "-CuH"), Array("NAME:Attributes", "Name:=", "METGb", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "-cuH", "XSize:=", "subX", "YSize:=", "-CuH", "ZSize:=", _ "subH*2+cuH*3+5mm"), Array("NAME:Attributes", "Name:=", "METV", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "subH", "XSize:=", "subX", "YSize:=", "subH", "ZSize:=", _ "5mm+cuH*2"), Array("NAME:Attributes", "Name:=", "subv", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "subH", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "subH", "XSize:=", "patchX", "YSize:=", "patchY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "PATCH", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1b", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "patchX", "YSize:=", _ "patchY", "ZSize:=", "CuH"), Array("NAME:Attributes", "Name:=", "PATCHb", "Flags:=", _ "", "Color:=", "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateCylinder Array("NAME:CylinderParameters", "XCenter:=", "0", "YCenter:=", _ "cypdY", "ZCenter:=", "cuH", "Radius:=", "cypdR", "Height:=", "-cypdH", "WhichAxis:=", _ "Z", "NumSides:=", "0"), Array("NAME:Attributes", "Name:=", "CylinderPD", "Flags:=", _ "", "Color:=", "(132 1 193)", "Transparency:=", 0.4, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm", "Width:=", "subH", "Height:=", _ "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", "port1", "Flags:=", _ "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm+SubH*2+CuH+5mm+CuH", "Width:=", _ "-subH", "Height:=", "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", _ "port2", "Flags:=", "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) Set oModule = oDesign.GetModule("BoundarySetup") oModule.AssignLumpedPort Array("NAME:1", "Objects:=", Array("port1"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("0mm", "4.42650744617717e-18mm", _ "-8.1650628641107e-18mm"), "End:=", Array("6.93889390390723e-18mm", _ "1.25958732376599e-17mm", "0.0508mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oModule.AssignLumpedPort Array("NAME:2", "Objects:=", Array("port2"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("-6.93889390390723e-18mm", _ "-3.74285834530558e-18mm", "5.0868mm"), "End:=", Array("0mm", _ "4.42650744617717e-18mm", "5.1376mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-airX/2", "YPosition:=", _ "-airY/4", "ZPosition:=", "-airH/5", "XSize:=", "airX", "YSize:=", "airY", "ZSize:=", _ "airH"), Array("NAME:Attributes", "Name:=", "airbox", "Flags:=", "", "Color:=", _ "(132 133 0)", "Transparency:=", 0.9, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "air" & Chr(34) & "", "SolveInside:=", _ true) oModule.AssignRadiation Array("NAME:Rad1", "Objects:=", Array("airbox"), "IsIncidentField:=", _ false, "IsEnforcedField:=", false, "IsFssReference:=", false, "IsForPML:=", _ false, "UseAdaptiveIE:=", false, "IncludeInPostproc:=", true) Set oModule = oDesign.GetModule("AnalysisSetup") oModule.InsertSetup "HfssDriven", Array("NAME:Setup1", "Frequency:=", "24GHz", "PortsOnly:=", _ false, "MaxDeltaS:=", 0.02, "UseMatrixConv:=", false, "MaximumPasses:=", 15, "MinimumPasses:=", _ 1, "MinimumConvergedPasses:=", 1, "PercentRefinement:=", 30, "IsEnabled:=", _ true, "BasisOrder:=", 1, "UseIterativeSolver:=", true, "IterativeResidual:=", _ 0.0001, "DoLambdaRefine:=", true, "DoMaterialLambda:=", true, "SetLambdaTarget:=", _ false, "Target:=", 0.3333, "UseMaxTetIncrease:=", false, "PortAccuracy:=", 2, "UseABCOnPort:=", _ false, "SetPortMinMaxTri:=", false, "EnableSolverDomains:=", false, "SaveRadFieldsOnly:=", _ false, "SaveAnyFields:=", true, "NoAdditionalRefinementOnImport:=", false) oModule.InsertFrequencySweep "Setup1", Array("NAME:Sweep1", "IsEnabled:=", true, "SetupType:=", _ "LinearCount", "StartValue:=", "19.2GHz", "StopValue:=", "28.8GHz", "Count:=", _ 100, "Type:=", "Interpolating", "SaveFields:=", false, "InterpTolerance:=", _ 0.5, "InterpMaxSolns:=", 50, "InterpMinSolns:=", 0, "InterpMinSubranges:=", 1, "ExtrapToDC:=", _ false, "InterpUseS:=", true, "InterpUsePortImped:=", false, "InterpUsePropConst:=", _ true, "UseDerivativeConvergence:=", false, "InterpDerivTolerance:=", 0.2, "UseFullBasis:=", _ true, "EnforcePassivity:=", false) Set oProject = oDesktop.NewProject oProject.InsertDesign "HFSS", "FPC_MSLine", "DrivenModal", "" Set oDesign = oProject.SetActiveDesign("FPC_MSLine") oDesign.ChangeProperty Array("NAME:AllTabs", Array("NAME:LocalVariableTab", Array("NAME:PropServers", _ "LocalVariables"), Array("NAME:NewProps", Array("NAME:--Patch Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:patchX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:patchY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:patch_edge", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Substrate Dimensions", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:subH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0508mm"), Array("NAME:subX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:subY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "28mm"), Array("NAME:--Copper", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:CuH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.018mm"), Array("NAME:--AirBox", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:airX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:airY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "60mm"), Array("NAME:airH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm"), Array("NAME:--PD-LED", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:cypdX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cypdY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "20mm"), Array("NAME:cypdH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "1mm"), Array("NAME:cypdR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:cyledX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "12mm"), Array("NAME:cyledY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "30mm"), Array("NAME:cyledH", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "1mm"), Array("NAME:cyledR", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "5mm"), Array("NAME:--Feed", "PropType:=", _ "SeparatorProp", "UserDef:=", true, "Value:=", ""), Array("NAME:feedX", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "0.0889mm"), Array("NAME:feedY", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "15mm"), Array("NAME:feed_length", "PropType:=", _ "VariableProp", "UserDef:=", true, "Value:=", "10mm")))) Set oDefinitionManager = oProject.GetDefinitionManager() oDefinitionManager.AddMaterial Array("NAME:AP LaminateFPC", "CoordinateSystemType:=", _ "Cartesian", Array("NAME:AttachedData"), Array("NAME:ModifierData"), "permittivity:=", _ "3.4", "dielectric_loss_tangent:=", "0.004") Set oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "subH"), Array("NAME:Attributes", "Name:=", "sub", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm", "XSize:=", "subX", "YSize:=", "subY", "ZSize:=", _ "-CuH"), Array("NAME:Attributes", "Name:=", "METG", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "subH"), Array("NAME:Attributes", "Name:=", "subb", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "0mm+SubH*2+CuH+5mm+CuH", "XSize:=", "subX", "YSize:=", _ "subY", "ZSize:=", "-CuH"), Array("NAME:Attributes", "Name:=", "METGb", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "-cuH", "XSize:=", "subX", "YSize:=", "-CuH", "ZSize:=", _ "subH*2+cuH*3+5mm"), Array("NAME:Attributes", "Name:=", "METV", "Flags:=", "", "Color:=", _ "(255 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-subX/2", "YPosition:=", _ "-1mm", "ZPosition:=", "subH", "XSize:=", "subX", "YSize:=", "subH", "ZSize:=", _ "5mm+cuH*2"), Array("NAME:Attributes", "Name:=", "subv", "Flags:=", "", "Color:=", _ "(132 132 193)", "Transparency:=", 0.8, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "AP LaminateFPC" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "subH", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "subH", "XSize:=", "patchX", "YSize:=", "patchY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "PATCH", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-feedX/2", "YPosition:=", _ "0", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "feedX", "YSize:=", "feedY", "ZSize:=", _ "CuH"), Array("NAME:Attributes", "Name:=", "MET1b", "Flags:=", "", "Color:=", _ "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-patchX/2", "YPosition:=", _ "feedY", "ZPosition:=", "0mm+SubH+CuH+5mm", "XSize:=", "patchX", "YSize:=", _ "patchY", "ZSize:=", "CuH"), Array("NAME:Attributes", "Name:=", "PATCHb", "Flags:=", _ "", "Color:=", "(1 252 1)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateCylinder Array("NAME:CylinderParameters", "XCenter:=", "0", "YCenter:=", _ "cypdY", "ZCenter:=", "cuH", "Radius:=", "cypdR", "Height:=", "-cypdH", "WhichAxis:=", _ "Z", "NumSides:=", "0"), Array("NAME:Attributes", "Name:=", "CylinderPD", "Flags:=", _ "", "Color:=", "(132 1 193)", "Transparency:=", 0.4, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateCylinder Array("NAME:CylinderParameters", "XCenter:=", "0", "YCenter:=", _ "cyledY", "ZCenter:=", "cuH+subH+5mm", "Radius:=", "cyledR", "Height:=", _ "cyledH", "WhichAxis:=", "Z", "NumSides:=", "0"), Array("NAME:Attributes", "Name:=", _ "CylinderPD_1", "Flags:=", "", "Color:=", "(132 1 193)", "Transparency:=", 0.4, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _ true) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm", "Width:=", "subH", "Height:=", _ "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", "port1", "Flags:=", _ "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) oEditor.CreateRectangle Array("NAME:RectangleParameters", "IsCovered:=", true, "XStart:=", _ "-feedX/2", "YStart:=", "0", "ZStart:=", "0mm+SubH*2+CuH+5mm+CuH", "Width:=", _ "-subH", "Height:=", "feedX", "WhichAxis:=", "Y"), Array("NAME:Attributes", "Name:=", _ "port2", "Flags:=", "", "Color:=", "(128 128 65)", "Transparency:=", 0.3, "PartCoordinateSystem:=", _ "Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "pec" & Chr(34) & "", "SolveInside:=", _ false) Set oModule = oDesign.GetModule("BoundarySetup") oModule.AssignLumpedPort Array("NAME:1", "Objects:=", Array("port1"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("0mm", "4.42650744617717e-18mm", _ "-8.1650628641107e-18mm"), "End:=", Array("6.93889390390723e-18mm", _ "1.25958732376599e-17mm", "0.0508mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oModule.AssignLumpedPort Array("NAME:2", "Objects:=", Array("port2"), "RenormalizeAllTerminals:=", _ true, "DoDeembed:=", false, Array("NAME:Modes", Array("NAME:Mode1", "ModeNum:=", 1, "UseIntLine:=", _ true, Array("NAME:IntLine", "Start:=", Array("-6.93889390390723e-18mm", _ "-3.74285834530558e-18mm", "5.0868mm"), "End:=", Array("0mm", _ "4.42650744617717e-18mm", "5.1376mm")), "CharImp:=", "Zpi", "AlignmentGroup:=", _ 0, "RenormImp:=", "50ohm")), "ShowReporterFilter:=", false, "ReporterFilter:=", Array( _ true), "FullResistance:=", "50ohm", "FullReactance:=", "0ohm") oEditor.CreateBox Array("NAME:BoxParameters", "XPosition:=", "-airX/2", "YPosition:=", _ "-airY/4", "ZPosition:=", "-airH/5", "XSize:=", "airX", "YSize:=", "airY", "ZSize:=", _ "airH"), Array("NAME:Attributes", "Name:=", "airbox", "Flags:=", "", "Color:=", _ "(132 133 0)", "Transparency:=", 0.9, "PartCoordinateSystem:=", "Global", "UDMId:=", _ "", "MaterialValue:=", "" & Chr(34) & "air" & Chr(34) & "", "SolveInside:=", _ true) oModule.AssignRadiation Array("NAME:Rad1", "Objects:=", Array("airbox"), "IsIncidentField:=", _ false, "IsEnforcedField:=", false, "IsFssReference:=", false, "IsForPML:=", _ false, "UseAdaptiveIE:=", false, "IncludeInPostproc:=", true) Set oModule = oDesign.GetModule("AnalysisSetup") oModule.InsertSetup "HfssDriven", Array("NAME:Setup1", "Frequency:=", "24GHz", "PortsOnly:=", _ false, "MaxDeltaS:=", 0.02, "UseMatrixConv:=", false, "MaximumPasses:=", 15, "MinimumPasses:=", _ 1, "MinimumConvergedPasses:=", 1, "PercentRefinement:=", 30, "IsEnabled:=", _ true, "BasisOrder:=", 1, "UseIterativeSolver:=", true, "IterativeResidual:=", _ 0.0001, "DoLambdaRefine:=", true, "DoMaterialLambda:=", true, "SetLambdaTarget:=", _ false, "Target:=", 0.3333, "UseMaxTetIncrease:=", false, "PortAccuracy:=", 2, "UseABCOnPort:=", _ false, "SetPortMinMaxTri:=", false, "EnableSolverDomains:=", false, "SaveRadFieldsOnly:=", _ false, "SaveAnyFields:=", true, "NoAdditionalRefinementOnImport:=", false) oModule.InsertFrequencySweep "Setup1", Array("NAME:Sweep1", "IsEnabled:=", true, "SetupType:=", _ "LinearCount", "StartValue:=", "19.2GHz", "StopValue:=", "28.8GHz", "Count:=", _ 100, "Type:=", "Interpolating", "SaveFields:=", false, "InterpTolerance:=", _ 0.5, "InterpMaxSolns:=", 50, "InterpMinSolns:=", 0, "InterpMinSubranges:=", 1, "ExtrapToDC:=", _ false, "InterpUseS:=", true, "InterpUsePortImped:=", false, "InterpUsePropConst:=", _ true, "UseDerivativeConvergence:=", false, "InterpDerivTolerance:=", 0.2, "UseFullBasis:=", _ true, "EnforcePassivity:=", false) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |