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

SimpleFoam generating stack trace & failing to solve

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2019, 01:34
Default SimpleFoam generating stack trace & failing to solve
  #1
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 7
rakesh.a is on a distinguished road
Greetings,
I'm trying to solve a case where, flow is going through a pipe. Pipe have a geometry at center of pipe which will disturb flow.
I have done meshing in 'Gmsh'. Which when I convert to openFoam & do checkMesh. It gives me error message of 2 skew faces (see image 01).

When I try to solve this problem with simpleFoam solver (Turbulence ON). It runs for few steps and stops running with back trace error (see image 02).

I have tried reducing relaxation factors, & increasing tolerances. But, it's making output results unrealistic & not converged (Well, results sucks!!)

Can anyone help me resolve this issue. What changes should I do to get converged results. Also, let me know if anything required to get more understanding.

Thanks,
Rakesh
Attached Images
File Type: jpg 01.JPG (81.7 KB, 144 views)
File Type: jpg 02.jpg (205.2 KB, 166 views)
Attached Files
File Type: txt log.txt (28.8 KB, 31 views)
File Type: txt fvSchemes.txt (1.5 KB, 18 views)
File Type: txt fvSolution.txt (1.6 KB, 14 views)

Last edited by rakesh.a; May 10, 2019 at 07:46. Reason: Adding files
rakesh.a is offline   Reply With Quote

Old   May 10, 2019, 04:21
Default
  #2
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by rakesh.a View Post
Greetings,
I'm trying to solve a case where, flow is going through a pipe. Pipe have a geometry at center of pipe which will disturb flow.
I have done meshing in 'Gmsh'. Which when I convert to openFoam & do checkMesh. It gives me error message of 2 skew faces (see image 01).

When I try to solve this problem with simpleFoam solver (Turbulence ON). It runs for few steps and stops running with back trace error (see image 02).

I have tried reducing relaxation factors, & increasing tolerances. But, it's making output results unrealistic & not converged (Well, results sucks!!)

Can anyone help me resolve this issue. What changes should I do to get converged results. Also, let me know if anything required to get more understanding.

Thanks,
Rakesh

you rmesh check failed. Unless software (openfoam) takes care of these failed cells solver would fail to converge.
arjun is offline   Reply With Quote

Old   May 10, 2019, 04:31
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Your simulation has diverged. It could be caused by:
- inappropriate initial/boundary conditions
- inappropriate discretisation schemes
- inappropriate solver settings

You provided no details on the first point.

Your mesh is rather non-orthogonal, so your schemes/solver settings should be adopted to the case. You can find recommended settings for highly non-orthogonal meshes in many places (according to log you even do not have non-orthogonal correctors).

You can start by adding fvSchemes/fvSolutions to your post. Then search "open foam non-orthogonal mesh" in your preferred search engine.
alexeym is offline   Reply With Quote

Old   May 10, 2019, 07:50
Default
  #4
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 7
rakesh.a is on a distinguished road
I tried changing settings in fvschems/fvsolution as suitable for non-orthogonal meshes.
Also, trying to get mesh more optimized for getting rid of Skewness.
rakesh.a is offline   Reply With Quote

Old   May 14, 2019, 03:25
Default
  #5
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 7
rakesh.a is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Your simulation has diverged. It could be caused by:
- inappropriate initial/boundary conditions
- inappropriate discretisation schemes
- inappropriate solver settings

You provided no details on the first point.

Your mesh is rather non-orthogonal, so your schemes/solver settings should be adopted to the case. You can find recommended settings for highly non-orthogonal meshes in many places (according to log you even do not have non-orthogonal correctors).

You can start by adding fvSchemes/fvSolutions to your post. Then search "open foam non-orthogonal mesh" in your preferred search engine.
Hello,
I have tried meshing model again using different meshing method in gmsh. checkmesh in openFoam shows Mesh as "OK".
Used smoothSolver for pressure & velocity.
Solution is converging after running some steps and then start diverging drastically. And because of that results for first few steps seems alright, but after few steps values of pressure & velocity changing drastically.
I'm attaching my fvSolution & fvSchemes to this post. I'm new to openFoam and trying lot of changes in my case setup.

Thank you!!!!
Attached Files
File Type: txt fvSchemes.txt (1.5 KB, 46 views)
File Type: txt fvSolution.txt (1.6 KB, 35 views)
File Type: txt turbulenceProperties.txt (1.1 KB, 19 views)
File Type: txt p.txt (1.2 KB, 17 views)
File Type: txt U.txt (1.2 KB, 19 views)
rakesh.a is offline   Reply With Quote

Old   May 14, 2019, 04:31
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

The post does not have two additional files: checkMesh output and nut boundary conditions. But let's try to analyse what we have got. I will assume, mesh is non-orthogonal with non-orthogonality below 70 degrees (say 65).

fvSchemes:
gradSchemes -> leastSquares (strictly speaking Gauss linear is for orthogonal meshes only)
divSchemes -> everything to upwind (we are trying to converge, later you can change upwind to higher order schemes)
laplacianSchemes -> corrected
snGradSchemes -> corrected

fvSolution:
solvers.p -> PCG
solvers.(U|k|epsilon) -> PBiCGStab

nNonOrthogonalCorrectors -> 2

If it still behaves badly:
consistent -> no
relaxationFactors.equations.U -> 0.7
relaxationFactors.fields.p -> 0.3
relaxation for turbulence equations -> 0.5

Meanwhile, you can also add checkMesh output and nut BC/IC files.
alexeym is offline   Reply With Quote

Old   May 14, 2019, 05:03
Default
  #7
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 7
rakesh.a is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

The post does not have two additional files: checkMesh output and nut boundary conditions. But let's try to analyse what we have got. I will assume, mesh is non-orthogonal with non-orthogonality below 70 degrees (say 65).

fvSchemes:
gradSchemes -> leastSquares (strictly speaking Gauss linear is for orthogonal meshes only)
divSchemes -> everything to upwind (we are trying to converge, later you can change upwind to higher order schemes)
laplacianSchemes -> corrected
snGradSchemes -> corrected

fvSolution:
solvers.p -> PCG
solvers.(U|k|epsilon) -> PBiCGStab

nNonOrthogonalCorrectors -> 2

If it still behaves badly:
consistent -> no
relaxationFactors.equations.U -> 0.7
relaxationFactors.fields.p -> 0.3
relaxation for turbulence equations -> 0.5

Meanwhile, you can also add checkMesh output and nut BC/IC files.
Thank you!
Max non-orthogonality is 89.0305.
I have attached checkMesh & nut boundary conditions.

I'm trying to solve & study setup suggested by you.
Attached Files
File Type: txt CheckMesh.txt (2.0 KB, 21 views)
File Type: txt nut.txt (1.3 KB, 12 views)
File Type: txt nuTilda.txt (1.2 KB, 6 views)
rakesh.a is offline   Reply With Quote

Old   May 14, 2019, 06:11
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Maybe you can use decent mesher? Tetrahedral mesh with almost 90 degrees of non-orthogonality is something strange. Netgen usually generates much nicer meshes compared to Gmsh.

Maybe it will be necessary to revert to limited non-orthogonal correction. I.e. instead of "corrected" you put "limited 0.5" or "limited 0.333".
alexeym is offline   Reply With Quote

Old   May 14, 2019, 06:58
Default
  #9
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 7
rakesh.a is on a distinguished road
Followig is error I get everytime ,
Backtrace:
ZN10StackTraceC1Ev [0x705c1465+0x25]
module: C:\PROGRA~1\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_tra ce.dll
ZN4Foam5error10printStackERNS_7OstreamE [0x30b1c88+0x218]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZN4Foam6sigFpe13sigFpeHandlerEi [0x30b2af3+0x33]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
(No symbol) [0x403cad]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
_C_specific_handler [0x7ffbef161196+0x96]
module: C:\WINDOWS\SYSTEM32\ntdll.dll
0_chkstk [0x7ffbef174ecd+0x11d]
module: C:\WINDOWS\SYSTEM32\ntdll.dll
RtlWalkFrameChain [0x7ffbef0f6058+0x1518]
module: C:\WINDOWS\SYSTEM32\ntdll.dll
KiUserExceptionDispatcher [0x7ffbef173dfe+0x2e]
module: C:\WINDOWS\SYSTEM32\ntdll.dll
ZN4Foam18DILUPreconditioner15calcReciprocalDERNS_5 FieldIdEERKNS_9lduMatrixE [0x2f5bf2e+0x8e]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZN4Foam18DILUPreconditionerC2ERKNS_9lduMatrix6solv erERKNS_10dictionaryE [0x2f5bff2+0x52]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZN4Foam9lduMatrix14preconditioner31addasymMatrixCo nstructorToTableINS_18DILUPreconditionerEE3NewERKN S0_6solverERKNS_10dictionaryE [0x31c348f+0x2f]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZN4Foam9lduMatrix14preconditioner3NewERKNS0_6solve rERKNS_10dictionaryE [0x2f52447+0x117]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
ZNK4Foam9PBiCGStab5solveERNS_5FieldIdEERKS2_h [0x2f56fee+0x4ae]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFO AM.dll
(No symbol) [0x42b02e]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
(No symbol) [0x42c235]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
(No symbol) [0x42c535]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
(No symbol) [0x44e045]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
(No symbol) [0x4013f7]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
(No symbol) [0x40152b]
module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoa m.exe
BaseThreadInitThunk [0x7ffbec7b3574+0x14]
module: C:\WINDOWS\System32\KERNEL32.DLL
RtlUserThreadStart [0x7ffbef13cb81+0x21]
module: C:\WINDOWS\SYSTEM32\ntdll.dll

Anyway, I have setup of Salome meshing with me. I'm going to see if it makes any difference.
rakesh.a is offline   Reply With Quote

Old   May 14, 2019, 09:02
Default
  #10
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
This is typical backtrace produced by a diverged solution (in your case DILU preconditioner was not able to do its job).

You can try reverting to smoothSolver/GaussSeidel pair for velocity and turbulence.
alexeym is offline   Reply With Quote

Reply

Tags
openfoam, simplefoam convergence, stack trace


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
unable to solve problem using SimpleFoam. Error showing in setting boundary condition pawansharma OpenFOAM Running, Solving & CFD 3 December 19, 2018 12:49
problem when solve with simplefoam k-epsilon model hssnjfry OpenFOAM Running, Solving & CFD 19 October 8, 2015 03:58
simpleFoam crash -> How to solve tH3f0rC3 OpenFOAM 4 May 12, 2011 08:07
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 04:16
How to solve in simpleFoam with a volumesourceterm implicity booz OpenFOAM Running, Solving & CFD 3 March 12, 2009 04:17


All times are GMT -4. The time now is 15:52.