CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   OpenFoam Plotting Issue (https://www.cfd-online.com/Forums/openfoam-solving/203237-openfoam-plotting-issue.html)

H@rry June 21, 2018 09:02

OpenFoam Plotting Issue
 
Good evening openFoamers. I have OpenFoam for Windows and i have an issue on how to plot residuals graphs. I searched for that and i found only for plotting in linux. Can anyone help ? Thank you.

student666 June 22, 2018 00:15

You should use the CLI commands (see user guide) 6.2.1.7

https://cfd.direct/openfoam/user-gui...#x31-2330006.2

and plot with gnuplot the .dat file e.g:

Code:

set terminal wxt
set title "Ux residuals" 
set logscale y 
set grid
set ylabel "Residuals"
set xlabel "Iterations"
plot 'residuals.dat' u 1 2 w l (explanations of the command line? use google for gnuplotting)


RobertHB June 22, 2018 04:26

Hello Harry,
can you use the residual function object? See e.g. here (section 6.3.4, for OF 5.x) and here (for OF v1712).

H@rry June 25, 2018 13:48

Thank you very much. I will check it now and i will reply to you. I am sorry for the delay.

H@rry June 25, 2018 13:57

Mr. student666, I checked your advice but still nothing happens. I try to plot Ux versus the height of my channel and I can't do it. Your help would be greatful if you know how to do it.

Thank you very much

H@rry June 25, 2018 14:00

Mr Robert, the function is "streamlines" in my case.

RobertHB June 26, 2018 04:29

Quote:

Originally Posted by H@rry (Post 697174)
Mr Robert, the function is "streamlines" in my case.

I'm sorry, but i don't understand your quote. Obviously streamlines is something different than residuals.

H@rry June 26, 2018 05:26

Mr Robert, I can use the residual function but i can't plot Ux versus height of the channel in different pissitions of x (along the length and height of the channel).

RobertHB June 26, 2018 05:35

Quote:

Originally Posted by H@rry (Post 697264)
[...]but i can't plot Ux versus height of the channel in different pissitions of x (along the length and height of the channel).

Which is no area of application of the residual function object. To plot profiles of Ux (or any other variable) take a look at the singleGraph function (see section 6.3.2.). For postprocessing you can use paraview's plot over line filter.

H@rry June 26, 2018 08:15

I will check it out. Thank you very much.


All times are GMT -4. The time now is 21:30.