fluent:how to get value for each node
2017-01-16 by:CAE仿真在线 来源:互联网
representing the profile files in excel is possible... but with a lot of work. Fluent prints the values all behind each other, so u must resort them in excel - and that might be impossible for a large number of cells. Someone send me a matlab file, that can read the Fluent profile file, it is attached.
___________
function [flaeche,vars,werte]=lies_fluent_profil(datei)
% Datei
fid=fopen(datei,'r');
% alle Fl
for f=1:inf
% Ende, wenn Dateiende erreicht
if feof(fid)
if length(flaeche)==1
werte=werte{1};
end
fclose(fid);
return
end
% Flbestimmen
zeile=fgetl(fid);
a=find(zeile==' ');
flaeche{f,1}=zeile(3:a(1)-1);
% Anzahl der Punkte bestimmen
n=str2num(zeile(a(end)+1:end-1));
for i=1:inf
zeile=fgetl(fid);
if length(zeile)==1
werte{f,1}=sortrows(dat,[1 2 3]);
clear dat,
break,
end
% Namen der Gren bestimmen
if f==1 && length(zeile)>1
vars{i,1}=zeile(2:end);
end
% Werte auslesen
dat(:,i)=fscanf(fid,'%f',n);
zeile=fgetl(fid);
zeile=fgetl(fid);
end end
相关标签搜索:fluent:how to get value for each node Fluent培训 Fluent流体培训 Fluent软件培训 fluent技术教程 fluent在线视频教程 fluent资料下载 fluent分析理论 fluent化学反应 fluent软件下载 UDF编程代做 Fluent、CFX流体分析 HFSS电磁分析