fluent文件怎么导入matlab,matlab读取fluent数据  转载

end

end

%绘图

figure(1)

plot(sym1(1,:),sym1(2,:),sym2(1,:),sym2(2,:))

figure(2)

plot(sym1(1,:),sym1(2,:),sym2(1,:),sym2(2,:),avg1(1,:),avg1(2,:),avg2(1,:),avg2(2,:));

legend('sym1','sym2','avg1','avg2');

hold on

plot(sym1(1,:),sym2(2,:)./sym1(2,:),avg1(1,:),avg2(2,:)./avg1(2,:));

legend('symrate','avgrate');

fid=fopen(['tec' name2],'w');

fprintf(fid,'TITLE = "heat transfer coefficient" \nVARIABLES =

"x/d", "yta or rate" \nZONE T="sym", I=%d,

F=POINT\n',length(sym2));

fprintf(fid,'.6f .6f',sym2);

fprintf(fid,'ZONE T="avg", I=%d, F=POINT\n',length(avg2));

fprintf(fid,'.6f .6f',avg2);

fclose(fid)

%用tecplot格式输出

fid=fopen('tecpost','w');

fprintf(fid,'TITLE = "heat transfer coefficient" \nVARIABLES =

"x/d", "yta or rate" \nZONE T="sym", I=%d,

F=POINT\n',length(sym1));

fprintf(fid,'.6f .6f',sym1);

fprintf(fid,'ZONE T="avg", I=%d, F=POINT\n',length(avg1));

fprintf(fid,'.6f .6f',avg1);

fclose(fid)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值