现在位置:首页 > 微波射频和天线设计 > HFSS > 使用讨论 > 有关VBS的讨论

有关VBS的讨论

录入:mweda    点击:
论坛中讨论HFSS使用的比较多,但是很少有人讨论VBS的。在HFSS V9.0以前的版本,都是用宏Macro来实现HFSS的自动化建模和仿真,众所周知,宏有着其自身的局限性,但还是给HFSS的使用者们带来了很大的自由度。随着教本语言的普及,在HFSS V9及后续版本中,宏被VBS取代了。在建模和仿真的过程中,尤其是需要重复操作的时候,VBS显现出了极大的优越性。看见有文章用批处理来实现HFSS的排队计算,着在VBS中是很容易实现的。另外,HFSS的优化也是不尽如人意的,但是利用VBS可以自己编程实现各种优化。虽然VBS有着这么多优点,但是需要自己编程,稍微有点不方便,不知道是不是因为这个原因,VBS没有收到重视。

同意版主的说法。
看来版主对VBS有很一定的研究哦,要用好VBS首先HFSS里的基本功肯定不差了。
我前一阵也照着书学了一点点,感觉好麻烦,要自己编程来实现,所以又要先学一点VBS的知识,还要具体学HFSS中怎么用。要一定耐心才能学得下去。
如果是对仿真的算例进行优化,也没有必要全部自己从头写到尾,可以先用HFSS的记录功能生成基本VBS文件,然后再在现有的文件上修改---应该可以这样吧?---我对这个也没有实践过!
希望能和版主继续交流。
还有会的朋友也发表一下自己的意见吧!

对的,我就是想用VBS的什么功能,就在HFSS下大致弄一下,同时记录VBS,然后只要对生成的VBS文件进行修改就行了,毕竟只是使用其功能,不是研究,呵呵

个人的感觉是在自动建模和优化方面,VBS真的是很方便的,很多问题只要for循环和if then 判断就行了

看来我还需要提高,呵呵
到现在不知VBS为何物
呵呵

如果HFSS内建模,一般会用VBS做,这会比较方便和准确
建模和仿真流程,用VBS做适应的控制,会比较容易控制

呵,论坛上又多了一位高手讨论,兴奋,一直为找不到交流的朋友发愁,只有大家相互取长补短,才能进步。
用过VBS的朋友请发表一下自己看发吧,大家都讨论讨论!在讨论过程中自己能学到不少东西的。
————————————————
转一个文章 ----大家可以参考一下,这应该算是HFSS的高级操作了
——————————————————
HFSS-MATLAB-Scripting-API
About
HFSS-MATLAB-API is a library toolbox to control Ansoft HFSS from MATLAB using the HFSS Scripting Interface. This tool provides a set of MATLAB functions to create 3D objects in HFSS by generating the required HFSS Scripts. Basically, anything that can be done in HFSS user interface and the 3D Modeler can be done with this library of functions. Once a script is generated in this manner, it can be run in HFSS to generate the 3D model, solve it and export the data. You create your entire design in MATLAB and basically use HFSS to solve it.
I wrote this scripting interface out of necessity. There is really no other easy way to design Tapered Slot antennas or other complex antenna structures (that can otherwise be represented easily using mathematical equations) directly using the HFSS 3D Modeler user interface
If you are already well familiar with HFSS and MATLAB and wish to skip the following description, you are welcome to take a look the this
example of dipole antenna design as a demonstration.
.....
Status
Update (03/15/05)
I recently made the following additions to the package. You can download it from
here.
Added the following functions:
hfssSweepAlongAxis(.)
hfssSetTransparency(.)
Added a folded dipole example M-file in the examples directory.
Release
The current status is version 0.1. Only minimal error checking is implemented and hence read the help carefully before you use the provided functions (detailed help is provided for each function, use help [function name] in MATLAB to access it). The current version is released under the GNU GPL and can be downloaded from here.
Most of the functions (not related to the 3D modeler) work only with the "Driven Modal" solution type. There are a lot of features in the HFSS scripting interface that I haven't "wrapped" yet into MATLAB, simply because there are so many of them ! But, right now, the most important advantage of using MATLAB for this purpose is the use of scripting for modelling complex 3D objects, and creating resuable and modular script-based geometric objects, which is well-supported by the current version of the API.
原贴
点击打开

不好意思,这断时间都 比较忙,没什么空去看,VBS我是在用,但也不是精通,需要跑跑HFSS才能了解你的情况,不过要等等了

VBS太麻烦了,建一个简单的模型就需要一大堆语句,深刻怀念8.0中的宏语言,当初解决了我不少建模问题。

可以参考hfss的api函数。上面对脚本编程介绍的比较多。

声明:网友回复良莠不齐,仅供参考。如需更专业、系统的学习HFSS,可以购买本站资深专家讲授的HFSS视频培训课程

上一篇:空气盒尺寸的问题
下一篇:HFSS中微带天线边界的设置

HFSS视频培训课程