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

Simulation diverging resulting in unknown error.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2017, 17:44
Default Simulation diverging resulting in unknown error.
  #1
New Member
 
Davis
Join Date: Dec 2017
Posts: 3
Rep Power: 8
davismcc is on a distinguished road
Hello,

I am new to OpenFoam and CFD in general so I apologize if this is unclear.

I am simulating blood flow through an aneurysm which allows for a complex geometry. When I run the simulation using the pimpleFoam solver, the simulation diverges at the peak of the pulse. The error I receive is:

PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = 0.00176612, Final residual = 2.4962e-06, No Iterations 2
smoothSolver: Solving for Uy, Initial residual = 0.00129989, Final residual = 4.75263e-06, No Iterations 2
smoothSolver: Solving for Uz, Initial residual = 0.00262526, Final residual = 6.66195e+126, No Iterations 1000
GAMG: Solving for p, Initial residual = 1, Final residual = 0.0594274, No Iterations 2
time step continuity errors : sum local = 7.86935e+124, global = 4.16061e+121, cumulative = 4.16061e+121
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 double Foam::sumProd<double>(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4 Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#5 Foam::GAMGSolver::solveCoarsestLevel(Foam::Field<d ouble>&, Foam::Field<double> const&) const at ??:?
#6 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:?
#7 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#8 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#9 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
#10 ? at ??:?
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12 ? at ??:?
Floating point exception (core dumped)

Any suggestion in direction will be greatly appreciated. I have attached the initial conditions and checkMesh,

Thank you in advance.
Attached Files
File Type: zip 0.zip (3.5 KB, 4 views)
File Type: zip system.zip (2.0 KB, 3 views)
File Type: zip checkMesh.zip (1.3 KB, 2 views)
davismcc is offline   Reply With Quote

Old   December 28, 2017, 00:13
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
I would suggest you to check the pimpleFoam tutorials and check how they are setup especially this one. Check the schemes and solutions of the tutorial and try to use those.

Anyhow, you can start by setting maxCo to 1 (controlDict), pressure tolerance to 1e-6 (fvSolution).
Taataa is offline   Reply With Quote

Old   December 28, 2017, 14:29
Default
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hi,

Form the error seems that the linear system for the Uz velocity has problems. Since you have implemented a coded bc, I would say that start from that boundary conidition is non a bad idea... What happens if you use just a fixed value?
AliE is offline   Reply With Quote

Old   December 28, 2017, 14:44
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

@davismcc

Code:
smoothSolver: Solving for Uz, Initial residual = 0.00262526, Final residual = 6.66195e+126, No Iterations 1000
You could start from changing smoothSolver to PBiCG.

Then you can adopt residualControl to check simulation convergence within time step. Then, since you mesh is rather non-orthogonal, you can use at least couple of non-orthogonal correction iterations (start with nNonOrhogonalCorrectors 2). Then you can try to use discretisation schemes, which are more suitable to non-orthogonal meshes (also you can try limited schemes instead of linear for convection terms).

You have got plenty of things to try.
alexeym is offline   Reply With Quote

Old   December 28, 2017, 23:13
Default
  #5
New Member
 
Davis
Join Date: Dec 2017
Posts: 3
Rep Power: 8
davismcc is on a distinguished road
Hello Everyone,

Thank you for all your help ! I managed to get the simulation to converge from your suggestions.

Thanks again,
Davis
davismcc 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
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
[OpenFOAM] Saving ParaFoam views and case sail ParaView 9 November 25, 2011 15:46
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07


All times are GMT -4. The time now is 06:32.