|
[Sponsors] |
June 2, 2016, 05:47 |
"nan" problem
|
#1 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
Dear foamers,
I am working on stirred tank simulation by openfoam. I wanna simulate two phases (water+particles) using the solver twoPhaseEulerFoam. When I run my case, I have an error message "wrong token type - expected Scalar, found on line 0 the word 'nan' file: E:/test/test2/system/data.solverPerformance.e.particles at line 0." I can't get where is the problem. NB: I checked initial and boundary condition many times and I tried to simplify my case by running it in laminar model. I wanna wait your help . Best regards |
|
June 8, 2016, 07:38 |
|
#2 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
|
||
June 8, 2016, 10:35 |
|
#3 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
hello, thanks for your reply,
Everything seems ok in my BC but still having this problem specifically in time=2 the solution diverges and i get error equal to 1e88 or plus !! then the solver replace it by nan and then i get the error message posted at first |
|
June 9, 2016, 06:49 |
|
#4 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Just tell us more specifically what's your geometry and settings. Otherwise will be impossible to say something |
||
June 9, 2016, 10:15 |
|
#5 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
hello,
I attached the max 5 files, i think if i have any problem it will be here for sure, because i checked my boundary conditions and my mesh, they are Okey!! I remind that i wanna simulate stirred tank with 3 granular phases with liquid phase using the approach EULER-EULER. Waiting for your help Best regards |
|
June 9, 2016, 11:29 |
|
#6 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
I'm no expert with more than two phases. Than I think first is to check the mesh? What Aspect ratio are you getting? Then BCs. Tell us the BCs you setted up. |
||
June 9, 2016, 11:35 |
|
#7 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
yes that's true , at first i tried to simplify my case and working with only 2 phases ( particles + water) even i had 3 types of particles..
For my boundary conditions I have 5 wall and 1 symmetryPlane and for my mesh it works perfectly in other simulations so i supposed it's ok too If you can help me just for a simple case treating 2 phases it will be ok! Thank ypou anyway |
|
June 9, 2016, 11:38 |
|
#8 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Could you please run a checkMesh to see if everything is ok? Moreover we need to know what you set on the BCs for each field (like zeroGradient, fixedValue and so on...) |
||
June 9, 2016, 11:43 |
|
#9 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
I checked my mesh again as you it s ok !
|
|
June 9, 2016, 11:46 |
|
#10 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
||
June 9, 2016, 11:49 |
|
#11 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
what does it mean courant number ?
|
|
June 9, 2016, 11:51 |
|
#12 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
https://en.wikipedia.org/wiki/Couran...Lewy_condition
I would suggest to document yourself a bit about the most important parameters in a CFD simulation. Than startup with a simple case (for example with two phases and setting one phase to zero so you simulate a single phase flow) and proceeding slowly. |
|
June 9, 2016, 11:56 |
|
#13 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
this is my controlDict
|
|
June 9, 2016, 12:07 |
|
#14 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
I was not saying mockery, it was not my intention. Since I don't know which BCs still you're setting I'm trying to guess. I would suggest you to keep the Courant number less than 0.5, at least when you're starting up. I think it would help too if you post the last 10 - 15 time iterations of your last simulation that crashed. Maybe there are hints to understand what you did wrong. Moreover I would suggest to switch on the phases coupling terms one for each time. So I would start using just oneway drag (only particles into liquid) and see if it's converging or not. |
||
June 9, 2016, 12:09 |
|
#15 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Ok. I see 1s of time step. Seems a lot to me. I'm used to 1e-4-like time steps. When you're running your simulation, in the log it should be printed something like:
Code:
Courant Number Mean: Max Ur Courant Number: |
|
June 9, 2016, 12:14 |
|
#16 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
I get Courant Number mean: 0 max: 0
|
|
June 9, 2016, 12:15 |
|
#17 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Could you attach the log?
|
|
June 9, 2016, 12:18 |
|
#18 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
this is the log I get with the error message in the terminal
|
|
June 9, 2016, 12:23 |
|
#19 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Yes it's clearly diverging. Could you please post an image of your geometry and tell us about the settings you did in the 0 folder?
What about trying before twoPhaseEulerFoam with just one dispersed phase and a liquid carrier to start? I'm even more comfortable with the case file structure. |
|
June 9, 2016, 12:26 |
|
#20 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
I tried twoEulerFoam and I get problems too .. do you have any clear tutorial for this solver?
And for my gemetry it's about tank divided to two zones : mrf zone and fixed zone |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |