|
[Sponsors] |
Simulation diverging resulting in unknown error. |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Davis
Join Date: Dec 2017
Posts: 3
Rep Power: 9 ![]() |
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: ![]() #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. ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13 ![]() |
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). |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Dec 2017
Posts: 153
Rep Power: 9 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
|
Hi,
@davismcc Code:
smoothSolver: Solving for Uz, Initial residual = 0.00262526, Final residual = 6.66195e+126, No Iterations 1000 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. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Davis
Join Date: Dec 2017
Posts: 3
Rep Power: 9 ![]() |
Hello Everyone,
Thank you for all your help ! I managed to get the simulation to converge from your suggestions. Thanks again, Davis |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 08:24 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 16:46 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
How to get the max value of the whole field | waynezw0618 | OpenFOAM Running, Solving & CFD | 4 | June 17, 2008 06:07 |