⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hfsssweeparoundaxis.m

📁 用matlab调用HFSS代码hfssapi.rar
💻 M
字号:
% ----------------------------------------------------------------------------% function hfssSweepAroundAxis(fid, Object2D, Axis, SweepAngle, ...%                             [DraftAngle = 0 deg], [DraftType = 'Round'])%% Description:% ------------% Creates the VB Script necessary to sweep a 2D object around the given axis% to create a 3D object. % % Parameters:% -----------% fid        - file identifier of the HFSS script file.% Object2D   - name of the 2D Object to be sweeped.% Axis       - axis around which Object2D is to be sweeped.% SweepAngle - angle (in *deg*) over which the object is to be sweeped.% DraftAngle - angle (in *deg*) to which the object's profile, or shape is %              expanded (or contracted) as it is swept.% DraftType  - set it to either 'Round' (default), 'Extended' or 'Natural'%              (consult the HFSS Help for more info).%							 % ----------------------------------------------------------------------------% ----------------------------------------------------------------------------% 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 hfssSweepAroundAxis(fid, Object, Axis, SweepAngle, ...                             DraftAngle, DraftType)% arguments processor.if (nargin < 4)	error('Not enough arguments !');elseif (nargin < 5)	DraftAngle = 0;	DraftType = 'Round';elseif (nargin < 6)	DraftType = 'Round';end;% default arguments.if isempty(DraftAngle)	DraftAngle = 0;end;if isempty(DraftType)	DraftType = 'Round';end;fprintf(fid, '\n');fprintf(fid, 'oEditor.SweepAroundAxis _\n');fprintf(fid, '\tArray("NAME:Selections", "Selections:=", "%s"), _\n', Object);fprintf(fid, '\tArray("NAME:AxisSweepParameters", _\n');fprintf(fid, '\t\t"DraftAngle:=", "%fdeg", _\n', DraftAngle);fprintf(fid, '\t\t"DraftType:=", "%s", _\n', DraftType);fprintf(fid, '\t\t"SweepAxis:=", "%s", _\n', Axis);fprintf(fid, '\t\t"SweepAngle:=", "%fdeg")\n', SweepAngle);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -