|
[Sponsors] |
February 13, 2019, 03:58 |
calculating shear stress with UDF
|
#1 |
New Member
Join Date: Dec 2018
Posts: 17
Rep Power: 7 |
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. |
|
April 6, 2020, 18:17 |
Hi,do you deal with your problem?
|
#2 | |
Senior Member
Join Date: Dec 2017
Posts: 384
Rep Power: 9 |
Quote:
|
||
April 7, 2020, 09:13 |
|
#3 |
New Member
Join Date: Dec 2018
Posts: 17
Rep Power: 7 |
||
April 9, 2020, 03:51 |
Shear Stress
|
#4 |
Senior Member
|
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. |
|
|
|
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 |