"nan" problem
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 |
Quote:
|
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 |
Quote:
Just tell us more specifically what's your geometry and settings. Otherwise will be impossible to say something :) |
5 Attachment(s)
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:confused: |
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. |
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 |
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...) |
1 Attachment(s)
I checked my mesh again as you it s ok !
|
Quote:
|
what does it mean courant number ?
|
Quote:
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. :) |
1 Attachment(s)
this is my controlDict
|
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. |
Quote:
Code:
Courant Number Mean: |
I get Courant Number mean: 0 max: 0
|
Could you attach the log?
|
2 Attachment(s)
this is the log I get with the error message in the terminal
|
Quote:
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. |
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 |
All times are GMT -4. The time now is 06:11. |