CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Why wallGradU result is different from dudy in the smooth channel bed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2008, 19:20
Default Hi, The case is the simple
  #1
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
Hi,

The case is the simple smooth channel. Now I want to calculate the bottom wall shear stress. I use the function wallGradU as following
forAll(wallGradU.boundaryField(), patchi)
{
wallGradU.boundaryField()[patchi] =
-U.boundaryField()[patchi].snGrad();
}
But I found the result was much different from the value of du/dy, where y was the normal direction of the bottom, and u was the velocity along the flow. Could you inform me the reason for the difference? Thank you so much.

xiu
xiuying is offline   Reply With Quote

Old   December 16, 2008, 04:16
Default Hello, wallGradU returns a
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hello,

wallGradU returns a vector, with normal and tangential components in relation to the wall.

If you are interested in wall shear stress, you should extract the tangential components of wallGradU, and use them for your calculations.

Your results are different from du/dy probably because your du/dy data concerns only tangential components of velocity gradient.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   December 16, 2008, 13:33
Default Thank Jose for your answer.
  #3
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
Thank Jose for your answer.

I compared the wallGradU tangential component with my du/dy, and they are much more different.

Xiu
xiuying is offline   Reply With Quote

Old   December 17, 2008, 06:48
Default Hello, Maybe you could elab
  #4
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hello,

Maybe you could elaborate a little more on your problem (mesh, Re, discretisation schemes, experimental data, etc).

From my experience, wall gradients are quite sensitive to the quality of your mesh as well as the discretisation schemes you are using.

I have recently validated simulations obtained with OpenFOAM for smooth tube laminar and turbulent flows against Moody friction factor and mass transfer correlations. The results are very good. Let me know if you need some details on this.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   December 17, 2008, 14:55
Default Hello Jose Santos and All,
  #5
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Hello Jose Santos and All,

I'm also trying to validate simulations on High Reynolds number flows (wind turbines).

I'm interested about the information regarding the turbulence models and numerical schemes you've used.

Thank you very much in advance.

Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   December 17, 2008, 15:03
Default Hi, I want to calculate the
  #6
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
Hi,

I want to calculate the wave friction factor on the channel bed with turbulent k-epsilon model using the relation of the friction factor f=2*tau(max)/(pou*U(max)^2),where tau(max) is the maximum of the wall shear stress in a wave period, pou is the density, and U(max) is the sinusoidally oscillatory wave amplitude. So I need calculate the wall shear stress. Now I refined my mesh to get yplus~~0.01 on the wall, and wallGradU was almost equal du/dy. But the calculating friction fractor is much different from the Jensen's experimental data and the error is about 60%.
xiuying is offline   Reply With Quote

Old   December 17, 2008, 16:04
Default Hi Xiuying I have been doin
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Xiuying

I have been doing the same experiment in an internal code, and I did get good results for the rough boundary (test 13).
Mayby you should consider using another turbulence closure model than k-epsilon, which is known to perform rather poorly subject to adverse pressure gradients, which you will have twice during a wave period.
How does your phase-lag compare with experimental data in the turbulent regime? Is it the experimental verified value of an order of magnitude 10 degrees?
I used k-omega and as I recall yplus=O(0.1).
If you are driving your flow by applying a body force then verify that you do not have a net flux averaged over a wave period as beginning from a zero velocity field will result in a non-zero flux if left untreated.
Further, verify that your computational domain is sufficiently large to contain your wave boundary layer.

Good luck,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   December 17, 2008, 17:19
Default Hi, Niels, Thanks so much. I
  #8
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
Hi, Niels,
Thanks so much.
I used Jensen's test 10 to compare my computing result. In my model the wave flow was drived by an oscillatary body force, and the inlet and outlet used cycle boundary condition. I checked the phase-lag beween the wave and its wall shear stress. I also will check the netflux.

Xiuying
xiuying is offline   Reply With Quote

Old   December 17, 2008, 18:43
Default sorry, I forgot writing the ph
  #9
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
sorry, I forgot writing the phase-lag. It is 13 degree between the wave velocity and its wall shear stress.
xiuying is offline   Reply With Quote

Old   December 18, 2008, 01:04
Default Well, if you look at Fig. 11 i
  #10
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Well, if you look at Fig. 11 in Jensen et al (1989) then you will find that the phase-lag is order of magnitude 6 degrees for their measurements for test 10, thus your flow reversal occur too early in the process.
This might suggest problems in the handling of the adverse pressure gradient, as your mesh should be fine.
Maybe you should take a look on how the wall is treated in the k-epsilon model. There might be some conflicts in resolving the boundary layer.

Have a nice day

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   December 18, 2008, 05:38
Default Hi, Xiuying: I think that w
  #11
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi,

Xiuying: I think that when using kEpsilon you should keep your y+ above 30. Anyway, check your pressure drop (patchAverage p inlet && patchAverage p outlet) and compare it with your experimental data.

Paulo: I usually start with kEpsilon to obtain initial k and epsilon fields, using upwind on all div schemes, and Gauss linear limited 1 on all laplacians. My relaxation factors are 0.2 for pressure and 0.5 for the other variables. With this setup, the residuals converge quite fast. I am interested on determining mass transfer coefficients at the walls, so I need to resolve adequately the near wall profiles. For that, I switch to a low-Re turbulence model (eg LaunderSharmaKE), increase my mesh resolution (y+<1) and get converged results for first order schemes. Finally, I switch to 2nd order schemes (limitedLinear 1 for divs, linear corrected for laplacians).
santos is offline   Reply With Quote

Old   December 18, 2008, 16:11
Default Thanks a lot Jose Santos. I'll
  #12
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Thanks a lot Jose Santos. I'll try your procedure ASAP.

Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   March 2, 2009, 07:58
Default Hi, I'm trying to make my sol
  #13
Member
 
Andrea Petronio
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 43
Rep Power: 17
andrea is on a distinguished road
Hi,
I'm trying to make my solver compute at each time step the gradient of U at wall, but copying from the wallGradU utility I've managed to get it except for the 0 time, in which volVectorField wallGradU is given as "type computed" and it's not calculated.
The difference w.r.o. the results of the utility are in this 0 step and small numeric discrepancies.

There's anyone that can explain these? There a way to make wallGradU calculated at 0 time?

thanks
andrea is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
smooth DTF surface N.R. CFX 0 July 25, 2007 13:45
Obtaining Nu result from internal fin channel andrew FLUENT 2 March 1, 2007 21:38
[OpenFOAM] WallGradU shuo ParaView 0 September 27, 2006 20:21
Smooth Grid Gernot FLUENT 0 August 19, 2005 16:00
smooth the joint? zhang junmei FLUENT 0 September 12, 2001 10:23


All times are GMT -4. The time now is 17:36.