官方淘宝店 易迪拓培训 旧站入口
首页 > 仿真设计 > HFSS仿真设计论坛 > 有关VBS的讨论

有关VBS的讨论

05-08

   论坛中讨论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 安装以后在help里有一个scriping,就是讲怎么用vbs建模的

看来大家对这个东西也不是很懂呀.

需要安装vb吗?如何一边建模一边查看自动生成的程序?

现在比较流行的是matlab调用hfss建模,mtalab 中除过极少数的命令,比如说倒角,大部分的 命令都有了,可以说比较全了,而且matlab上手能力业很快

matlab在优化方面很有用,最近在学习。
我觉得可以先在hfss里面执行一下命令,利用record script记录下来
然后按照记录的文件利用matlab编写脚本就可以吧

有些操作 不会写到*.vbs中,如Createreport,这么办?

ansoft提供了一个viawizard的vbs生成工具,用来建过孔的模型,使用起来很方便。“lichao10424 ”小编感兴趣的“createreport”在那里面应该也有!(通过看vbs文件应该能够看出来,体现在操作界面上应该是勾选了slove----这个功能在V2.0上没有,3.0上提供了)。不过该软件有个bug那就是当过孔的antipad超过两个过孔的间距后,antipad部分就会内嵌到过孔的drill里面。

谢谢楼上的
我原来用的是V10,不记录createreport,V11记录

根据小编的介绍,结合viawizard来看,hfss V12版本的也应该支持createreport了。

希望大家多开发这版块,做仿真不写程序实在太慢了!

我是新人,本科毕设就要涉及复杂模型的建模,正在努力学习中

大家有没有用脚本文件仿真周期性的结构单元,小弟现在遇到点问题想求助。我在用主从边界和Floquent端口时,两个端口只能加上一个。另外的一加就说服务器出现意外情况。是不是破解的软件的权限的问题,还是其他的问题。希望高手帮助解决。谢谢!

有没有用VBS做并行运算的,我现在在用VBS做优化设计,但是速度太慢了,想通过并行运算提高速度。

学习中,大家多多讨论啊,有必要建个群呢!

请问有谁知道 Ansoft HFSS 的VBS怎么和 MATLAB相结合,我想用遗传算法来优化每一次HFSS仿真出的结果 ?

Top