Trouble Saving Wall Shear using DEFINE_EXECUTE_AT_END
I'm trying to access the wall shear stress values for a certain wall. I'm trying to replicate the method used by here (p.91) and here (p.2) .
My UDF right now is: Code:
#include "udf.h" Quote:
Quote:
Do I need to calculate the shear stress directly to be able to access it or is there another step I need to take to make it available? |
From that link, am I correct in interpreting the following?
Wall_Shear_stress_X is Tau_xy Wall_Shear_stress_Y is Tau_yz Wall_Shear_stress_Z is Tau_zx |
As far as I am aware:
Tx = [Nx*Mu*(2*Du/Dx)]+[Ny*Mu*(Du/Dy+Dv/Dx)]+[Nz*Mu*(Du/Dz+Dw/Dx)] Ty = [Nx*Mu*(Dv/Dx+Du/Dy)]+[Ny*Mu*(2*Dv/Dy)]+[Nz*Mu*(Dv/Dz+Dw/Dy)] Tz = [Nx*Mu*(Dw/Dx+Du/Dz)]+[Ny*Mu*(Dw/Dy+Dv/Dz)]+[Nz*Mu*(2*Dw/Dz)] T = sqrt(Tx^2+Ty^2+Tz^2) :rolleyes: |
I found this forum thread about using F_STORAGE.
I exported the shear stresses from the UDF and plotted them and compared to the shear stress plots provided by Fluent and they're the same. |
All times are GMT -4. The time now is 19:24. |