|
[Sponsors] |
How to plot residuals vs iterations using pyFoam... |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
ata
Join Date: Feb 2015
Posts: 4
Rep Power: 10 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 9 ![]() |
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 | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 14:26 |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 12:30 |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 14:05 |
Wrong fluctuation of pressure in transient simulation | caitao | OpenFOAM Running, Solving & CFD | 2 | March 5, 2015 21:33 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |