CST中定义激励信号的vba编程方法
- 格式:pdf
- 大小:287.80 KB
- 文档页数:6
Faq-020802: 定义激励信号1) CST MWS自带的激励信号在整个时域仿真过程中,时域求解器通过时间信号的激励来计算空间上各个时刻的场值。
因此任何一个用于时域仿真的结构都至少应该含有一个用于场输入和输出的端口。
将仿真结构抽象为含有一个输入端口和一个输出端口的系统,根据输入信号i1,输出信号o2,1和反射信号o1,1,以及这些信号的频域值即可得系统特性,并最终设计出需要的系统结构。
因此,时域仿真过程中选择合适的激励信号是很重要的。
在MWS的时域求解过程中,定义激励端口后,系统会给出缺省的激励信号,该缺省的激励信号是由仿真的频率范围决定的高斯脉冲信号。
如上图所示,高斯脉冲信号的频谱仍是高斯函数。
高斯脉冲带宽是有限的,因此可以确保整个频带上网格的生成,有利于求解器在整个频带上对所有频点进行采样。
另外,高斯脉冲的频谱在带宽中不含有零点,故高斯脉冲信号可以在其频带上可以准确地计算S参量。
因此对S参量的求解等,该缺省的高斯脉冲就足够了。
微波工作室®的信号库中含有几个预先定义好的激励信号,可供用户选择。
完成结构建模,并设置好仿真频率等仿真参数后,点击导航树ÖExcitation Signals即可查看当前缺省设置下的激励信号。
如果对缺省的激励信号不满意,还可以在导航树的Excitation Signals上点击右键,选择右键菜单中的Load from Signal Library.....打开信号库(Load New Excitation Signal From Library)选择需要的激励信号。
在下图的信号库对话框中选择需要的激励信号后,点击Apply按钮即可完成信号的加载,在以后的仿真中,可以从求解器对话框中加载该信号对结构进行激励。
2) 自定义激励信号如果信号库中的信号都不能符合仿真要求,您还可以自己定义需要的激励信号。
完成结构建模,并设置好仿真频率等仿真参数后,在导航树的Excitation Signals上点击右键选择右键菜单中的New Excitation Signal......在打开的Excitation Signal对话框中选择Gaussian选项即可通过设定频率范围Fmin和Fmx来定义高斯脉冲信号,选择Rectangular选项即可通过指定信号的上升(Trise)、下降(Tfall)、保持(Thold)以及总激励时间(Ttotal)来定义矩形脉冲信号,并可以在Name栏中为定义的激励信号指定一个您喜欢的名字,这里我们定义一个矩形脉冲,并将名字命名为rectangular。
CST激励源之波导端口波导端口是一种特殊种类的解算域边界条件,它可以刺激能量的吸收,这一切都是是通过2D频域解算器求解二维端口面内可能本征模实现的,且端口处每种可能的电磁场解析解都可以通过无数模式的叠加求得,然而,实际上,少量的模式就可以进行场仿真了,求解计算中需要考虑的模式数可以在Waveguide Port对话框中设定。
这里要注意:激励波导端口的输入信号是规一化到峰值功率为1 sqrt(Watt)使用波导端口要根据不同需求、不同特点的端口类型的数量定义。
因而,我们首先必须精确的判定激励问题的类型,然后在选择并定义合适的波导端口。
在具有不均匀性、可获得broadband ports(宽带端口)或者具有inhomogeneous port accuracy enhancement(非均匀端口精度加密)特色的情况下,我们可以选择使用normal waveguide ports(标准波导端口),与此同时,multipin ports可以计算凋落的TEM模。
标准波导端口标准波导端口即我们经常使用的矩形或圆形波导结构,通过PEC边界条件屏蔽,因而端口模式就被限制在端口区域内均匀波导端口右图是一个均匀、矩形标准波导端口,通过normalwaveguide operator解算。
下图中是一个具有三个模式的波导端口,这里按各自的截止频率来分类。
传播模式数的多少取决于选取的频率范围。
在瞬态仿真时,建议考虑所有的传播模式,因为未考虑的模式将在端口处引起反射。
对于凋落模式也采用同样的考虑,如果必要的话,求解器将检查这些情况并给出警告信息。
非均匀波导端口如果波导由两种或两种以上材料的介质填充如右图所示,那么模式就呈现频率依赖性,如下图所示就是三个不同频点的TE模,频率越高(从左到右频率逐渐增加),那么场就更加集中在具有高介电常数值的材料中(图中浅褐色部分所示)。
因为标准的波导解算器只计算指定频点处的场模式,对于宽带内计算场模式将会报错。
Examples OverviewThe usage of the VBA macro language is described in detail in the printed documentation "Advanced topics".Here are some typical examples to get in touch with the CST MICROWAVESTUDIO® VBA language:General• How to use the VBA Objects in general.Modelling:• Create analytical 2D curve.• Create analytical 3D curve.Solver and Post processing• Accessing S-Parameter Phase.• Calculating the real part of S11 at a certain frequency.• Define an excitation function.• Adding user defined entries to the result tree.• Creating 3D scalar and vector plots:• Create a farfield array.How to use the VBA ObjectsExample 1: Call CST MICROWAVE STUDIO™ from within an external application Creates a CST MICROWAVE STUDIO™ Application Object, opens a project and creates a brick:dim app as Object‘Starts the CST MICROWAVE STUDIO™set app = CreateObject(”MWStudio.Application”)app.OpenFile(”c:Exampleswg.mod”)dim br as Objectset br = CreateObject(”MWStudio.Brick”)With br.Reset.Name "BrickOne".Layer "default".Xrange "0", "1".Yrange "0", "2".Zrange "0", "4".CreateEnd WithExample2: Open a file within the build-in VBA interpreterOpens a project from the VBA-Interpreter of the CST MICROWAVE STUDIO™: OpenFile(”c:Exampleswg.mod”)With br.Reset.Name "BrickOne".Layer "default".Xrange "0", "1".Yrange "0", "2".Zrange "0", "4".CreateEnd WithCreate an anayltical 2D curve'--------------------------------------------------' arbitrary xy-function is converted into a curve'--------------------------------------------------Sub Main ()On Error GoTo Curve_ExistsCurve.NewCurve "2D-Analytical"Curve_Exists:On Error GoTo 0Dim sCurveName As StringBeginHideDim iii As Integeriii = 1While SelectTreeItem("Curves2D-Analyticalspline_"+CStr(iii))iii = iii+1WendsCurveName = "spline_"+CStr(iii)assign "sCurveName"EndHideWith Spline.Reset.Name sCurveName.Curve "2D-Analytical"' ======================================' !!! Do not change ABOVE this line !!!' ======================================' -----------------------------------------------------------' adjust x-range as for-loop parameters (xmin,max,stepsize)' enter y-Function-statement within for-loop' fixed parameters a,b,c have to be declared via Dim-Statement' -----------------------------------------------------------' NOTE: available MWS-Parameters can be used without' declaration at any place (loop-dimensions, ...)' (for parametric curves during parameter-sweeps and optimisation !) ' -------------------------------------------Dim xxx As Double, yyy As DoubleDim aaa As Double ' not necessary if aaa is model parameteraaa = 1.23456/Atn(0.5)For xxx = 1.5 To 10 STEP 0.5yyy = 3*aaa/xxx + Sin(xxx^2).LineTo xxx , yyyNext xxx' ======================================' !!! Do not change BELOW this line !!!' ======================================.CreateEnd WithSelectTreeItem("Curves2D-Analytical"+sCurveName)End SubCreate an analytical 3D curve'--------------------------------------------------' arbitrary analytical xyz-function is converted into a curve'--------------------------------------------------Sub Main ()On Error GoTo Curve_ExistsCurve.NewCurve "3D-Analytical"Curve_Exists:On Error GoTo 0Dim sCurveName As StringBeginHideDim iii As Integeriii = 1While SelectTreeItem("Curves3D-Analytical3dpolygon_"+CStr(iii))iii = iii+1WendsCurveName = "3dpolygon_"+CStr(iii)assign "sCurveName"EndHideWith Polygon3D.Reset.Name sCurveName.Curve "3D-Analytical"' ======================================' !!! Do not change ABOVE this line !!!' ======================================' -----------------------------------------------------------' adjust x-range as for-loop parameters (xmin,max,step)' enter y/z-Function-statement within for-loop' fixed parameters a,b,c have to be declared via Dim-Statement' -----------------------------------------------------------' NOTE: available MWS-Parameters can be used without' declaration at any place (loop-dimensions, ...)' (for parametric curves during parameter-sweeps and optimisation !)' -------------------------------------------Dim xxx As Double, yyy As Double, zzz As DoubleDim aaa As Double ' not necessary if aaa is model parameteraaa = 0.3For xxx = Pi/2 To 10*2*Pi STEP 0.2yyy = Sqr(2*Abs(Cos(xxx))) + 3*aaa/xxx + 2*Sin(xxx)zzz = Abs(yyy) - Sqr(2*Abs(Cos(xxx))) + 3*aaa/xxx + 2*Sin(xxx).Point Sin(xxx) , Cos(xxx) , aaa*xxxNext xxx' ======================================' !!! Do not change BELOW this line !!!' ======================================.CreateEnd WithSelectTreeItem("Curves3D-Analytical"+sCurveName)End SubAccessing S-Parameter PhaseExample 1: Accessing all values of S-Parameter phase, stored in file ^p1(1)1(1).sig With Result1D ("p1(1)1(1)") ‘ Connect to phase of S11nn = .GetN ‘ Get number of frq-pointsFor ii = 0 To nn-1' Read all points; index of first point is zero.v x = .GetX(ii) ‘ here: frequencyvy = .GetY(ii) ‘ here: according phaseNext iiEnd WithCalculating the real part of S11 at a certain frequencyCalculating the real part of S11 at a certain frequency (here 0.65 GHz)Dim a11 As ObjectDim p11 As ObjectSet a11 = Result1D ("a1(1)1(1)")Set p11 = Result1D ("p1(1)1(1)")Dim n As IntegerDim frq As Doublefrq=0.65n=a11.GetClosestIndexFromX(frq)phase = Pi/180.0 * p11.GetY(n)ampli = a11.GetY(n)real = ampli * cos(phase)ResultTree ExamplesThe ResultTree VBA Object offers very interesting possibilities to configure the Navigation Tree. It is possible to insert different simulation results as well as VBA macros. The following examples will show its functionality.Examples to add Signal Views into the treeAll following examples add items into the folder ”My S-Parameters”. If this folder does not exist it will be created.For inserting signals into the tree it is possible to import results from other projects. Therefore the complete result file name must be specified with the File method. If the results of the current project shall be inserted, the project name in the result file name may be omitted.Signal into Tree 1: Adds a linear view of the amplitude of an extern S11 S-Parameter into the folder.Signal into Tree 2: Adds a linear view of the phase of an extern S11 S-Parameter into the folder.Signal into Tree 3: Adds a Smith Chart view of a S11 S-Parameter into the folder.Signal into Tree 4: Adds a Polar Plot of the S11 S-Parameter into the folder.Examples to add Field Plot Views into the treeFor results others than Signals only those of the current project can be inserted into the tree!Field Plot into Tree: Adds a 3D-Vector plot into the tree.Farfield into Tree: Adds a Farfield into the tree.Examples to add a macro into the treeEvery time a macro is executed from the tree, a VBA command interpreter is started and evaluates the string that has been set by the Macro method. Therefore no variables that are defined within the script that creates the folder entry can be accessed by the macro. Macro into Tree 1: Adds a command to start the time domain solver into the tree.Macro into Tree 2: Adds a macro into the tree.Macro into Tree 3: Adds an external VBA script into the tree.Signal into Tree 1Adds a linear view of the amplitude of the S11 S-Parameter from the project봂xtProj?into the folder. ExtProj is supposed to be located in the directory of the current project.With ResultTree.Reset.Name "My S-ParametersS11 (lin)" ' The entry name and its destination folder.Title "S11 (linear)" ' Title of the plot.File "ExtProj^a1(1)1(1).sig" ' The name of the signal file.Type "XYSignal" ' Plot Type.XLabel "f/Hz" ' Label for the x-axis.Subtype "Linear" ' Sub Plot Type.AddEnd WithSee also: Result TreeSignal into Tree 2Adds a linear view of the phase of the S11 S-Parameter from the project 봂xtProj?into the folder. ExtProj is supposed to be located in the directory of the current project.With ResultTree.Reset' The entry name and its destination folder.Name "My S-ParametersS11 (phase)".Title "S11 (phase)" ' Title of the plot.File "ExtProj^p1(1)1(1).sig" ' The name of the signal file.Type "XYSignal" ' Plot Type.XLabel "f/Hz" ' Label for the x-axis.Subtype "Phase" ' Sub Plot Type.AddEnd WithSee also: Result TreeSignal into Tree 3Adds a Smith Chart view of the S11 S-Parameter from the current project into the folder.A value has to be given to which the values in the plot are normalized.With ResultTree.Reset' The entry name and its destination folder.Name "My S-ParametersS11 (Smith Chart)".Title "S11" ' Title of the plot.ReferenceImpedance "50" ' Impedance to which the Values' will be normalized' Result files with the amplitude and phase values.File "^a1(1)1(1).sig".File2 "^p1(1)1(1).sig".Type "SmithSignal" ' Type of the plot.AddEnd WithSee also: Result TreeSignal into Tree 4Adds a Polar Plot view of the S11 S-Parameter from the current project into the folder. With ResultTree.Reset' The entry name and its destination folder.Name "My S-ParametersS11 (polar)"' Result files with the amplitude and phase values.File "^a1(1)1(1).sig".File2 "^p1(1)1(1).sig".Type "PolarSignal" ' Type of the plot.AddEnd WithField Plot into TreeAdds a Field Plot view of the electric field from the current project into the folder ”MyFieldView”.With ResultTree' The entry name and its destination folder.Name "My FieldViewE_Field".File "^e1_1.m3d" ' Result file name.Type "Efield3D" ' Entry type.AddEnd WithFarfield into TreeAdds a Farfield Plot view from the current project into the folder 봎y FieldView?With ResultTree' The entry name and its destination folder.Name "My FieldViewFarfield".File "^ff1_1.ffm" ' Result file name.Type "Farfield" ' Entry type.AddEnd WithMacro into Tree 1Adds a command into the 봘serdefined?folder that starts the time domain solver.With ResultTree' The entry name and its destination folder.Name "UserdefinedMacro1"' String to be evaluated by the VBA Interpreter.Macro "Solver.Start".Type "Macro" ' Entry type.AddEnd WithMacro into Tree 2Adds the pr eviously defined control macro ”AutoTest” into the tree.At first a string will be defined that contains a VBA command that executes the control macro. The command is ”RunMacro” that takes a string (the name of the control macro) as its argument. However, strings have to be specified within quotes. Unfortunately quotes are special characters which are not recognized as normal characters. They mark the start and the end of a string. Therefore the variable a is defined with a single quote as its only content. With this quote the entire command string can be constructed.Dim a As Stringa = """a = "RunMacro " & a & "AutoTest" & a' a contains the string: RunMacro "AutoTest"With ResultTree' The entry name and its destination folder.Name "UserdefinedMacro2"' String to be evaluated by the VBA Interpreter.Macro a.Type "Macro" ' Entry type.AddEnd WithMacro into Tree 3Adds an external VBA script into the tree. Let the name of the external macrobe ”Macro1.bas” that will be located in the directory of t he current project.At first a string will be defined that contains a VBA command that executes an external VBA script file. The command is ”MacroRun” that takes a string (the name of t he script) as its argument. However, strings have to be specified within quotes. Unfortunately quotes are special characters which are not recognized as normal characters. They mark the start and the end of a string. Therefore the variable a is defined with a single quote as its only content. With this quote the entire command string can be constructed.Dim a As Stringa = """a = "MacroRun " & a & "Macro1.bas" & a' a contains the string: MacroRun "Macro1.bas"With ResultTree' The entry name and its destination folder.Name "UserdefinedMacro3"' String to be evaluated by the VBA Interpreter.Macro a.Type "Macro" ' Entry type.AddEnd WithScalarPlot3D ExampleThe following script plots surfaces of equal amplitude of the vector field component Y of the electric field ”e1”.‘ Plot only a wire frame of the structure to be able to look insidePlot.wireframe True‘ Select the Y-Component of the electric field e1 in the treeSelectTreeItem ("2D/3D ResultsE-Fielde1Y")‘ Plot the scalar field of the selecte d monitorWith ScalarPlot3D.Type "isosurfaces".PlotAmplitude False.Scaling 50.LogScale False.ContourLines False.ScaleToVectorMaximum True.Quality 60.PlotEnd WithSee Also: SelectTreeItem, PlotVectorPlot3D ExampleThe following script plots the electric field ”e1” (if available) in a linear scale by using 400 colored arrows.‘ Plot only a wire frame of the structure to be able to look insidePlot.wireframe True‘ Select the desired monitor in the tree.SelectTreeItem ("2D/3D ResultsE-Fielde1")‘ Plot the field of the selected monitorWith VectorPlot3D.Type "arrowscolor".Objects 400.Scaling 50.LogScale False.PlotEnd WithSee Also: SelectTreeItem, PlotFarfieldArray ObjectGroup: PostprocessingDescription: Defines the antenna array pattern for a farfieldplot based on a single antenna element.Methods: Reset , UseArray , Arraytype , XSet , YSet , Zset , SetList , DeleteList , AntennaFunctions: noneExample:With FarfieldArray.Reset.UseArray "True".Arraytype "Rectangular".ZSet "2", "2,5", "90".SetList.Arraytype "Edit".Antenna "0", "0", "0", "1.0", "0"End With。
第二章 VBA创建界面VBA采用VB的编程语言和语法,是一种可视化的、面向对象的、采用事件驱动的结构化高级程序设计语言,不过VBA的部分函数与VB的不一样,这一点需要注意。
一个完整的VBA程序通常包含以下几个部分:①界面。
界面也就是人机对话框,用户可以通过输入相关数据、点击操作按钮,让VBA进行各种数据计算、模型创建、数据输出等功能。
②主程序。
主程序也就是Sub Main和End Sub之间的程序,主程序可以实现宏文件的特定功能,是一个完整的程序体。
③子程序。
子程序可以完成某个具体的小功能,是为主程序服务的。
有时候主程序需要反复执行同一操作,若每次都编写同样的程序,则显得过于冗杂。
因此编写功能很小、但很具体的子程序,可以随时调用。
④数据输出。
有的时候,经过计算的数据需要输出到txt文件、打印成报表格式等,因此程序中还应该具备数据输出的功能。
当然,该功能是附属功能,可以不存在。
如果一个宏程序中包含了上述四个部分,那么该宏程序就是一个非常完整、功能齐全的程序了。
接下来首先讲解如何利用VBA创建界面。
在CST主窗口的菜单栏中打开Open VBA Macro Editor,单击图1-9左侧的图标,那么就打开了窗口编辑对话框,如图2-1所示。
图2-1 窗口编辑对话框之前使用过VB软件的可能会发现,VBA此时的操作界面竟然和VB的操作界面一模一样,都具备可视化的效果。
图2-1左侧部分是窗体中可以使用的控件,包括text文本框、单选按钮等等,中部是放置控件的载体,它的大小可以任意调整,而调整后的大小就是实际的窗体大小。
需要注意的是:创建的窗体中必须至少包含OKButton和CancelButton 中的一个,否则系统会提示存在错误。
2.1 控件① Text静态文本静态文本text通常用来显示数据输出,或者提示用户的标签等。
在窗体中添加一个静态文本,双击便可打开并查看text1静态文本的部分属性,如图2-2所示。
第一章 VBA简介Visual Basic for Applications(VBA)是一种Visual Basic的一种宏语言,提供了面向对象的程序设计方法,相当完整的程序设计过程,是一种可视化的、面向对象的、采用事件驱动的结构化高级程序设计语言。
它具有高效率、简单易学及功能强大的特点。
此处要介绍的VBA是在CST仿真软件中编写宏语言的,编写的宏可以完成某一指定的具体任务,如人机对话框、数据处理、联合建模并仿真等等。
1.1 VBA运行环境首先打开CST仿真软件,单击菜单栏的Macros选项,将会弹出如图1-1所示的界面。
图1-1 CST界面下的Macros菜单界面图1-1的界面中红色圆圈圈出的部分有五个选项,分别是Open VBA MacroEditor、Make VBA Macro...、Import VBA Macro...、Edit/Move/Delete VBA Macro…、Set Global Macro Path,这五个选项具备不同的功能。
① Open VBA Macro Editor当用户打开VBA宏编辑器,就可以在该界面中编辑新的VBA宏。
该界面不存在任何的模板程序,完全需要用户自己往里面书写程序,该界面示意图如图1-2所示。
通常情况下,该种方法使用较多。
注意:Sub Main和End Sub分别是宏的开始和结束,因此用户编写的宏程序必须在Sub Main和End Sub之间。
图1-2 打开VBA宏编辑器的界面② Make VBA Macro...当打开Make VBA Macro...选项的时候,会弹出图1-3所示的对话框。
在Macro 中输入新创建宏的名字。
接下来选择创建宏的性质——Control Macro 和Structure Macro,他们都是工程宏,也就是他们是只属于此CST工程,在其他CST 工程中将不能使用,如果选择了Make globally available复选框,那么创建的宏则是属于全局宏,可以在任意的CST工程中使用。
基于VB语言的EXCEL、CST以及HFSS等的二次开发代码1:vb创建xls表,并写入内容Set ExcelApp = CreateObject("Excel.Application") '创建EXCEL对象Set ExcelBook = ExcelApp.Workbooks.AddSet ExcelSheet = ExcelBook.Worksheets(1) '添加工作页ExcelSheet.Activate '激活工作页ExcelApp.DisplayAlerts = False="sheet1"ExcelSheet.Range("A1").Value = 100 '设置A1的值为100ExcelBook.SaveAs "d:\test.xls" '保存工作表msgbox "d:\test.xls创建成功!"ExcelBook.closeset excelApp=nothingset ExcelBook=nothingset ExcelSheet=nothing将以上代码copy到记事本存为"writexls.vbs"文件,可运行测试代码2:读execel文件Set ExcelApp = CreateObject("Excel.Application") '创建EXCEL对象Set ExcelBook = ExcelApp.Workbooks.open("d:\test.xls")Set ExcelSheet = ExcelBook.Worksheets(1)msgbox ExcelSheet.Range("A1").Value将以上代码copy到记事本存为"readxls.vbs"文件,可运行测试代码3:上述代码联合调试Dim ExcelApp,ExcelBook,ExcelSheetSet ExcelApp = CreateObject("Excel.Application") '创建EXCEL对象Set ExcelBook = ExcelApp.Workbooks.AddSet ExcelSheet = ExcelBook.Worksheets(1) '添加工作页ExcelSheet.Activate '激活工作页ExcelApp.DisplayAlerts = False="sheet1"ExcelSheet.Range("A1").Value = 100 '设置A1的值为100ExcelBook.SaveAs "D:\Study\VBS\Book1.xls" '保存工作表msgbox "d:\Book1.xls创建成功!"ExcelBook.closeset excelApp=nothingset ExcelBook=nothingset ExcelSheet=nothing'ExcelApp.WorkBooks.Close'ExcelApp.QuitSet ExcelApp = CreateObject("Excel.Application")ExcelApp.Visible = True'创建EXCEL对象Set ExcelBook = ExcelApp.Workbooks.open("D:\Study\VBS\Book1.xls")Set ExcelSheet = ExcelBook.Worksheets(1)msgbox ExcelSheet.Range("A1").ValueExcelApp.WorkBooks.CloseExcelApp.Quit若对支持VB脚本的软件进行二次开发,上述描述有借鉴意义。
CST使⽤教程1.1 软件介绍CST公司总部位于德国达姆施塔特市,成⽴于1992年。
它是⼀家专业电磁场仿真软件的提供商。
CST软件采⽤有限积分法(Finite Integration)。
其主要软件产品有:CST微波⼯作室——三维⽆源⾼频电磁场仿真软件包(S参量和天线)CST设计⼯作室——微波⽹络(有源及⽆源)仿真软件平台(微波放⼤器、混频器、谐波分析等)CST电磁⼯作室——三维静场及慢变场仿真软件包(电磁铁、变压器、交流接触器等)马飞亚(MAFIA)——通⽤⼤型全频段、⼆维及三维电磁场仿真软件包(包含静电场、准静场、简谐场、本振场、瞬态场、带电粒⼦与电磁场的⾃恰相互作⽤、热动⼒学场等模块)在此,我们主要讨论“CST微波⼯作室”,它是⼀款⽆源微波器件及天线仿真软件,可以仿真耦合器、滤波器、环流器、隔离器、谐振腔、平⾯结构、连接器、电磁兼容、IC封装及各类天线和天线阵列,能够给出S参量、天线⽅向图等结果。
1.2 软件的基本操作1.2.1 软件界⾯启动软件后,可以看到如下窗⼝:1.2.2 ⽤户界⾯介绍1.2.3 基本操作1).模板的选择CST MWS内建了数种模板,每种模板对特定的器件类型都定义了合适的参数,选⽤适合⾃⼰情况的模板,可以节省设置时间提⾼效率,对新⼿特别适⽤,所有设置在仿真过程中随时都可以进⾏修改,熟练者亦可不使⽤模板模板选取⽅式:1,创建新项⽬ File—new2,随时选⽤模板 File—select template2)设置⼯作平⾯⾸先设置⼯作平⾯(E dit-working Plane Properties )将捕捉间距改为1以下步骤可遵循仿真向导(Help->QuickStart Guide )依次进⾏1)设置单位(Solve->Units )合适的单位可以减少数据输⼊的⼯作量模板参数模板类型2)能够创建的基本模型3)改变视⾓快捷键为:视觉效果的改变:4)⼏何变换四种变换:5)图形的布尔操作四种布尔操作:例如:这⾥以“减”来说明具体操作1,两种不同材料的物体2,选择第⼀个物体(⽴⽅体)3点击⼯具栏上的图标或在主菜单选择Objects->Boolean->Subtract 4,选择第⼆个物体(圆球)5,回车确定6)选取模型的点、边、⾯对每种“选取操作”,都必须选择相应的选取⼯具。
cst差分信号激励功率-概述说明以及解释1.引言引言部分可以写为:1.1 概述CST差分信号激励功率是指在通信系统中传输信号时所采用的一种功率激励方式。
通过对传输信号进行差分编码,可以有效提高功率利用率和信号传输的稳定性。
本文将深入探讨CST差分信号激励功率的定义、应用和优势,旨在帮助读者更好地理解和应用这种新型的功率激励方式。
部分的内容1.2 文章结构:本文分为引言、正文和结论三部分。
在引言部分中,我们将介绍本文的概述、文章结构和目的。
在正文部分中,将详细讨论CST差分信号激励功率的定义、应用和优势。
最后,在结论部分中,将对本文进行总结,并展望CST差分信号激励功率的未来发展趋势。
通过这样的结构安排,可以全面系统地介绍CST差分信号激励功率的相关知识和应用,为读者提供清晰的阅读框架。
1.3 目的本文旨在探讨CST差分信号激励功率的概念、应用和优势。
通过对差分信号激励功率的定义和相关理论的阐述,旨在使读者对该概念有深入的了解。
同时,通过对其应用领域的分析,希望读者能够了解差分信号激励功率在实际工程中的重要性及作用。
最后,本文将探讨差分信号激励功率的优势,旨在让读者认识到其在工程应用中的价值与意义。
通过对这些内容的阐述,本文旨在使读者能够全面了解CST差分信号激励功率的概念与应用,从而为相关领域的研究与实践提供参考和指导。
2.正文2.1 CST差分信号激励功率的定义CST差分信号激励功率是指在电磁仿真中使用CST软件时,对差分信号进行激励所需的功率。
差分信号通常用于数字通信和数据传输中,其具有抗干扰能力强、抗辐射干扰强等特点。
在电磁仿真中,需要对差分信号进行激励,以获取其在特定条件下的电磁特性,包括传输特性、辐射特性等。
CST差分信号激励功率即为实现这一激励所需的功率大小。
在CST软件中,差分信号激励功率的定义涉及到对不同频率范围、功率密度、波形等参数的考量,以确保对差分信号的激励能够真实地反映其在实际应用中的工作状态。
cst激励源设置方法-概述说明以及解释1.引言1.1 概述激励源是指能够激发员工积极性和创造力,提高工作动力和效率的因素。
在现代企业管理中,如何有效地设置激励源成为了一个重要的课题。
CST激励源是一种通过各种方式来激发员工的潜力和能力,帮助他们更好地完成工作任务。
本文将探讨CST激励源的重要性和设置方法,以期为企业提供一些有益的参考和启示。
1.2 文章结构文章结构部分主要分为引言、正文和结论三个部分。
在引言部分,首先是概述对CST激励源的介绍,然后描述文章的结构和目的,为读者提供清晰的导向。
在正文部分,文章将详细探讨什么是CST激励源,CST激励源的重要性以及CST激励源设置方法。
通过这些内容,读者可以对CST激励源有一个全面的了解,并且学习到如何正确设置CST激励源。
在结论部分,将对整篇文章进行总结,强调实践意义以及对未来的展望,帮助读者更好地理解和应用CST激励源设置方法。
1.3 目的本文旨在介绍CST激励源的设置方法,通过深入讨论如何正确设置CST激励源,帮助读者了解这一技术的重要性,并掌握实际操作方法。
通过本文的阐述,读者将能够更好地应用CST激励源,提高系统的性能和稳定性,同时也为相关领域的研究工作提供参考和帮助。
本文旨在为读者提供一个全面的指南,帮助他们更好地理解和应用CST激励源技术。
2.正文2.1 什么是CST激励源:CST激励源是一种用于模拟射频/微波电路中的激励信号的设备。
在电磁场模拟软件CST中,激励源是用来模拟外部驱动信号或输入信号的工具。
其作用类似于实际电路中的信号源,可以为电路中的元件提供激励信号,以便进行仿真分析。
CST激励源可以模拟各种不同类型的激励信号,如正弦波、方波、脉冲等。
用户可以根据电路的实际情况选择合适的激励源类型,以满足仿真模拟的需求。
通过设置不同的参数,如频率、幅度、相位等,可以精确地控制激励信号的特性,从而更好地分析电路的性能和行为。
总之,CST激励源是电磁场模拟软件中非常重要的一部分,它为用户提供了方便快捷的仿真工具,帮助用户更好地理解和优化电路设计。
cst激励源设置方法全文共四篇示例,供读者参考第一篇示例:CST激励源是一种常见的激励措施,在企业管理中起着重要作用。
通过设置合理的CST激励源,可以激发员工的工作积极性,提高团队的凝聚力,从而促进企业的发展和壮大。
本文将从CST激励源的定义、设置方法以及管理实践等方面进行详细介绍。
一、CST激励源的定义1. 确定激励对象:企业需要确定激励的对象,即哪些员工可以享受到激励。
通常来说,企业可以根据员工的工作绩效、贡献程度、职位等因素进行筛选,并确定激励的对象范围。
2. 设定激励标准:企业需要根据员工的工作表现来设定激励的标准。
激励标准可以包括绩效考核结果、工作贡献度、团队协作能力等因素,通过设定明确的标准来评判员工的表现,有利于公平地进行激励分配。
3. 确定激励形式:接下来,企业需要确定激励的形式,即采取哪种方式来对员工进行激励。
常见的激励形式包括奖金、晋升、荣誉称号、学习机会等,企业可以根据员工的不同情况和需求来选择合适的激励形式。
4. 设立激励机制:在确定了激励对象、激励标准和激励形式之后,企业需要建立一套完善的激励机制,确保激励的有效实施。
激励机制可以包括激励计划的制定、激励过程的监督、激励效果的评估等环节,通过科学的机制来保障激励的顺利进行。
5. 不断优化激励源:企业需要不断优化和完善CST激励源的设置方法,及时调整激励标准和形式,以适应员工的变化需求和企业的发展变化。
只有不断地进行激励源的调整和优化,才能更好地发挥激励的效果,实现企业的长期发展目标。
在实际的企业管理实践中,CST激励源的设置和管理是一个复杂而重要的工作。
以下介绍几点CST激励源的管理实践建议:1. 全员参与:企业应该让所有员工参与到CST激励源的设计和制定中,充分听取员工的意见和建议,确保激励源的公平和公正性。
只有让员工参与到激励源的管理中,才能更好地激发员工的工作积极性和创造力。
2. 透明公开:企业在设立激励源时应该保持透明和公开,让员工清楚地了解激励的标准和机制,避免出现激励的不公平现象。
Faq-020802: 定义激励信号
1) CST MWS自带的激励信号
在整个时域仿真过程中,时域求解器通过时间信号的激励来计算空间上各个时刻的场值。
因此任何一个用于时域仿真的结构都至少应该含有一个用于场输入和输出的端口。
将仿真结构抽象为含有一个输入端口和一个输出端口的系统,根据输入信号i1,输出信号o2,1和反射信号o1,1,以及这些信号的频域值即可得系统特性,并最终设计出需要的系统结构。
因此,时域仿真过程中选择合适的激励信号是很重要的。
在MWS的时域求解过程中,定义激励端口后,系统会给出缺省的激励信号,该缺省的激励信号是由仿真的频率范围决定的高斯脉冲信号。
如上图所示,高斯脉冲信号的频谱仍是高斯函数。
高斯脉冲带宽是有限的,因此可以确保整个频带上网格的生成,有利于求解器在整个频带上对所有频点进行采样。
另外,高斯脉冲的频谱在带宽中不含有零点,故高斯脉冲信号可以在其频带上可以准确地计算S参量。
因此对S参量的求解等,该缺省的高斯脉冲就足够了。
微波工作室®的信号库中含有几个预先定义好的激励信号,可供用户选择。
完成结构建模,并设置好仿真频率等仿真参数后,点击导航树ÖExcitation Signals即可查看当前缺省设置下的激励信号。
如果对缺省的激励信号不满意,还可以在导航树的Excitation Signals上点击右键,选择右键菜单中的Load from Signal Library.....打开信号库(Load New Excitation Signal From Library)选择需要的激励信号。
在下图的信号库对话框中选择需要的激励信号后,点击Apply按钮即可完成信号的加载,在以后的仿真中,可以从求解器对话框中加载该信号对结构进行激励。
2) 自定义激励信号
如果信号库中的信号都不能符合仿真要求,您还可以自己定义需要的激励信号。
完成结构建模,并设置好仿真频率等仿真参数后,在导航树的Excitation Signals上点击右键选择右键菜单中的New Excitation Signal......
在打开的Excitation Signal对话框中选择Gaussian选项即可通过设定频率范围Fmin和Fmx来定义高斯脉冲信号,选择Rectangular选项即可通过指定信号的上升(Trise)、下降(Tfall)、保持(Thold)以及总激励时间(Ttotal)来定义矩形脉冲信号,并可以在Name栏中为定义的激励信号指定一个您喜欢的名字,这里我们定义一个矩形脉冲,并将名字命名为rectangular。
完成激励信号的设置后,点击OK按钮关闭对话框,即可在导航树中打开Excitation Signals文件夹,选择rectangular选项查看添加的激励信号。
选择User defined选项,将激活Edit.....。
点击该按钮即进入VBA编辑器。
在打开的VBA编辑器中您可以利用相应的VBA命令来定义需要的激励信号。
系统已经帮您定义好激励函数Function ExcitationFunction(dtime As Double) As Double您可以在该激励函数中利
2π的正弦函数。
用VBA命令定义需要的激励信号。
例如,我们在这里定义一个0到
在激励函数ExcitationFunction中输入正弦函数语句,如下图所示:
回到主视图中界面将Excitation Signal对话框中的Ttotal变为2*pi,并为该信号指定一个您喜欢的名字(这里我们定义为sin_func),点击OK按钮即完成激励信号的定义。
此时,导航树会自动指向新定义的激励信号sin_func。
至此,您已经成功地完成了激励信号的定义和加载,可以在随后的仿真中指定该信号对端口进行激励。
另外:为了方便您对编写的VBA激励信号进行调试查看,系统还预先定义好主函数Sub Main2。
例如,我们需要对VBA命令编写正弦激励信号进行调试查看,将其变为sin(x)*cos(x)则需要进行以下操作:(1)回到VBA编辑器界面,将主函数中的Sub Main2变为Sub Main,把最长激励时间tmax由缺省的10.0变为2*pi。
并且让激励信号函数Function ExcitationFunction=sin(x)*cos(x)
(2)点击Run Macro按钮,运行该程序。
(3)程序运行后,回到主视图中。
此时,导航树自动指向Excitation Signals->Userdefined Functions->sin_func_plot,此函数即是新定义的激励信号。
(4)激励信号符合要求后,请一定回到VBA编辑器界面,将主函数Sub Main更名为Sub Main2等其他的名字,并保存程序。
(5)、最后回到主视图中,点击Excitation Signal对话框中的OK按钮,关闭对话框,即成功完成信号的定义和加载,在以后的仿真中可以选择sin_func、rectangular或是default作为激励信号。
注意:主函数Sub Main只做调试用,故完成信号定义前一定要将其更名为Sub Main2等其他的名字。
如果您保持主程序Sub Main的名字不变,则激励信号sin_func将仍是调试以前定义的信号。
恭喜您!您现在已经可以在微波工作室®中随意定义需要的激励信号了!。