Boundary Layer strange result
2 Attachment(s)
Dear all,
I'm coming to you because I'm facing a boundary layer problem on a simulation... I'm simulating a body in a flow with an inlet velocity Ux=5m/s. But right from the first iterations, the results close to the body gets strange... This can be seen on the attached pictures. One can see that the velocity is 0 on the wall, but gets much bigger around the first cell, and then decreases again. And because of this my simulation blows up after a few iterations. What I've done :
I'm running out of ideas, so if anyone has any hint it would be very appreciated ! Regards, Daniel |
Daniel, what do you need, steady-state or unsteady solutions?
|
Hi, thanks for the quick reply.
In the end I need an unsteady simulation with moving mesh (with pimpleDyMFoam), but the error occurs for all cases. I am currently trying with a steady-state simulation to check the mesh convergence (minimum mesh size to have a mesh-independent solution). |
That means simpleFoam? Then post the log output of that until it becomes ugly...
|
4 Attachment(s)
Yes I'm using simpleFoam.
Here a sample of the log : Code:
Time = 319 And as I said, this simulation works just fine when the mesh on the BL is finer. |
1) In my experience your linear solvers take too many iterations in each outer (SIMPLE) iteration. Did you set relTol to 1e-4? This is normally not needed in SIMPLE. But fixing this will make your solver only faster... not better ;) You can post the fvSolution to get some help.
2) Can you post checkMesh output and fvSchemes? What about your boundary conditions? Are you sure, they are correct? If not, you can post them, too. |
I'm rather confident about the boundary conditions. After trying many of them, the only one working are those from the motorBike example (with Spalart-Allmaras model).
The problem occurs with different schemes (accurate as well as diffusive schemes). Same with the tolerances. I've tried with maxIter=1000 (tolerance and relTol = 0) just for fun, and it still doesn't work. To sum up, the problem appears as soon as I increase the cells size around the body. I understand this could cause troubles with a turbulent case without using a wall function, but it also causes troubles in laminar... Concerning the wall function, as far as I know I just have to specify the wall function in 0/nut, right ? Are the initial conditions as posted here ok considering I'm using a wall function ? nut Code:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
paddle0 and paddle1 are walls? If so, why did you set pressure to zero and not zerogradient?
|
Oh my god............
I hadn't noticed, it the same for all simulations I've run......... I guess I'm sometimes being confused with all the files... This could definitely create problems... I change this and I keep you posted. Thank you for seeing this ! |
And concerning the wall function definition, do you agree on what I've put ?
|
I don't use SA-model but the airfoil2d tutorial uses it the same way.
|
Ok, that was the problem... Everything works just fine now !
I would never have thought the error could come from initial conditions... Thanks a lot for this, you saved me many hours of work ! Regards, Daniel |
Maybe just a typo, but it should be "boundary" not "initial" conditions in your last post.
|
You don't miss anything :)
It's boundary condition indeed. |
Now you can tune your solver settings to get rid of these horrible iterations. If you need any consecutive help or are not sure just post again.
|
All times are GMT -4. The time now is 15:15. |