|
[Sponsors] |
foamMonitor/ residual function: Which residual do I see? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 10, 2017, 09:55 |
foamMonitor/ residual function: Which residual do I see?
|
#1 |
Member
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10 |
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 |
|
May 11, 2017, 03:19 |
|
#2 |
Senior Member
|
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. |
|
May 11, 2017, 03:29 |
|
#3 |
Member
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10 |
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 |
|
May 11, 2017, 03:57 |
|
#4 |
Senior Member
|
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. |
|
May 11, 2017, 04:01 |
|
#5 |
Member
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 10 |
Thank you very much alexeym!
I think I will just use foamLog, I think I can manage it that way. |
|
|
|
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 |