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


開放分享:優(yōu)質有限元技術文章,助你自學成才

相關標簽搜索:fluent:how to get value for each node Fluent培訓 Fluent流體培訓 Fluent軟件培訓 fluent技術教程 fluent在線視頻教程 fluent資料下載 fluent分析理論 fluent化學反應 fluent軟件下載 UDF編程代做 Fluent、CFX流體分析 HFSS電磁分析 

編輯
在線報名:
  • 客服在線請直接聯(lián)系我們的客服,您也可以通過下面的方式進行在線報名,我們會及時給您回復電話,謝謝!
驗證碼

全國服務熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓QQ咨詢:點擊咨詢 點擊咨詢
項目QQ咨詢:點擊咨詢
email:kf@1cae.com