|
[Sponsors] |
August 3, 2013, 02:24 |
Initial Residual Zero
|
#1 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
I am getting initial residual of zero. What does that mean exactly?
|
|
August 3, 2013, 22:46 |
|
#2 |
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18 |
I have no idea about what problems you are solving
but I think it is possible depending on your boundary and initial conditions and geometry. Which solver are you using? Whose initial residual is zero? (I guess it is one component of the momentum equation.) Fumiya |
|
August 4, 2013, 02:28 |
|
#3 | |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Quote:
Thank you for the reply. I have attached the files herewith. I am trying to solve a diffusion reaction equation (Allen Cahn equation). I modified laplacianFoam because the equation also has a laplacian term. I modified dambreak case to generate 64x64 grid which is intitalized randomly to 1 or -1. Boundary conditions are cyclic. I fail to get any residual at the beginning. I am also printing laplacian of phi, field which I am trying to solve, and it turns out to be unusually large. But I donot understand why this is happening. I have tried every solver. Currently it is diagonal. I have implicit discretization and explicit discretization for laplacian. One more thing: T tried to solve same in Matlab and it works fine, but not in Openfoam. Could you please help me? Thanks and regards, Hrushi |
||
August 4, 2013, 02:28 |
|
#4 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Sorry, Dambreak is not small enough to upload. Uploading files individually.
|
|
August 5, 2013, 02:38 |
|
#5 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Hi All,
I found the reason why laplacian results were unphysical. The phi^3 term in the implementation was the problem. When I used an implicit source term as fvm::Sp(phi*phi,phi), I could get rid of zero initial residual and segmentation fault. Although I have got the results, they are not physical though. What could be the reason? Should I add fvm::Sp(3*phi*phi,phi) in accordance with whatever linearization Patankar has suggested? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 13:40 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 08:35 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |