|
[Sponsors] |
How to calculate shear stress within interior fluid? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 7, 2018, 11:04 |
How to calculate shear stress within interior fluid?
|
#1 |
Member
Join Date: Dec 2017
Posts: 34
Rep Power: 9 |
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 |
|
March 7, 2018, 16:35 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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. |
|
March 13, 2018, 16:47 |
shear stress fomula
|
#3 |
Member
Join Date: Dec 2017
Posts: 34
Rep Power: 9 |
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. |
|
February 26, 2019, 06:32 |
|
#4 |
New Member
Join Date: Dec 2018
Posts: 17
Rep Power: 8 |
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 |
|
February 26, 2019, 14:46 |
|
#5 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Quote:
On surfaces you use the wall shear stress which is a built-in variable. You don't need any of this complicated formula. |
||
February 26, 2019, 16:13 |
|
#6 | |
New Member
Join Date: Dec 2018
Posts: 17
Rep Power: 8 |
Quote:
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! |
||
February 27, 2019, 15:06 |
|
#7 | |
New Member
Join Date: Dec 2018
Posts: 17
Rep Power: 8 |
Quote:
|
||
Tags |
fluent - udf, interior regions, shear stress |
|
|
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 |