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

foamMonitor/ residual function: Which residual do I see?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2017, 09:55
Default foamMonitor/ residual function: Which residual do I see?
  #1
Member
 
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10
TeresaT is on a distinguished road
Hello everyone,
hope someone can help with this:

I use foamMonitor and the residual function to plot my residuals written: (U p), but I don't understand the output, which is one single line für p and two lines for U(Ux and Uy, yeah it's a 2d case).

I am using rhoPimpleFoam with 3 pimple iterations, therefore I have about 17 p residuals. Which one does the residual function write out? And what can I do to get the initial p residual of the last pimple iteration instead?
Writing (U p_12) did not work at all and no p was shown when visualized.

Any Ideas?
Greetings,
Teresa
TeresaT is offline   Reply With Quote

Old   May 11, 2017, 03:19
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

residuals function writes data in write method, which is executed on runTime.write() (i.e. after PIMPLE loop). The function writes values of initial residual.
alexeym is offline   Reply With Quote

Old   May 11, 2017, 03:29
Default
  #3
Member
 
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10
TeresaT is on a distinguished road
Hi aleyeym,

okay thanks! Do you happen to have an idea on how to make it write out all initial residuals (meaning initial residuals of each pimple iteration)?

Greetings,
Teresa
TeresaT is offline   Reply With Quote

Old   May 11, 2017, 03:57
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
There is no way to do it with residuals function object (and with function object in general, cause no function object methods are executed inside PIMPLE loop).

If I needed this kind of graphs, I would just parse log-file (using Python).

There is foamGraphResUVWP, which creates ASCII tables parsing log-file, though I have never used it.
alexeym is offline   Reply With Quote

Old   May 11, 2017, 04:01
Default
  #5
Member
 
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10
TeresaT is on a distinguished road
Thank you very much alexeym!

I think I will just use foamLog, I think I can manage it that way.
TeresaT 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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 22:13
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20


All times are GMT -4. The time now is 15:11.