淘宝官方店 推荐课程 在线工具 联系方式 关于我们 | |
微波射频仿真设计 Ansoft Designer 中文培训教程 | HFSS视频培训教程套装 |
|
首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档 |
Variables in Designer > Variable Types and ScopingVariables of three types can be defined: project variables, local variables, and parameter defaults. A project variable is available across all hierarchical levels of a project, and can be identified by its dollar sign ($) prefix, as in $C1. If, for instance, a project variable $C1 has been defined as equal to 4.32pF, a capacitance property for a component anywhere in that project can be set equal to 4.32pF by typing $C1 in the appropriate Value field. A local variable is available only within the design for which it is defined. If, for example, a local variable R2 has been defined as equal to 4316Ohms, a resistance property anywhere in that design can be set equal to 4316Ohms by entering R2 in the appropriate Value field. A local variable takes the same value across multiple instances of a design. If three subcircuit instances contain a local variable R2 that is defined as 4316Ohms, redefining R2 as 1625Ohms in any of the instances redefines R2 as equal to 1625Ohms in all three instances. A parameter default is a local variable with a default value that can be overridden in instances of a design. For example, if three subcircuit instances contain a parameter default C1 that is defined as equal to 11.3pF, C1 may be overridden as 11.8pF in the first instance, overridden as 10.9pF in the second, and left at its default value of 11.3pF in the third. A property value that has been set by means of a parameter default is called a passed parameter.
If you define a variable as an expression that evaluates to a constant, whether a project, local or parameter variable, the expression will be retained in the variable list, rather than being evaluated and replaced with a constant. This allows you to identify and modify the expression in the future.
Scoping The concept of the project space throughout which a variable applies is known as scoping. A project variable has global scope; local variables and parameter defaults have local scope. A third type of scoping, parent scope, is possible. In parent scoping, variables defined in a design are available within it and its subdesigns; that is, a subdesign inherits variables defined for its parent. Designer does not support parent scoping, with one important exception: Local variables and parameter defaults have parent scope within libraries. HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |