% ----------------------------------------------------------------------------
% function hfssRotate(fid, ObjectList, Axis, RotAngle)
%
% Description :
% -------------
% Creates the VB Script necessary to duplicate specified parts according to
% a mirror plane.
%
% Parameters :
% ------------
% fid - file identifier of the HFSS script file.
% ObjectList - a cell-array of strings that represent the objects to be
% cloned.
% Axis - axis around which Object is to be rotate.
% RotAngle - angle (in *deg*) over which the object is to be rotate. 2020,6,30参数化RotAngle!
%
% Note :
% ------
% If you have used this 3D modeler feature before, then you will probably
% realize that if the original object (to be cloned) has the name 'Name',
% then the cloned objects will have names 'Name1', 'Name2', ... This applies
% to the cloned boundaries and excitations also.
%
% Example :
% ---------
% fid = fopen('myantenna.vbs', 'wt');
% ...
%
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
% 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 2008, Yueliang (yue_liang423@163.com)
% -------------------------------------------------------------------------
% ---
function hfssRotate(fid, ObjectList, Axis, RotAngle)
nObjects = length(ObjectList);
% Preamble.
fprintf(fid, '\n');
fprintf(fid, 'oEditor.Rotate _\n');
fprintf(fid, 'Array("NAME:Selections", _\n');
% Object Selections.
fprintf(fid, '"Selections:=", "');
for iObj = 1:nObjects,
fprintf(fid, '%s', ObjectList{iObj});
if (iObj ~= nObjects)
fprintf(fid, ',');
end;
end;
fprintf(fid, '"), _\n');
% Duplication Around Axis.
fprintf(fid, 'Array("NAME:RotateParameters", _\n');
fprintf(fid, '"RotateAxis:=", "%s", _\n', Axis);
%fprintf(fid, '"RotateAngle:=", "%fdeg") \n', RotAngle);
if isnumeric(RotAngle)
fprintf(fid, '"RotateAngle:=", "%fdeg") \n', RotAngle);
else
fprintf(fid, '"RotateAngle:=", "%s", _\n', RotAngle);
end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
HFSS-MATLAB-API工具库 (112个子文件)
microwave_patch.asv 4KB
hfssRectangle.asv 4KB
hfssDuplicateAroundAxis.asv 4KB
hfssHelix.asv 3KB
hfssConicalHorn.asv 2KB
hfssCreateRegion.asv 2KB
hfssAddOptVar.asv 1KB
temHornPoints.csv 190B
hs_err_pid4540.log 25KB
hfssCreateReport.m 8KB
temHorn.m 6KB
hfssdrawline.m 6KB
hfssdrawline1.m 5KB
hfssPolygon.m 5KB
hfssdrawline3.m 5KB
hfssBox.m 5KB
hfssPLObject.m 5KB
dipole_example.m 5KB
hfssDipole.m 5KB
hfssAssignFloquetPort.m 5KB
folded_dipole.m 5KB
hfssWireConnection.m 5KB
hfssDuplicateAlongLine.m 5KB
hfssExecuteScript.m 4KB
hfssCylinder.m 4KB
hfssCreateRegularPolygon.m 4KB
hfssdrawline2.m 4KB
hfssAssignWavePort.m 4KB
microwave_patch.m 4KB
hfssCircle.m 4KB
hfssRectangle.m 4KB
hfssCreateReport.m 4KB
hfssAssignLumpedPort.m 4KB
hfssDuplicateAroundAxis.m 4KB
hfssDuplicateMirror.m 4KB
hfssPolyline.m 4KB
hfssInterpolatingSweep_y.m 4KB
hfssFarField.m 4KB
hfssInterpolatingSweep.m 3KB
hfssHelix.m 3KB
hfssExportNetworkData.m 3KB
hfssInsertSolution.m 3KB
hfssEllipse.m 3KB
hfssMove.m 3KB
hfssAssignLengthOp.m 3KB
hfssDetachFaces.m 3KB
hfssSweepAlongVector.m 3KB
hfssCone.m 3KB
rectangularPatch.m 3KB
hfssAssignSlave.m 3KB
hfssAssignSlave_y.m 3KB
hfssEditSources.m 3KB
hfssSplit.m 3KB
hfssEquationBasedCurve.m 3KB
hfssCoaxialCable.m 3KB
hfssAssignMaster.m 3KB
hfssAssignRadiation.m 3KB
hfssRotate_y.m 3KB
hfssAssignMaster_y.m 3KB
hfssSweepAroundAxis.m 3KB
hfssInsertDesign.m 3KB
hfssAssignPE.m 3KB
hfssIntersect.m 3KB
hfssSubtract.m 3KB
hfssExportRadiationParameters.m 3KB
hfssOpenProject.m 3KB
hfssOpenProj.m 3KB
hfssSaveProject.m 3KB
hfssRotate.m 3KB
hfssSphere.m 2KB
hfssHollowCylinder.m 2KB
hfssAssignMaterial.m 2KB
hfssSetTransparency.m 2KB
hfssCircularPort.m 2KB
DuplicateAroundAxis.m 2KB
hfssAddMaterial.m 2KB
hfssUnite2.m 2KB
hfssAddMaterial.m 2KB
hfssInsertFarFieldSphereSetup.m 2KB
hfssCreateRelativeCS.m 2KB
hfssSetColor.m 2KB
hfssAddproperty.m 2KB
hfssChangeProperty.m 2KB
hfssExportToFile.m 2KB
hfssRename.m 2KB
hfssSweepAlongPath.m 2KB
hfssExportReport.m 2KB
hfssNewProject.m 2KB
hfssCoverLines.m 2KB
hfssConicalHorn.m 2KB
hfssConnect.m 2KB
hfssCreateRegion.m 2KB
hfssExportToFile.m 2KB
hfssCopy.m 2KB
hfssChangeProperty_line.m 2KB
hfssCloseActiveProject.m 2KB
hfssThickenSheet.m 2KB
hfssSolveSetup.m 2KB
hfssVariableChange.m 2KB
hfssRegion.m 1KB
共 112 条
- 1
- 2
资源评论
松盖环清韵
- 粉丝: 7
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- JAVA源码swing-explorer(Swing开发辅助工具)
- H3C G5服务器H460 P460系列阵列卡UEFI下RAID配置指南
- 图像分类:猫、狗图像识别数据集(包括划分好的数据【文件夹保存】、类别字典文件)
- JAVA源码swiftp(Android上的FTP服务器SwiFTP)
- 单相三电平NPC逆变器 载波层叠 可选SVPWM和SPWM 可提供参考文献
- 永磁同步电机非线性磁链观测器-源代码 零速闭环启动效果好,快速收敛, 低速效果好,扭力大,优于VESC 根据非线性磁链观测器模
- JAVA源码SSH服务端ApacheSSHD
- 《R语言数据挖掘》第三章+R的数据可视化.ppt
- JAVA源码SQL解析类库SQLJEPJAVA源码SQL解析类库SQLJEP
- fscan 一款内网综合扫描工具
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功