CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to get value for each node. (https://www.cfd-online.com/Forums/fluent/39278-how-get-value-each-node.html)

Mie January 17, 2006 02:23

how to get value for each node.
 
I would like to ask how i can get velocity value for each node (meshing) when i using Fluent 6.1 software.I am created my object using gambit and try to predic velocity value and vortex shedding behind the building/bluff body.I hope u can tech me how to get that value.

Ralf Schmidt January 26, 2006 06:28

Re: how to get value for each node.
 
use file->write -> profile

There is a surface that represents the mesh. Usualy it is named "default-interior:1". For every volume in your geometry there is this surface.

Then select the values that should be written (velocity,...) and thats it!

Ralf

mIe January 28, 2006 09:41

Re: how to get value for each node.
 
Thank you very much Ralf.Just one question here.If i want to get all value for every node (for one surface), can i represent it in m.excell.

Second question.Can i put velocity value to each node in my surface when i done my meshing?

Ralf Schmidt January 30, 2006 02:16

Re: how to get value for each node.
 
Hi,

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.

The second question, if there is a possibility to use Fluent valus in gambit?? I don't thing so...

Best wishes Ralf

___________

function [flaeche,vars,werte]=lies_fluent_profil(datei)

% Datei öffnen

fid=fopen(datei,'r');

% alle Flächen

for f=1:inf

% Ende, wenn Dateiende erreicht

if feof(fid)

if length(flaeche)==1

werte=werte{1};

end

fclose(fid);

return

end

% Fläche bestimmen

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 Größen 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

mie February 1, 2006 23:13

Value for every single node
 
Thanks Ralf for the coding..Ralf,can i want put value for each node at my surface,i mean in Fluent. Ralf, if if have any problem,i will email u again..i quiet new in this field. i hope u can tech me...

mie February 8, 2006 22:33

Stremline problem
 
hai, I would like to asking u about stremline.So can u tech me how to display the stremline in fluent.I want see structure of vortex behind the bluff body....

Please help me...

machaae July 20, 2010 17:39

Quote:

Originally Posted by Ralf Schmidt
;128287
Hi,

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.

The second question, if there is a possibility to use Fluent valus in gambit?? I don't thing so...

Best wishes Ralf

___________

function [flaeche,vars,werte]=lies_fluent_profil(datei)

% Datei öffnen

fid=fopen(datei,'r');

% alle Flächen

for f=1:inf

% Ende, wenn Dateiende erreicht

if feof(fid)

if length(flaeche)==1

werte=werte{1};

end

fclose(fid);

return

end

% Fläche bestimmen

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 Größen 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

Hi Ralf,

I was reading this post because I need to plot contours of fluent data using matlab. This piece of code works well, I tried, but it just open the data file and I dont know waht do after. Do you know how to include a contours function? or what to do after reading the profile file and then to plot something?

thanks a lot!


All times are GMT -4. The time now is 19:32.