首页 >> CST教程 >> CST2013在线帮助系统 |
Template Based Post Processing OverviewThe Template Based Post Processing allows for flexible processing of 2D/3D Fields, complex 1D signals, real-valued 1D signals or scalar values (0D results). The Post Processing Templates are evaluated after every solver calculation, also during parametric sweeps or optimizations. The data are then stored in tables to allow flexible access to the parametric data.ContentsTypical Examples Framework to Control Result Templates Pre-Loaded Post Processing Templates Example for Post Processing Templates Use of Existing 1D Results for Further Calculation Defining a Name for a Template-Based Result Use Template-Based Result for Parameter Sweep and Optimization
Typical ExamplesTypical examples for Post Processing Result Templates are 1D results such as the following:
or 0D-Results (single real scalar values)
The following sections introduce the framework of this feature and present its application with an example.
Framework to Control Result TemplatesThe following picture shows the template-based post-processing dialog box which you can open by choosing Post Processing: Result TemplatesTemplate Based Post processing (SHIFT+P):
The dialog box contains the list of the currently defined sequence of post-processing operations. You can add new tasks to the list by first selecting the group of templates from the upper drop down list. Then you can select one of the templates belonging to this group from the lower drop down list. You can easily rename a task by clicking on the corresponding line and directly changing its name in the list. The Settings button allows you to change the parameters for the currently selected item. Clicking the Duplicate button creates a copy of the currently selected item. Some post-processing operations require a lot of common settings. Instead of repeatedly entering all those settings, you may simply duplicate an existing entry and modify a few settings afterward. The Evaluate button executes the currently selected task whereas the Evaluate All button executes the entire list from the beginning. All Post Processing Templates are automatically processed after each solver run including parametric sweeps and optimizations. The execution takes place in the order shown in the list. You may need to change the order (up / down arrow buttons), especially if tasks refer to previously obtained data.
The template based post-processing results are managed as follows:
After defining a Post Processing Template, the list of defined post processing operations shows the type of data which will be created by this template. A template of type "0D" will create a floating point number. A template of type "1D" will create a real-valued result curve and a template of type "1DC" will create a complex result curve. You can plot any result created by a Post Processing Template by selecting its item in the navigation tree. For a complex curve, the desired visualization mode (such as real part or imaginary part) may be chosen from the 1D Plot: Ribbon tab. Please refer to the Post Processing Template Layout page for more details about template data types.
Pre-Loaded Post Processing TemplatesThe standard installation includes an extensive list of pre-loaded Post Processing Templates. They can be mainly categorized as follows:
Besides operations on S-parameters, a variety of pre-loaded Post Processing Templates deals with the extraction of 1D or 0D data from fields (including farfields, etc.). We recommend you browse through the list of available templates to get an overview of what is already available. Each of the Post Processing Template’s settings dialog boxes contains a Help button which will open an online help system providing more information. Since all Post Processing Templares are written in VBA programming language, you can add your own specific post-processing operations. Please refer to the online documentation or contact technical support for more information.
Example for Post Processing TemplatesThe following example shows a typical Post Processing Template for CST MICROWAVE STUDIO. However, even if you are using another module, we still recommend reading through this example since it gives general procedures common to all modules. Let's assume you have simulated a device and want to directly obtain the VSWR and calculate the delivered Power (1-S11^2). You can take any example here that calculates S-parameters. You should first select the template group "S-Parameters" from the upper drop down list. Then you should select the "VSWR" - template from the lower drop down list.
Use of Existing 1D Results for Further CalculationIn a second step, leave the template group unchanged and select the template "S-Parameter". The S-parameter S11 is available from the navigation tree. However, since we would like to do further calculations with it, we have to explicitly load S11 as a task to be referred to later in another Post Processing Template.
After configuring the template in the S Parameter window (we are interested in the linear amplitude of S11), you will see the following two templates of type "1D" in your list:
If the project has already been calculated and results are present, you may click Evaluate All, resulting in two tables in the tree, which you can select and plot. Otherwise start the calculation with the transient solver, which at the end automatically evaluates all templates in the given order.
Processing of 1D ResultsNow we can calculate the delivered power (1-S11^2) using the Post Processing Template named Mix 1D Results. It can be found in the template group General 1D:
Selecting this task from the list opens the following window, where all previously defined 1D Results can be combined using VBA expressions. If we select A as a placeholder for S11, our expression would be 1-A^2.
Defining a Name for a Template-Based ResultBack in the template-based post-processing dialog box, you can set the name of the newly created task by clicking on the corresponding item and changing its name to Delivered Power. Clicking the button Evaluate will immediately add the corresponding result to the navigation tree Tables folder:
You can change the definition of any task by selecting the corresponding line and clicking Settings. Once defined, these extra results such as VSWR and Delivered Power will always be computed automatically once a simulation run is complete.
Use Template-Based Result for Parameter Sweep and OptimizationThe Parameter Sweep dialog box offers direct access to all Post Processing Templates. Once the parameter sweep is complete, the VSWR or Delivered Power results can be visualized as a function of the structure parameters:
Let's now assume that you want to optimize the Delivered Power averaged over the entire simulation frequency band. This can be achieved by adding a Post Processing Template calculating the mean value of the Delivered Power. Therefore you can select the template group General 1D and select the template 0D Value from 1D Result:
The results of 0D Post Processing Templates are also written to the Tables folder in the navigation tree after pressing the Evaluate button. In addition, the latest results are shown in the template-based post-processing dialog box directly:
A 0D Results task can also be used as the optimization goal of type 0D Result:
See alsoTemplate Based Post Processing Dialog, List of Preloaded Result Templates, File / Import Result Templates, Post Processing Template Layout HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |