|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 15 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
rik houthuys
Join Date: Jan 2017
Posts: 27
Rep Power: 8 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Kristjan
Join Date: Apr 2017
Location: Slovenia
Posts: 36
Rep Power: 8 ![]() |
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 ![]() ![]() but I still don't understand the logic behind the calculation of ![]() |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Kristjan
Join Date: Apr 2017
Location: Slovenia
Posts: 36
Rep Power: 8 ![]() |
Anyone looking at this thread should also see
Residuals for convergence of segregated solvers |
|
![]() |
![]() |
![]() |
Tags |
residual, rhopisofoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate aerodynamic coefficients with openfoam using only opensource programs | Xwang | OpenFOAM | 20 | May 20, 2016 11:26 |
How to view residuals during OpenFOAM iteration? | ericnutsch | OpenFOAM | 2 | October 5, 2009 15:12 |
[Commercial meshers] How To Use OpenFOAM Software To Calculate Pump? | renyun0511 | OpenFOAM Meshing & Mesh Conversion | 2 | August 30, 2009 21:49 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |
Best way to calculate residuals | Morteza | Main CFD Forum | 1 | August 19, 2006 23:44 |