|
[Sponsors] |
March 1, 2010, 15:10 |
How does openFoam calculate residuals?
|
#1 |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17 |
I have solved a case with the density based solver rhoPisoFoam. When I checked the residuals for convergence, I noticed that the residuals for Rho were zero in every time step. Does anyone know how it can be? Does any body know how does OpenFoam calculate the residuals in every timestep?
Since the Piso loop in solver solves the rho, I thought this can be the result. But rho is being solved several times in piso loop, so it is changing, and this can be the method for calculation of residuals? |
|
October 18, 2017, 18:27 |
|
#2 |
New Member
rik houthuys
Join Date: Jan 2017
Posts: 27
Rep Power: 9 |
||
October 20, 2017, 07:41 |
|
#3 |
Member
Kristjan
Join Date: Apr 2017
Location: Slovenia
Posts: 36
Rep Power: 9 |
I'm interested in this topic and will try to contribue what I can.
The correction of rho is outside of the PISO loop. https://github.com/OpenCFD/OpenFOAM-.../rhoPisoFoam.C See the: Code:
#include "rhoEqn.H" Code:
solve(fvm::ddt(rho) + fvc::div(phi)); Houthuys, if you could exlpain the linear solver residual, I'd be grateful. I found this on the OF+ site. Do you understand this? I guess and but I still don't understand the logic behind the calculation of . |
|
October 26, 2017, 18:24 |
|
#4 |
Member
Kristjan
Join Date: Apr 2017
Location: Slovenia
Posts: 36
Rep Power: 9 |
Anyone looking at this thread should also see
Residuals for convergence of segregated solvers |
|
Tags |
residual, rhopisofoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate aerodynamic coefficients with openfoam using only opensource programs | Xwang | OpenFOAM | 20 | May 20, 2016 12:26 |
How to view residuals during OpenFOAM iteration? | ericnutsch | OpenFOAM | 2 | October 5, 2009 16:12 |
[Commercial meshers] How To Use OpenFOAM Software To Calculate Pump? | renyun0511 | OpenFOAM Meshing & Mesh Conversion | 2 | August 30, 2009 22:49 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
Best way to calculate residuals | Morteza | Main CFD Forum | 1 | August 20, 2006 00:44 |