CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Recirculation bubble and wall shear stress (https://www.cfd-online.com/Forums/openfoam-solving/77779-recirculation-bubble-wall-shear-stress.html)

Daniele111 July 3, 2010 08:27

Recirculation bubble and wall shear stress
 
1 Attachment(s)
hi
I'm simulating an atmospheric boundary layer with a perturbation (an obstacle) on the bottom of domain. Downstream of the obstacle there is a Recirculation bubble, and i want to calculate the wall shear stress on the bottom. But the wss on the bottom has an overshooting when start the Recirculation bubble. How can i try to eliminate it? it's very important

Thanks

Daniele111 July 6, 2010 07:40

No idea for this problem?

Daniele111 July 6, 2010 09:18

I'm trying to use this Grad scheme in my fvSchems
gradSchemes
{
default Gauss upwind;

}

But I have this error when simulation start


--> FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: /u/acconcia/OpenFOAM/acconcia-1.6/run/blayer/system/fvSchemes::gradSchemes::default at line 26.

From function ITstream::read(token& t)
in file db/IOstreams/Tstreams/ITstream.C at line 83.

fgal July 6, 2010 10:50

Hi Daniele,

You may have a parenthesis problem in your file. Can you check it and share it if you didn't solve the problem ?

Daniele111 July 6, 2010 10:58

Thanks
If I use Gauss linear there isn't error

fgal July 6, 2010 11:22

Have you tried this ?

gradSchemes
{
default Gauss linearUpwind;
}

Does Gauss linear works ? Because it is second order so more precise.

Daniele111 July 6, 2010 11:28

Yes I used it, but I have the same error, I'm traying to eliminate the stress overshooting but I don't understand where is th problem

fgal July 6, 2010 12:08

Ok, so the problem is in your file, can you share it?

I don't see the problem on the results, you have a recirculation so the flow is stalled after the obstacle so the stress become null at the stall point and then negative. Because your shape is not smooth (not derivable actually), the velocity might have a discontinuity or a jump anyway so its gradient will have an overshoot and consequently she wall shear stress too.

Daniele111 July 6, 2010 13:05

Yes, but if you consider the backward-facing step the wall shear stress haven't overshooting

fgal July 6, 2010 13:16

That would more be linked with your mesh I think. If it is sufficiently refined, then the singularity should disappear. It seems to be coarse when I see the x variations of the wss which leads to the discontinuity that I pointed in the previous post. Well, that is what i think.
Could you post a screen shot of your mesh please ?

Daniele111 July 8, 2010 11:28

I tried to refine the mesh but the overshooting don't disappear. I used 5000 cell over a 500 m domain.

fgal July 8, 2010 12:34

Are you using 5000 cells in the X direction or 5000 cells on the whole domain ? Is your mesh 2D ? How many cells do you use globally ? Did you refine the mesh close to the obstacle ? Can you post a screenshot of your mesh ?

Daniele111 July 8, 2010 13:02

1 Attachment(s)
The correct data are:
2D domain along x (main flow direction) 1000 cells
along y 100 cells
along z 1 cells

fgal July 8, 2010 13:25

Have you checked the y+ values ? Are they in the correct range for your turbulence model ?

Daniele111 July 8, 2010 13:36

How can do it? What is the correct range for the k-eps model?

Thanks you

fgal July 8, 2010 13:52

There is an utility for that, yPlusRAS, and the correct range depends if you are using wall functions or not, which you should as you use a coarse mesh. Then the first cell point must be in the logarithmic area so with y+ between 50 and 200.

Daniele111 July 8, 2010 14:16

I use wall function, with the mesh that I post. The y+ was more or less 800, now I change the mesh and it is 150

fgal July 8, 2010 14:26

Ok, you can then play with that to check if your results can be improved but that should be ok like that.
I think that you could use much more cells in the region which you are interested in as you only use about 20 cells in it (if I had understood well your screen shot) and the gradients are here much more important than anywhere else.

Daniele111 July 8, 2010 15:32

2 Attachment(s)
Refined mesh. Then I'll post the simulation results

Daniele111 July 8, 2010 19:29

1 Attachment(s)
I used a vertical step in my profile and this is the wall shear stress at bottom, They seem numerical error, because if I refine the mesh on chenge of shape don't change anything.


All times are GMT -4. The time now is 02:12.