资源简介
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;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15141 2005-02-01 11:58 hfssapi\COPYING
文件 1269 2005-02-01 13:11 hfssapi\README
文件 4405 2007-12-26 10:49 hfssapi\examples\dipole_example.m
文件 3718 2005-03-17 01:13 hfssapi\examples\folded_dipole.m
文件 9718 2005-01-21 02:42 hfssapi\doc\dipole_balun.jpg
文件 10841 2005-03-17 00:59 hfssapi\doc\hfss-matlab-api.html
文件 3084 2005-01-21 02:54 hfssapi\doc\st
文件 3988 2005-01-15 05:27 hfssapi\boundary\hfssAssignLumpedPort.m
文件 2702 2007-12-27 11:01 hfssapi\boundary\hfssAssignPE.m
文件 2113 2005-01-15 05:44 hfssapi\boundary\hfssAssignRadiation.m
文件 4367 2005-01-15 05:45 hfssapi\boundary\hfssAssignWavePort.m
文件 2447 2005-01-15 05:50 hfssapi\boundary\hfssCircularPort.m
文件 4181 2007-12-29 20:15 hfssapi\boundary\hfssAssignWaveport_face.m
文件 2676 2007-12-29 20:53 hfssapi\boundary\hfssAssignPE_face.m
文件 2815 2008-04-25 10:25 hfssapi\boundary\hfssEditSources.m
文件 2473 2008-07-22 13:57 hfssapi\boundary\hfssAssignRadiation_face.m
文件 2376 2008-07-22 13:54 hfssapi\boundary\hfssAssignRadiation_face.asv
文件 3515 2005-01-15 03:39 hfssapi\analysis\hfssExportNetworkData.m
文件 3222 2005-01-15 05:31 hfssapi\analysis\hfssInsertSolution.m
文件 3574 2005-01-15 03:37 hfssapi\analysis\hfssInterpolatingSweep.m
文件 1655 2005-01-15 03:45 hfssapi\analysis\hfssSolveSetup.m
文件 2511 2007-12-29 22:02 hfssapi\analysis\hfssFarFieldSphere.m
文件 2593 2007-12-30 13:19 hfssapi\analysis\hfssExportRadiationParameters.m
文件 1987 2007-12-30 14:28 hfssapi\analysis\hfssExportReport.m
文件 4163 2008-04-28 10:30 hfssapi\analysis\hfssCreateReport.m
文件 1941 2008-04-28 10:51 hfssapi\analysis\hfssExportToFile.m
文件 2477 2007-12-27 15:38 hfssapi\3dmodeler\hfssAssignMaterial.m
文件 4421 2005-01-15 05:49 hfssapi\3dmodeler\hfssBox.m
文件 2817 2005-05-27 20:39 hfssapi\3dmodeler\hfssCircle.m
文件 2793 2005-01-15 05:51 hfssapi\3dmodeler\hfssCoaxialCable.m
............此处省略50个文件信息
- 上一篇:ICP算法matlab程序
- 下一篇:Matlab贝叶斯分类器 (Bayers)程序
相关资源
- Matlab贝叶斯分类器 (Bayers)程序
- ICP算法matlab程序
- 自适应均衡技术的研究及MATLAB的仿真
- 2014 Matlab免安装版
- matlab遗传算法geneticbx工具箱和安装步
- 用MATLAB求解微分方程及微分方程组
- DSSS直接序列扩频通信系统仿真Matlab程
- Multi_frequency_heterodyne_phase_solution.rar
- PSO工具箱
- 遗传优化算法,matlab实现程序,有详
- 粒子群优化算法,matlab实现程序,有
- 精密单点定位的Matlab code
- matlab实现的等间隔量化的HSV颜色特征
- 灰度图像的二维Otsu自动阈值分割法
- 帧内预测matlab程序
- flapping,UVLM,matlab code
- l1-magic工具箱代码
- matlab 数据集 banana
- 放大器模型的matlab仿真实现
- matlab巴特沃斯滤波器m代码
- matlab通信工具箱教程
- matlab2011a种子
- idma 的程序,用matlab实现的idma的系统
- RFID系统MATLAB仿真
- 小游戏贪吃蛇的matlab编程
- CSMA/CA协议matlab代码模拟仿真
- 粒子群算法优化BP神经网络权值的程序
- 用粒子群算法优化支持向量机的matl
- 外点牛顿罚函数优化matlab代码
- S曲线 MATLAB仿真通过
评论
共有 条评论