资源简介
HFSS-MATLAB-API接口是hfss和matlab联合仿真的接口,有自己写的端口。
代码片段和文件信息
% ----------------------------------------------------------------------------
% 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 we should set solve inside to be false and for
% other materials (in general) is should be true.
if (strcmp(Material ‘copper‘) | strcmp(Material ‘pec‘))
fprintf(fid ‘\t\t“SolveInside:=“ false)\n‘);
else
fprintf(fid ‘\t\t“SolveInside:=“ true)\n‘);
end;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-06-07 23:02 3dmodeler\
文件 2393 2005-05-28 06:46 3dmodeler\hfssAssignMaterial.m
文件 4421 2005-01-15 05:49 3dmodeler\hfssBox.m
文件 2051 2008-04-25 10:53 3dmodeler\hfssChangeProperty.m
文件 2999 2005-05-28 06:06 3dmodeler\hfssCircle.m
文件 2793 2005-01-15 05:51 3dmodeler\hfssCoaxialCable.m
文件 2990 2007-12-27 14:14 3dmodeler\hfssCone.m
文件 1942 2005-05-28 02:45 3dmodeler\hfssConnect.m
文件 1879 2008-07-22 14:11 3dmodeler\hfssCopy.m
文件 2902 2008-07-09 22:05 3dmodeler\hfssCreateRegularPolygon.m
文件 1192 2016-06-03 21:52 3dmodeler\hfssCreateRegularPolygonsolid.m
文件 2914 2005-05-28 05:43 3dmodeler\hfssCylinder.m
文件 5151 2005-01-21 01:41 3dmodeler\hfssDipole.m
文件 3637 2005-01-21 01:56 3dmodeler\hfssDuplicateAlongLine.m
文件 3488 2008-04-24 19:50 3dmodeler\hfssDuplicateAroundAxis.m
文件 1267 2005-05-28 05:19 3dmodeler\hfssDuplicateMirror.m
文件 3039 2008-03-10 22:18 3dmodeler\hfssEllipse.m
文件 2540 2005-01-21 01:58 3dmodeler\hfssHollowCylinder.m
文件 2622 2008-04-28 11:31 3dmodeler\hfssIntersect.m
文件 2485 2005-01-21 01:59 3dmodeler\hfssMove.m
文件 5245 2005-01-21 02:00 3dmodeler\hfssPLob
文件 4812 2005-05-28 02:00 3dmodeler\hfssPolygon.m
文件 3728 2005-05-28 02:30 3dmodeler\hfssPolyline.m
文件 3510 2005-01-21 02:15 3dmodeler\hfssRectangle.m
文件 2013 2004-11-21 13:36 3dmodeler\hfssRename.m
文件 2569 2008-05-05 22:55 3dmodeler\hfssRotate.m
文件 2170 2005-03-30 05:08 3dmodeler\hfssSetColor.m
文件 600 2005-05-28 06:43 3dmodeler\hfssSetSolveInside.m
文件 2466 2005-03-16 01:39 3dmodeler\hfssSetTransparency.m
文件 2544 2004-11-18 05:52 3dmodeler\hfssSphere.m
文件 2840 2008-03-10 14:48 3dmodeler\hfssSplit.m
............此处省略82个文件信息
评论
共有 条评论