CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Extracting residuals during PIMPLE iterations for unsteady flow simulations (https://www.cfd-online.com/Forums/openfoam-programming-development/220895-extracting-residuals-during-pimple-iterations-unsteady-flow-simulations.html)

Anouk September 26, 2019 03:07

Extracting residuals during PIMPLE iterations for unsteady flow simulations
 
Dear OpenFOAM Users,


I'm using OpenFOAM's pimpleDyMFoam (or unsteady pimpleFoam for OpenFOAM version > 5) to solve unsteady flow problems. To check the convergence of a simulation at each physical time step, I would like to extract the velocity and pressure residuals during each PIMPLE iteration (also called inner iterations or pseudo time steps). Does anyone know a quick way to do that? Alternatively, if anyone knows how to extract the forces and moments at each PIMPLE iteration that would also help a lot.


Best wishes,


Anouk

mAlletto September 30, 2019 18:04

The fvmatrix Class holds a function residual () which returns the residuals https://www.openfoam.com/documentati...1fvMatrix.html


All times are GMT -4. The time now is 23:44.