淘宝官方店 推荐课程 在线工具 联系方式 关于我们 | |
微波射频仿真设计 Ansoft Designer 中文培训教程 | HFSS视频培训教程套装 |
|
首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档 |
Designer File Formats > ALTER StatementsThe ALTER statement directs Nexxim to resimulate a netlist using changed values for parameters. The netlist may contain any number of ALTER statements.
The syntax is: $ Rest of netlist [.ALTER title2 ... .END
The ALTER statements should come after all other statements in the netlist except for the END statement. An ALTER block can contain the following kinds of statements: .DEL LIB .INCLUDE .IC .LIB .MODEL .NODESET .OPTIONS .PARAM .SUBCKT .. .ENDS .TEMP Analysis statements (see Analysis Controls for a list) Device instances, including subcircuits.
In the ALTER block, you can assign a new value to any device instance name, model name, netlist parameter name, or option name from the main netlist. You can also define new device instances, models, subcircuits, netlist parameters, and options. In the simplest case, the netlist contains just one ALTER statement. Nexxim first simulates the netlist from the beginning up to the first ALTER statement. Nexxim then reanalyzes the netlist, using any changes made in the ALTER statement, up to the END statement. The simulation includes the analyses specified in the original netlist, plus any analyses added in the ALTER block. All the analyses use the values of parameters, etc. set in the ALTER block. When more than one ALTER block is present, Nexxim first simulates the netlist from the beginning up to the first ALTER statement, as before. Nexxim then reanalyzes the netlist, using any changes made in the first ALTER block, up to the second ALTER statement. The simulation includes the analyses specified in the original netlist, plus any analyses added in the first ALTER block. All the analyses use the values of parameters, etc. set in the first ALTER block. Nexxim next re-analyzes the netlist, using any changes made in the second ALTER block, up to the next ALTER statement (or up to the END statement, if there are just two ALTER blocks). The simulation includes the analyses specified in the original netlist, plus any analyses added in the first ALTER block, plus any analyses added in the second ALTER block. All the analyses use the values of parameters, etc. set in the second ALTER block.
Nexxim continues resimulating the circuit until the last ALTER statement has been processed. Following is an example: * Test of ALTER blocks
For this example, Nexxim would first run a transient analysis with netlist parameter myval equal to 1000. After reading ALTER block first_one, Nexxim would then run a transient analysis and a harmonic balance analysis, both with myval equal to 2000. Finally, after reading ALTER block second_one, Nexxim would run a transient analysis, a harmonic balance analysis, and a linear network analysis, all with myval equal to 3000.
The .DEL LIB and LIB statements allow an ALTER block to control which library files are active for each variation on the netlist. Using these statements, you can avoid rerunning any previous analyses and only run the analyses specified within specific ALTER blocks. Put all the affected simulation commands into a library file referenced with a LIB statement, either in the outer netlist or in an ALTER block. Then an ALTER block uses DEL LIB to delete the unwanted statements.
Suppose the library file analyses.lib contains the following blocks: *analyses.lib
The netlist from the previous example could be modified as follows: * Test of ALTER blocks with Library file
With this netlist, Nexxim first runs the transient analysis specified in the library block T1, using netlist parameter myval equal to 1000. Next, after reading ALTER block first_one, Nexxim deletes the transient analysis library block T1 and executes the harmonic balance analysis specified in library block H1, using netlist parameter myval equal to 2000. Last, after reading ALTER block second_one, Nexxim deletes the harmonic balance analysis library block H1 and executes the linear network analysis specified in library block L1, using netlist parameter myval equal to 3000.
HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |