Warning: file(datafile/online) [function.file]: failed to open stream: No such file or directory in /home/all2one/public_html/bbs/topic.php on line 200
阳光精品论坛 > 『 CFD 专栏 』 > bladegen 生成的 hub shroud profile 整体平移操作 matlab
 
欢迎您,客人:高级登录 | 注册 | 取回密码 新贴 | 发帖 | 会员 | 搜索 | 帮助

阳光精品论坛 >> 『 CFD 专栏 』 >> bladegen 生成的 hub shroud profile 整体平移操作 matlab本主题已阅读2479次,回复0
发表一个新主题 回复贴子
批量引用回复把本贴加入论坛收藏夹向管理员报告帖子问题
作者 | 本页主题: bladegen 生成的 hub shroud profile 整体平移操作 matlab 上一个主题:经典的特征边界条件文献 下一个主题:流固耦合几篇文章  
even2004 

 
 究级天王 [荣誉]
信息:坛主标志 该用户目前离线
来自:未填 align=absmiddle
发贴:1239 贴 查找所有我发的帖子
积分:244
货币:5814 阳光币
注册时间:2008/12/31
 查看会员个人资料资料 将其加入好友列表好友 发短信息消息 引用回复这个贴子引用直接回复贴子回复

bladegen 生成的 hub shroud profile 整体平移操作 matlab


bladegen 生成的 hub shroud profile 整体平移操作;
直接操作 生成的文件, z坐标 加30的例子.
附件 http://www.MegaShare.com/2158087

n = 16;
大致代码如下所示

fid = fopen('BladeGen_profile1.curve');
fid1 = fopen('BladeGen_profile.curve','w+');

while ~feof(fid)
   s1 = fgetl(fid);
   % if s1 ==''
   if isempty(s1)
       fprintf(fid1,'n');
       % 换行
   elseif s1(end) =='%'
       fprintf(fid1,'%sn',s1);
   elseif s1(end) =='E'
       s2 = s1;
       s3 =s2(1:n);
       s4 = str2double(s3);
       s3=s2(n+1:2*n);
       s5 = str2double(s3);
       s3=s2(2*n+1:3*n);
       s6 = str2double(s3);
       
       fprintf(fid1,formatstr,[s4,s5,s6+zz]);
       s3=s2(3*n+1:end);
       fprintf(fid1,'%sn',s3);
   else
       
       s2 = s1;
       s3 =s2(1:n);
       s4 = str2double(s3);
       s3=s2(n+1:2*n);
       s5 = str2double(s3);
       s3=s2(2*n+1:3*n);
       s6 = str2double(s3);
       
       fprintf(fid1,formatstr1,[s4,s5,s6+zz])
       
   end
end

fclose(fid)
fclose(fid1)


修改贴子编辑 |  发表于 2010/05/25/07:36  |  1 层 

发表一个新主题 回复贴子 推荐给朋友 可打印版本 文章模式 
论坛跳转:


  快速回复  

文章内容:

HTML 代码不可用


BMB代码选项:
[img] - 开启
[flash] - 开启
[size] - 开启

上传附件[还可传0个]:
开启

最大字节: 200000 字节
最少发帖: 20 篇

标题:


  [使用 Ctrl+Enter 直接提交贴子]

你的用户名  你的密码: 忘了密码?

阳光精品论坛 >> 『 CFD 专栏 』 >> bladegen 生成的 hub shroud profile 整体平移操作 matlab本主题已阅读2479次,回复0



本论坛言论纯属发表者个人意见,与 阳光精品论坛 立场无关 联系我们
Powered by BMForum v5.0 Skin by Bob Shen