资源简介
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的vibe算法的运动目标检测代
- 多光谱图像评价指标含psnrrmse ergas s
-
自校正 调节器 控制器 matlab simuli
- 静态小波变换swt去噪matlab编程
- 移动机器人路径规划 几种A*算法改进
- 三大白平衡算法的统一实现gray world
- 路径规划算法matlab仿真
- matlab GUI录音程序
- MVDR 的Matlab程序
- 认知无线电中的能量检测算法matlab代
- \\精通MATLAB神经网络代码
- Matlab实现图像低通滤波
- TDMS转换成Mat文件
- 数字信号处理实验指导 MATLAB版本 书
- 人工鱼群算法matlab代码203035
-
详解MATLAB/SIMUli
nk 通信系统建模与 - 光学字符识别系统matlab版
- matlab使用gabor变换和神经网络实现人脸
- 空间三点求圆matlab源代码.zip
- 基于matlab的指针式仪表的识别与自动
- matlab求最大李雅普诺夫Lyapunov指数程序
- C均值聚类实验报告及MATLAB源程序
- matlab2018a版的指南
-
四旋翼matlab/simuli
nk程序 - 偏微分方程解的几道算例差分、有限
- erjiguanqianweispwm.mdl二极管钳位三电平逆
- Matlab官网5G toolbox介绍信息汇总.docx
- 基于A*算法的机器人路径规划的MATLA
- yalmipmatlab解决UC问题范例1补充.rar
- LEACH分簇算法
评论
共有 条评论