CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Skin friction coefficient over surface

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By tomf
  • 1 Post By huangxianbei
  • 1 Post By huangxianbei
  • 1 Post By tomf
  • 1 Post By huangxianbei

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2014, 08:24
Default Skin friction coefficient over surface
  #1
Member
 
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 11
mich_K is on a distinguished road
Is there a way to obtain the skin friction coefficient over a surface, or am I going to have to calculate it manually?

Thanks in advance
__________________
-------------------------------------------------------
Michael
mich_K is offline   Reply With Quote

Old   August 11, 2014, 03:35
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
If you use the wallShearStress utility you have the wall shear stress (tauw). You can than use ParaView to calculate the skin friction coefficient (2*tauw/(rho*V^2))

Regards,
Tom
tomf is offline   Reply With Quote

Old   August 11, 2014, 03:59
Default
  #3
Member
 
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 11
mich_K is on a distinguished road
Thanks Tom.

I have only used openFOAM for a few days now and cannot find any documentation on the actual implementation of the Standard Utilities.

Can you perhaps explain its use to me?

In what file and how do I implement the wallShearStress utility?

Also, how do I do such types of calculations in paraView?

Thanks in advance.
__________________
-------------------------------------------------------
Michael
mich_K is offline   Reply With Quote

Old   August 11, 2014, 04:08
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi, just type "wallShearStress" in the terminal and it will calculate this after your normal run. It is a standard postProcessing OpenFOAM utility. In ParaView you can load the wall patches (not the internalField) and use the calculator filter on it.

I bet you can find a lot of information on both of these by searching the forum.
Regards,
Tom
Jiss likes this.
tomf is offline   Reply With Quote

Old   August 11, 2014, 04:18
Default
  #5
Member
 
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 11
mich_K is on a distinguished road
Thank you very much Tom.

I did indeed try and search for something, but didn't find anything.

I think in the beginning there are a few things that are so basic that no one really talks about it, such as this.

Thanks again, cheers.
__________________
-------------------------------------------------------
Michael
mich_K is offline   Reply With Quote

Old   October 15, 2014, 07:12
Default
  #6
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Quote:
Originally Posted by tomf View Post
If you use the wallShearStress utility you have the wall shear stress (tauw). You can than use ParaView to calculate the skin friction coefficient (2*tauw/(rho*V^2))

Regards,
Tom
Hi,Tom:
Can we calculate the wallShearStress using tau_wall=rho*nu*gradU? Two different values are obtained in the two ways, which one would be correct? Should we just use wallShearStress utility?


Xianbei
Jiss likes this.
huangxianbei is offline   Reply With Quote

Old   October 20, 2014, 10:33
Default
  #7
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Xianbei,

I think it depends a lot on the type of system that you are analyzing. The wallShearStress utility also takes turbulence into account. I guess that the results should be the same if you have a laminar case. Also if you have an incompressible case I think the wallShearStress is actually the wallShearStress divided by rho!

In version 2.3.x you can actually also use the utility as a function object (at least the source code indicates this)

Regards,
Tom
tomf is offline   Reply With Quote

Old   October 20, 2014, 11:20
Default
  #8
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi Xianbei,

I think it depends a lot on the type of system that you are analyzing. The wallShearStress utility also takes turbulence into account. I guess that the results should be the same if you have a laminar case. Also if you have an incompressible case I think the wallShearStress is actually the wallShearStress divided by rho!

In version 2.3.x you can actually also use the utility as a function object (at least the source code indicates this)

Regards,
Tom
Hi,Tom:
Thank you for your reply. In fact, my case is not laminar, but I don't think wallShearStress is just written for laminar only. I agree with you that the wallShearStress is actually the wallShearStress divided by rho, however, the results are not the same (My case is incompressible)

Does it related to the Beff in LES, in my opinion, i_normal&Beff seems not equal to wallShearStress, what's your opinion?

Xianbei
huangxianbei is offline   Reply With Quote

Old   October 21, 2014, 03:21
Default
  #9
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Xianbei,

Maybe I needed to clarify my statement, wallShearStress is not only for laminar indeed, but also for turbulent flow (using nuEff instead of nu), but if you calculate wall shear stress by nu*rho*gradU than there is a difference in the values between both approaches. You would have to use nuEff in the second approach as well.

I am not sure how things would change for LES, but still I would expect a difference since even with LES you will have a shear stress from the unresolved eddies, depending on LES model, grid refinement, wall model etcetera. I have not studied LES simulations enough to give you any guidance. Best way would probably be to take a simple flat plate flow and look at the results from different methods.

