fluent:how to get value for each node
2017-01-16 by:CAE仿真在線 來源:互聯(lián)網(wǎng)
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
相關(guān)標(biāo)簽搜索:fluent:how to get value for each node Fluent培訓(xùn) Fluent流體培訓(xùn) Fluent軟件培訓(xùn) fluent技術(shù)教程 fluent在線視頻教程 fluent資料下載 fluent分析理論 fluent化學(xué)反應(yīng) fluent軟件下載 UDF編程代做 Fluent、CFX流體分析 HFSS電磁分析