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

Residual plot - SimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2018, 22:48
Default Residual plot - SimpleFoam
  #1
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
Hi Experts,

I am solving a problem involving a simpeFoam solver with pressure jump in between the inlet and outlet. Inlet and outlet are atm. pressure BCs.
I am seeing very strange residual behavior of the solver. Right now it has not diverged, but the it is not going the good way. Earlier simple cases on the problem have diverged in a similar way?

Few more information:

The mesh is all tetra: 110 million cells
Run diverges immediately in decompose split (8 2 4) = 64 cores
Run marches good on 16 cores (1 1 16) - 16 cores- The flow is in the direction of Z.

Is there in any relation of convergence how we split the domain?

Please find attached the residual plot of the (1 1 16) split. The results at 300 iterations makes perfect sense. But the residuals are not correct, so I am not able to declare the convergence.

What is the way around? The current run also may diverge..

Best regards,
Carno
Attached Images
File Type: jpg Residuals.JPG (37.5 KB, 24 views)
Carno is offline   Reply With Quote

Old   January 29, 2018, 06:12
Default
  #2
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
Hallo,

Have you tried the simulation with hexa mesh instead of tetra?

I've had problems with the tetra meshes in the past.

Regards,
Ricky

Quote:
Originally Posted by Carno View Post
Hi Experts,

I am solving a problem involving a simpeFoam solver with pressure jump in between the inlet and outlet. Inlet and outlet are atm. pressure BCs.
I am seeing very strange residual behavior of the solver. Right now it has not diverged, but the it is not going the good way. Earlier simple cases on the problem have diverged in a similar way?

Few more information:

The mesh is all tetra: 110 million cells
Run diverges immediately in decompose split (8 2 4) = 64 cores
Run marches good on 16 cores (1 1 16) - 16 cores- The flow is in the direction of Z.

Is there in any relation of convergence how we split the domain?

Please find attached the residual plot of the (1 1 16) split. The results at 300 iterations makes perfect sense. But the residuals are not correct, so I am not able to declare the convergence.

What is the way around? The current run also may diverge..

Best regards,
Carno
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   January 29, 2018, 06:54
Default
  #3
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
Thanks for the reply.
I also suspect the same. Mesh issue. The geometry is very complicated, so it is very difficult or not feasible to mesh 100%hexa. I am trying atleast hexa dominant mesh. Let us see.
Carno is offline   Reply With Quote

Old   January 29, 2018, 07:52
Default
  #4
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
I agree, that it is difficult to come up with a 100% hexa mesh sometimes. If the geometry is too complicated, you can use "snappyHexMesh" to get an hexa dominant mesh.

Regards,
Ricky

Quote:
Originally Posted by Carno View Post
Thanks for the reply.
I also suspect the same. Mesh issue. The geometry is very complicated, so it is very difficult or not feasible to mesh 100%hexa. I am trying atleast hexa dominant mesh. Let us see.
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   February 7, 2018, 05:52
Default
  #5
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
The problem is solved, when I used polyhedra mesh.
Snappy is a great tool, but it was also not helping as the castellation was not happening. We tried and spent lot of time to resolve the leak.
Then polyDualMesh script helped.

Thanks
Carno is offline   Reply With Quote

Old   February 7, 2018, 06:39
Default
  #6
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
Hallo Carno,

good to know, that you were able to solve the problem.

Haha! the thing with snappyHexMesh is, it is a great tool if it works out for us, else you will end up banging your head against the wall :P.

For snappyHexMesh you need waterproof stl. I have struggled with it a lot as well. However there is a work around which works some times (before I involve myself in playing around with salome), try to create a very coarse mesh for your geometry using snappyHexMesh and extract the surface using surfaceMeshTriangulate and keep working iteratively, its time consuming but it works.

A more detailed explanation is given here (also a video tutorial is available, It was very helpful when I started learning things) from Tobi, I think you might have crossed paths with this link as well.

Regards,
Ricky
Quote:
Originally Posted by Carno View Post
Snappy is a great tool, but it was also not helping as the castellation was not happening.
Thanks
__________________
If it is easy, then something is fishy!
kera 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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 18:36
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35


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