Cst Microwave Studio®
Total Page:16
File Type:pdf, Size:1020Kb
MWS Advanced Vers5 06.11.2003 20:16 Uhr Seite 1 CST MICROWAVE STUDIO® HF DESIGN AND ANALYSIS CST MWS VERSION 5 ADVANCED TOPICS MWS Advanced Vers5 06.11.2003 20:16 Uhr Seite 2 Copyright © 1998-2003 CST–Computer Simulation Technology All rights reserved. Information in this document is subject to change without notice. The software described in this document is furnished under a license agreement or non-disclosure agreement.The software may be used only in accordance with the terms of those agreements. No part of this documentation may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic or mechanical, inclu- ding photocopying and recording for any purpose other than the purchaser’s personal use without the written permission of CST. Trademarks Microsoft,Windows,Visual Basic for Applications are trademarks or registered trademarks of Microsoft Corporation. Sax Basic is trademark of Sax Software Corporation. Other brands and their products are trademarks or registered trademarks of their respective holders and should be noted as such. CST–Computer Simulation Technology www.cst.com CST MICROWAVE STUDIO® 5 – Advanced Topics 1 December 11, 2003 Contents CHAPTER 1 - INTRODUCTION .................................................................................................................. 5 CHAPTER 2 - THE INNOVATIONS IN CST MICROWAVE STUDIO VERSION 5 ..................................... 6 2.1 Structure Modeling................................................................................................................ 6 2.2 Meshing ................................................................................................................................ 7 2.3 Ports...................................................................................................................................... 8 2.4 General Performance improvements .................................................................................... 9 2.5 Transient Solver.................................................................................................................. 10 2.6 Eigenmode Solver............................................................................................................... 10 2.7 Frequency Domain Solver................................................................................................... 11 2.8 Post Processing .................................................................................................................. 12 2.9 Farfields .............................................................................................................................. 13 CHAPTER 3 - CAD DATA IMPORT AND HEALING................................................................................. 14 3.1 Import 2D Files.................................................................................................................... 15 3.2 Import 3D Files.................................................................................................................... 16 3.3 Inspect and Repair the Imported Model .............................................................................. 18 3.4 Parameterize the Imported Model....................................................................................... 25 CHAPTER 4 – THE SIMULATION METHOD ............................................................................................ 28 4.1 Background of the Simulation Method ................................................................................ 28 The Finite Integration Technique (FIT).................................................................................. 28 The CST MICROWAVE STUDIO Solvers........................................................................... 31 References............................................................................................................................ 32 4.2 Error Sources / Sources of Inaccuracy.............................................................................. 33 Simulation Model is not in Agreement with Reality ............................................................... 33 Inaccuracies due to the Simulation ....................................................................................... 33 4.3 Mesh Generation ................................................................................................................ 35 Methods of Mesh Generation................................................................................................ 35 Global Mesh Parameters ...................................................................................................... 36 Mesh Adaption ...................................................................................................................... 41 4.4 Mesh Tuning ....................................................................................................................... 45 Ratio Limit, Number of Mesh Points and Simulation Time ................................................... 45 Local Mesh Parameters ........................................................................................................ 45 4.5 The Multilevel Subgridding Scheme (MSS™) ..................................................................... 50 4.6 Performance Improvements................................................................................................ 58 General Hints........................................................................................................................ 58 Special Time Domain Topics ................................................................................................ 58 4.7 Auto-Regressive Filtering (AR-Filter) .................................................................................. 63 CHAPTER 5 - THE VBA MACRO LANGUAGE ........................................................................................ 70 5.1 Introduction ......................................................................................................................... 70 5.2 VBA Development Environment.......................................................................................... 71 VBA Help System ................................................................................................................. 71 2 CST MICROWAVE STUDIO® 5 – Advanced Topics VBA Editor Shortcuts ............................................................................................................ 72 5.3 VBA Language Elements.................................................................................................... 73 Subroutines and Functions ................................................................................................... 73 Variables, Data Types and Type Conversions...................................................................... 74 Applications, Objects and their Methods............................................................................... 75 Flow Control.......................................................................................................................... 77 File Operations...................................................................................................................... 77 Graphical User Interface Builder ........................................................................................... 78 Mathematical Functions, Operators and Constants .............................................................. 78 5.4 Concepts of Macro Programming in CST MWS.................................................................. 79 Local Project Macros.............................................................................................................80 Global Macros and Global Macro Path ................................................................................. 80 5.5 Control Macros.................................................................................................................... 81 Result1D Object.................................................................................................................... 82 Result3D Object.................................................................................................................... 85 Adding Data Items to the Navigation Tree ............................................................................ 85 Traverse Folders and Select Items From the Navigation Tree.............................................. 86 Access the Currently Displayed Plot Data............................................................................. 87 Access Farfield Data From a VBA Script .............................................................................. 87 5.6 Structure Macros................................................................................................................. 89 Creating a Structure Macro or a New Project Template........................................................ 89 Difficulties in Creating Structure Macros ............................................................................... 91 Using Dialog Boxes in Structure Macros............................................................................... 92 Common Pitfalls in the Usage of Structure Macros............................................................... 93 CHAPTER 6 - OVERVIEW OF INSTALLED VBA MACROS..................................................................... 94 6.1 File and Result Handling....................................................................................................