Good luck,
Tom
tomf is offline   Reply With Quote

Old   October 21, 2014, 05:11
Default
  #10
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi Xianbei,

Maybe I needed to clarify my statement, wallShearStress is not only for laminar indeed, but also for turbulent flow (using nuEff instead of nu), but if you calculate wall shear stress by nu*rho*gradU than there is a difference in the values between both approaches. You would have to use nuEff in the second approach as well.

I am not sure how things would change for LES, but still I would expect a difference since even with LES you will have a shear stress from the unresolved eddies, depending on LES model, grid refinement, wall model etcetera. I have not studied LES simulations enough to give you any guidance. Best way would probably be to take a simple flat plate flow and look at the results from different methods.

Good luck,
Tom
Hi,Tom:
Thank you for your advice. In fact, in LES, nuEff=nu+nuSgs, however, nuSgs on the wall is 0, so when we calculate wallShearStress, we can just ignore nuSgs. Additionally, the grid near the wall is refined enough with average y+=3, so it should be enough. I performed another case, a straight duct, however, the results still differs between 2 methods

Xianbei
huangxianbei is offline   Reply With Quote

Old   October 21, 2014, 05:21
Default
  #11
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Xianbei,

I guess the next step would be to compare with the pressure loss for your duct flow, which should be related to the shear stress, at least you would know if one of both methods is correct.

Regards,
Tom
tomf is offline   Reply With Quote

Old   October 21, 2014, 05:39
Default
  #12
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi Xianbei,

I guess the next step would be to compare with the pressure loss for your duct flow, which should be related to the shear stress, at least you would know if one of both methods is correct.

Regards,
Tom
Hi,Tom:
Sorry for forgotting metioning that I compare both results with the experimental data, the rho*nu*gradU is at the same order with the experiment's, however, the wallShearStress returns a much more larger value, about 70 times. That's why I doubt about the wallShearStressLES.

Xianbei
salehorafi likes this.
huangxianbei is offline   Reply With Quote

Old   October 21, 2014, 06:19
Default
  #13
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Xianbei,

Ok I did not realize the difference was that big! In the source code of the utility (not the functionObject) it is explicitly stated that a RAS type turbulence model is expected however, maybe something goes wrong because of that?

Other than that I would not know what might be causing this error, I guess the best thing may be to file a bug report if you can make a simple (small enough) test case.

Regards,
Tom
salehorafi likes this.
tomf is offline   Reply With Quote

Old   October 21, 2014, 07:28
Default
  #14
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi Xianbei,

Ok I did not realize the difference was that big! In the source code of the utility (not the functionObject) it is explicitly stated that a RAS type turbulence model is expected however, maybe something goes wrong because of that?

Other than that I would not know what might be causing this error, I guess the best thing may be to file a bug report if you can make a simple (small enough) test case.

Regards,
Tom
Hi, Tom:
Thank you for your patient explaination. Although it's not solved yet, I learn more from the communication. Thank you again

Xianbei
salehorafi likes this.
huangxianbei is offline   Reply With Quote

Old   July 5, 2017, 09:27
Default
  #15
Member
 
Join Date: Nov 2013
Posts: 35
Rep Power: 12
beatlejuice is on a distinguished road
Quote:
Can we calculate the wallShearStress using tau_wall=rho*nu*gradU? Two different values are obtained in the two ways, which one would be correct? Should we just use wallShearStress utility?

Xianbei
Hello,

seems like the wallShearStress utility uses tau_wall = nu * gradU since the dimension is mē/sē (see dimesions [0 2 -2 0 0 0 0]; )

So the kinematic visc. is used instead of dynamic visc....

Last edited by beatlejuice; July 5, 2017 at 11:05.
beatlejuice is offline   Reply With Quote

Reply

Tags
post, post procesing, skin friction coefficient


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
the skin friction coefficient error from Fluent sutthinan Main CFD Forum 2 November 28, 2012 13:03
Openfoam friction coefficient differences. Peter88 OpenFOAM Post-Processing 0 February 8, 2011 10:07
Macro for skin friction and pressure coefficient DoHander Fluent UDF and Scheme Programming 0 January 9, 2010 10:18
Compute Skin friction coef by hand Francois FLUENT 1 February 10, 2006 06:21
drawing curved line,plotting skin friction lines Alex Main CFD Forum 0 November 16, 2005 20:52


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