CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Residuals : Final or 0 ?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 23, 2010, 10:00
Default Residuals : Final or 0 ?
  #1
Member
 
Jérémy Bulle
Join Date: Nov 2009
Posts: 93
Rep Power: 7
Gearb0x is on a distinguished road
Hello

to check convergence in openfoam I used the foamJob & foamLog utilities which write data in text files.

In these text files, for each variable of interest I always have two files :
(example for p)
p_0
pFinalRes_0

Which one should I look at for the convergence?
p_0 seems to decrease continually while pFinalRes_0 has jumps

And what are the meaning of these two residuals?

Thanks for the help
Gearb0x is offline   Reply With Quote

Old   April 10, 2010, 17:45
Default
  #2
Member
 
Jérémy Bulle
Join Date: Nov 2009
Posts: 93
Rep Power: 7
Gearb0x is on a distinguished road
and what about time step continuity error local, global and cumulatice?

How should they behave? Always above 10^-3 or something? Only the last values after X iterations should be looked at?

Thanks for your help
Gearb0x is offline   Reply With Quote

Old   April 14, 2010, 14:56
Default request
  #3
Member
 
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 6
mohsenkh599 is an unknown quantity at this point
hi
how can I visualize the residuals? I wonder if there is a way to see the residuals like the fluent?
thanks
mohsenkh599 is offline   Reply With Quote

Old   April 14, 2010, 15:00
Default
  #4
Member
 
Jérémy Bulle
Join Date: Nov 2009
Posts: 93
Rep Power: 7
Gearb0x is on a distinguished road
you can!

just do like this

solver > log
foamLog log
cd logs
xmgrace -log y -legend load pRes_0

example : simpleFoam log for the solver
(I'm not sure about the name in xmgrace for the variables, just check in the log directory )
Gearb0x is offline   Reply With Quote

Old   April 14, 2010, 15:15
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mohsenkh599 View Post
hi
how can I visualize the residuals? I wonder if there is a way to see the residuals like the fluent?
thanks
I use http://openfoamwiki.net/index.php/Co...PlotWatcher.py (but I am not neutral)
gschaider is offline   Reply With Quote

Old   April 15, 2010, 01:06
Default
  #6
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Hehe, I use pyFoam tools too (and I'm neutral )

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   April 17, 2010, 10:40
Smile help
  #7
Member
 
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 6
mohsenkh599 is an unknown quantity at this point
hi foamers
I have simulated a contraction flow. how can I plot for example velocity or the (tauxx-tauxy) across a line connecting two points in the geometry.
after the simulation at every time there are p, phi, U, tau, tau_0 and etc. files at a folder at that time.
thanks a lot
mohsenkh599 is offline   Reply With Quote

Old   April 17, 2010, 13:38
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
You can plot over lines in paraview. For the stress tensor, you've to first compute it from the fields you stored.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   April 18, 2010, 01:17
Default help
  #9
Member
 
mohsen kh
Join Date: Nov 2009
Posts: 41
Rep Power: 6
mohsenkh599 is an unknown quantity at this point
hi
thank you very much alberto
but can you possibly explain more? I cant clearly understand your directions
the best
mohsenkh599 is offline   Reply With Quote

Old   April 18, 2010, 02:54
Default
  #10
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
To plot over a line, open you case in paraview, show it as usual, then use the "Plot over a line" filter.

To save the stress tensor, use the stressComponents utility after you run the case.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Floating point exception error Alan OpenFOAM Running, Solving & CFD 10 April 6, 2012 14:02
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Unknown error sivakumar OpenFOAM Pre-Processing 9 September 9, 2008 12:53


All times are GMT -4. The time now is 07:29.