CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Initial Residual Zero

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2013, 02:24
Default Initial Residual Zero
  #1
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
I am getting initial residual of zero. What does that mean exactly?
hrushi.397 is offline   Reply With Quote

Old   August 3, 2013, 22:46
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
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
fumiya is offline   Reply With Quote

Old   August 4, 2013, 02:28
Default
  #3
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Quote:
Originally Posted by fumiya View Post
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
Hi Fumiya,

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
Attached Files
File Type: gz laplacianFoam.tar.gz (84.9 KB, 3 views)
hrushi.397 is offline   Reply With Quote

Old   August 4, 2013, 02:28
Default
  #4
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Sorry, Dambreak is not small enough to upload. Uploading files individually.
Attached Files
File Type: gz 0.tar.gz (1.6 KB, 0 views)
File Type: gz system.tar.gz (970 Bytes, 1 views)
hrushi.397 is offline   Reply With Quote

Old   August 5, 2013, 02:38
Default
  #5
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
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
hrushi.397 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:47.