CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to calculate shear stress within interior fluid?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2018, 11:04
Question How to calculate shear stress within interior fluid?
  #1
Member
 
Join Date: Dec 2017
Posts: 34
Rep Power: 9
malekan.cfd is on a distinguished road
Dear All,

I have a fluid flowing inside of a tube. I need to calculate shear stress within interior fluid, and not only at walls. Is there any way to do that? I know UDF can handle that, but I have no idea how to do that! Can anyone help me please?

Thanks
malekan.cfd is offline   Reply With Quote

Old   March 7, 2018, 16:35
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You can do it with custom field functions. If you know the mathematical formula, it's quite straightforward to define the custom field in the GUI.

If you are completely lost you can checkout an old example I uploaded for calculating Reynolds stresses. You just need to replace turbulent viscosity by regular viscosity and remove the turbulent kinetic energy term to make it molecular viscous stresses.

Btw do you want only the molecular stresses, Reynolds stresses, or the combined effective stress? Make sure you actually calculate what you want.
soheil_r7 and manuks007 like this.
LuckyTran is offline   Reply With Quote

Old   March 13, 2018, 16:47
Default shear stress fomula
  #3
Member
 
Join Date: Dec 2017
Posts: 34
Rep Power: 9
malekan.cfd is on a distinguished road
Dear LuckyTran,

Thanks again for your help. I have read your example and prepared following code:

(custom-field-function/define
'(((name shear-stress-ux) (display "viscosity * (dx-velocity-dx)") (syntax-tree ("*" "viscosity" ("dx-velocity-dx"))) (code (field-* (field-load "viscosity") (field-load "dx-velocity-dx"))))
((name shear-stress-vy) (display "viscosity * (dy-velocity-dy)") (syntax-tree ("*" "viscosity" ("dy-velocity-dy"))) (code (field-* (field-load "viscosity") (field-load "dy-velocity-dy"))))
((name shear-stress-magnitude) (display "viscosity * (dx-velocity-dx + dy-velocity-dy)") (syntax-tree ("*" "viscosity" ("+" "dx-velocity-dx" "dy-velocity-dy"))) (code (field-* (field-load "viscosity") (field-+ (field-load "dx-velocity-dx") (field-load "dy-velocity-dy")))))
))

Since, shear stress for fluid is calculated as:

tau = mu*du/dy

So, I used this formula for x and y direction. what do you think?
I have one issue, for shear magnitude, which I decided to calculate using tau_x and tau_y, I need to use sqrt function, but don't know how it works in tui command.
malekan.cfd is offline   Reply With Quote

Old   February 26, 2019, 06:32
Default
  #4
New Member
 
Join Date: Dec 2018
Posts: 17
Rep Power: 8
arash.mp is on a distinguished road
Dear all,
i have a serious problem in calculating Shear stress in an internal wall ( the interface between a free flow and a porous media) ! i search all the web for answer and i just got confused!
can anyone help me with what LuckyTran said in this post? i read the code above but i cant get it!
thanks
arash.mp is offline   Reply With Quote

Old   February 26, 2019, 14:46
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by arash.mp View Post
Dear all,
i have a serious problem in calculating Shear stress in an internal wall ( the interface between a free flow and a porous media) ! i search all the web for answer and i just got confused!
can anyone help me with what LuckyTran said in this post? i read the code above but i cant get it!
thanks

On surfaces you use the wall shear stress which is a built-in variable. You don't need any of this complicated formula.
LuckyTran is offline   Reply With Quote

Old   February 26, 2019, 16:13
Default
  #6
New Member
 
Join Date: Dec 2018
Posts: 17
Rep Power: 8
arash.mp is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
On surfaces you use the wall shear stress which is a built-in variable. You don't need any of this complicated formula.
thanks for your prompt answer!
unfortunately the surface between free flow and porous domain is "INTERIOR"! so I CAN NOT use Wall shear stress in fluent! and also im sure that (mu*Shear_rate) in fluent doesn't give shear stress! So i have to use udf or something else!
arash.mp is offline   Reply With Quote

Old   February 27, 2019, 15:06
Default
  #7
New Member
 
Join Date: Dec 2018
Posts: 17
Rep Power: 8
arash.mp is on a distinguished road
Quote:
Originally Posted by arash.mp View Post
thanks for your prompt answer!
unfortunately the surface between free flow and porous domain is "INTERIOR"! so I CAN NOT use Wall shear stress in fluent! and also im sure that (mu*Shear_rate) in fluent doesn't give shear stress! So i have to use udf or something else!
can anyone help me?
arash.mp is offline   Reply With Quote

Reply

Tags
fluent - udf, interior regions, shear stress


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
How to calculate shear stress? AGP FLUENT 10 July 23, 2020 08:42
calculate y+ and u+ -how to get wall shear stress? Ralf Schmidt Main CFD Forum 18 September 17, 2019 04:23
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" Jeremie84 ANSYS Meshing & Geometry 70 October 25, 2017 17:03
Fluid wall shear stress Sinead Kelly (Kelly) OpenFOAM Running, Solving & CFD 2 March 30, 2011 07:41
Post processing - Wall shear stress Carlo Siemens 1 March 4, 2009 08:35


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