资源简介
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.

代码片段和文件信息
% ----------------------------------------------------------------------------
% function hfssAssignMaterial(fid object Material)
%
% Description :
% -------------
% Creates the VB script necessary to assign a material selection to an
% existing HFSS object.
%
% Parameters :
% ------------
% fid - file identifier of the HFSS script file.
% object - name of the object to which the material is to assigned.
% Material - the material to be assigned to the object. This is a string that
% should either be predefined in HFSS or defined using
% hfssAddMaterial(...)
%
% Note :
% ------
%
% Example :
% ---------
% fid = fopen(‘myantenna.vbs‘ ‘wt‘);
% ...
% hfssAssignMaterial(fid ‘FR4Mount‘ ‘FR4epoxy‘);
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% This file is part of HFSS-MATLAB-API.
%
% HFSS-MATLAB-API is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the Free
% Software Foundation; either version 2 of the License or (at your option)
% any later version.
%
% HFSS-MATLAB-API is distributed in the hope that it will be useful but
% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
% for more details.
%
% You should have received a copy of the GNU General Public License along with
% Foobar; if not write to the Free Software Foundation Inc. 59 Temple
% Place Suite 330 Boston MA 02111-1307 USA
%
% Copyright 2004 Vijay Ramasami (rvc@ku.edu)
% ----------------------------------------------------------------------------
function hfssAssignMaterial(fid Name Material)
fprintf(fid ‘\n‘);
fprintf(fid ‘oEditor.AssignMaterial _\n‘);
fprintf(fid ‘\tArray(“NAME:Selections“ _\n‘);
fprintf(fid ‘\t\t“Selections:=“ “%s“) _\n‘ Name);
fprintf(fid ‘\tArray(“NAME:Attributes“ _\n‘);
fprintf(fid ‘\t\t“MaterialName:=“ “%s“ _\n‘ Material);
% if the material is copper or pec we should set solve inside to be false and for
% other materials (in general) is should be true.
if (strcmp(Material ‘copper‘))
fprintf(fid ‘\t\t“SolveInside:=“ false)\n‘);
elseif (strcmp(Material ‘pec‘))
fprintf(fid ‘\t\t“SolveInside:=“ false)\n‘); % added by yueliang
else
fprintf(fid ‘\t\t“SolveInside:=“ true)\n‘);
end;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-22 10:08 hfssapi\
目录 0 2017-03-22 10:08 hfssapi\3dmodeler\
文件 2477 2007-12-27 15:38 hfssapi\3dmodeler\hfssAssignMaterial.m
文件 4421 2005-01-15 05:49 hfssapi\3dmodeler\hfssBox.m
文件 2051 2008-04-25 10:53 hfssapi\3dmodeler\hfssChangeProperty.m
文件 2817 2005-05-27 20:39 hfssapi\3dmodeler\hfssCircle.m
文件 2793 2005-01-15 05:51 hfssapi\3dmodeler\hfssCoaxialCable.m
文件 2990 2007-12-27 14:14 hfssapi\3dmodeler\hfssCone.m
文件 1942 2008-03-10 15:19 hfssapi\3dmodeler\hfssConnect.m
文件 1879 2008-07-22 14:11 hfssapi\3dmodeler\hfssCopy.m
文件 2902 2008-07-09 22:05 hfssapi\3dmodeler\hfssCreateRegularPolygon.m
文件 2914 2005-01-15 06:10 hfssapi\3dmodeler\hfssCylinder.m
文件 5151 2005-01-21 01:41 hfssapi\3dmodeler\hfssDipole.m
文件 3637 2005-01-21 01:56 hfssapi\3dmodeler\hfssDuplicateAlongLine.m
文件 3488 2008-04-24 19:50 hfssapi\3dmodeler\hfssDuplicateAroundAxis.m
文件 3775 2008-03-10 22:20 hfssapi\3dmodeler\hfssDuplicateMirror.m
文件 3039 2008-03-10 22:18 hfssapi\3dmodeler\hfssEllipse.m
文件 2540 2005-01-21 01:58 hfssapi\3dmodeler\hfssHollowCylinder.m
文件 2622 2008-04-28 11:31 hfssapi\3dmodeler\hfssIntersect.m
文件 2485 2005-01-21 01:59 hfssapi\3dmodeler\hfssMove.m
文件 5245 2005-01-21 02:00 hfssapi\3dmodeler\hfssPLob
文件 5348 2008-04-24 20:26 hfssapi\3dmodeler\hfssPolygon.m
文件 3510 2005-01-21 02:15 hfssapi\3dmodeler\hfssRectangle.m
文件 2013 2004-11-21 13:36 hfssapi\3dmodeler\hfssRename.m
文件 2569 2008-05-05 22:55 hfssapi\3dmodeler\hfssRotate.m
文件 2466 2005-03-16 01:39 hfssapi\3dmodeler\hfssSetTransparency.m
文件 2544 2004-11-18 05:52 hfssapi\3dmodeler\hfssSphere.m
文件 2840 2008-03-10 14:48 hfssapi\3dmodeler\hfssSplit.m
文件 2596 2005-01-21 02:20 hfssapi\3dmodeler\hfssSubtract.m
文件 2005 2008-03-19 19:49 hfssapi\3dmodeler\hfssSweepAlongPath.m
文件 3001 2008-03-10 15:55 hfssapi\3dmodeler\hfssSweepAlongVector.m
............此处省略41个文件信息
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论