|
[Sponsors] |
How to plot residuals vs iterations using pyFoam... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 16, 2017, 02:06 |
How to plot residuals vs iterations using pyFoam...
|
#1 |
New Member
ata
Join Date: Feb 2015
Posts: 4
Rep Power: 11 |
Hi foamers,
How can I plot application solver residuals versus iterations using pyFoam libraries? For example for the pimpleFoam solver, that uses outer corrections to couple pressure-momentum, using following command: pyFoamPlotRunner.py pimpleFoam just plots residuals versus time, and so, do not show the convergence of the outer loops. I think the solution is to plot residuals vs iterations. but how??? Thanks in advance for any reply... Regards, Ata. |
|
February 6, 2018, 05:34 |
|
#2 |
Member
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 10 |
Have a look at the customRegexp file for pyFoam. You can add your own regular expressions to scan for data in a log file, e.g. to plot the iterations the internal solver (here for Ux) needs:
Code:
solverIterations { expr ".+Solving for Ux.+No Iterations (%f%)"; theTitle "Solver Iterations"; titles ( Ux ); } |
|
Tags |
iterations, pyfoam, pyfoamplotrunner, residual |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 15:26 |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 13:30 |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 15:05 |
Wrong fluctuation of pressure in transient simulation | caitao | OpenFOAM Running, Solving & CFD | 2 | March 5, 2015 22:33 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 07:37 |