CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OpenFoam Plotting Issue

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By student666
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2018, 10:02
Smile OpenFoam Plotting Issue
  #1
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
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.
H@rry is offline   Reply With Quote

Old   June 22, 2018, 01:15
Default
  #2
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
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)
H@rry likes this.
student666 is offline   Reply With Quote

Old   June 22, 2018, 05:26
Default
  #3
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
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 likes this.
RobertHB is offline   Reply With Quote

Old   June 25, 2018, 14:48
Default
  #4
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
Thank you very much. I will check it now and i will reply to you. I am sorry for the delay.
H@rry is offline   Reply With Quote

Old   June 25, 2018, 14:57
Default
  #5
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
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 is offline   Reply With Quote

Old   June 25, 2018, 15:00
Default
  #6
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
Mr Robert, the function is "streamlines" in my case.
H@rry is offline   Reply With Quote

Old   June 26, 2018, 05:29
Default
  #7
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by H@rry View Post
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.
RobertHB is offline   Reply With Quote

Old   June 26, 2018, 06:26
Default
  #8
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
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).
H@rry is offline   Reply With Quote

Old   June 26, 2018, 06:35
Default
  #9
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by H@rry View Post
[...]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.
RobertHB is offline   Reply With Quote

Old   June 26, 2018, 09:15
Default
  #10
New Member
 
Harry
Join Date: Feb 2018
Posts: 6
Rep Power: 8
H@rry is on a distinguished road
I will check it out. Thank you very much.
H@rry is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
y+ plotting into the Volume with OpenFoam 3.0.1 / plotting a viscosity with OF 3.0.1 BjoernFoam OpenFOAM Post-Processing 5 February 22, 2022 04:50
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Issue installation OpenFOAM - libopen-rte.so.0 Voyage_gui OpenFOAM 1 August 12, 2011 04:46


All times are GMT -4. The time now is 03:58.