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

calculating shear stress with UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2019, 03:58
Default calculating shear stress with UDF
  #1
New Member
 
Join Date: Dec 2018
Posts: 17
Rep Power: 7
arash.mp is on a distinguished road
Hi everyone,
i have a 2 layer pipe (2D axisymetric) which the outer layer is a porous medium and a fluid flows through the core of the pipe. ( i attached the geometry below).
the fluid permeates through the porous medium due to the pressure difference ( as i shown in the geometry there are 2 pressure outlet B.Cs that force the fluid to permeates through the porous wall).
i want to calculate the SHEAR STRESS on the interior B.C (shown in the figure) with the relation viscosity*shear_rate.
i can do it with CUSTOM FIELD FUNCTIONS, BUT for some reason (calculating variable properties etc, ) i have to write a UDF for this purpose!
for summary, i have to CALCULATE shear rate along an interior B.C, multiplying the shear rate to viscosity and STORE the values and PLOT it with usage of User defined memory(UDM).
Can anyone help me with writing the UDF?
at the end i want to change the geometry to 3D in future!if the should be a change for that please tell me,
thank u.
Attached Images
File Type: jpg Capture.JPG (24.8 KB, 63 views)
arash.mp is offline   Reply With Quote

Old   April 6, 2020, 18:17
Default Hi,do you deal with your problem?
  #2
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by arash.mp View Post
Hi everyone,
i have a 2 layer pipe (2D axisymetric) which the outer layer is a porous medium and a fluid flows through the core of the pipe. ( i attached the geometry below).
the fluid permeates through the porous medium due to the pressure difference ( as i shown in the geometry there are 2 pressure outlet B.Cs that force the fluid to permeates through the porous wall).
i want to calculate the SHEAR STRESS on the interior B.C (shown in the figure) with the relation viscosity*shear_rate.
i can do it with CUSTOM FIELD FUNCTIONS, BUT for some reason (calculating variable properties etc, ) i have to write a UDF for this purpose!
for summary, i have to CALCULATE shear rate along an interior B.C, multiplying the shear rate to viscosity and STORE the values and PLOT it with usage of User defined memory(UDM).
Can anyone help me with writing the UDF?
at the end i want to change the geometry to 3D in future!if the should be a change for that please tell me,
thank u.
Hi,do you deal with your problem?
hitzhwan is offline   Reply With Quote

Old   April 7, 2020, 09:13
Default
  #3
New Member
 
Join Date: Dec 2018
Posts: 17
Rep Power: 7
arash.mp is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Hi,do you deal with your problem?
Hi, not yet! do you have any solution?
arash.mp is offline   Reply With Quote

Old   April 9, 2020, 03:51
Default Shear Stress
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
You can use velocity gradients to define the shear stress at any location in a UDF. Velocity gradients can be accessed using _G or _RG, e.g., C_U_G(c,t)[0] implies x-component of gradient of x-velocity.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm 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
Export Wall Shear Stress Data trooken FLUENT 6 February 5, 2019 15:09
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" Jeremie84 ANSYS Meshing & Geometry 70 October 25, 2017 16:03
Fluent UDF Wall Shear Stress Segmentation Fault a1ananth Fluent UDF and Scheme Programming 3 February 24, 2015 03:23
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 12:03
shear stress scalar definitions? Novak Elliott CFX 0 April 6, 2003 01:45


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