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

modelling wall shear stress through fluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By Amir

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2011, 12:52
Smile modelling wall shear stress through fluent
  #1
Member
 
Rakesh
Join Date: May 2011
Posts: 33
Rep Power: 14
rakadit is on a distinguished road
Dear all!

Please help me to write UDF for wall shear stress equation: tau=constant*viscosity*velocitygradient.

I have tried with define profile UDF using cell loop but it is resulting in acess violation error?

thanks
rakadit is offline   Reply With Quote

Old   June 2, 2011, 02:14
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi,
when you want to use gradients, you have to prevent the solver from freeing up memory by issuing the text command solve/set/expert and then answering yes to the question Keep temporary solver memory from being freed?
if it doesn't work, post your UDF and I'll correct it for you.
Amir is offline   Reply With Quote

Old   June 6, 2011, 02:06
Smile UDF wall shear
  #3
Member
 
Rakesh
Join Date: May 2011
Posts: 33
Rep Power: 14
rakadit is on a distinguished road
Thanks for your suggestion! The UDF which I had written for calculating wall shear is like thislease correct the UDF and send the corrected one to me.

#include "udf.h"
DEFINE_PROFILE(stressx,t,i)
{
cell_t c;
real dvdy_r;
real alpha=0.7;
real dvdy=C_DVDY(c,t);
real mu_a=C_MU_L(c,t);
dvdy_r=alpha*dvdy;
begin_c_loop(c,t)
{
F_PROFILE(c,t,i)=mu_a*dvdy_r ;
}
end_c_loop(c,t)
}
rakadit is offline   Reply With Quote

Old   June 6, 2011, 03:31
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
It seems that you need to focus on UDF concepts more carefully.
Code:
#include "udf.h"
DEFINE_PROFILE(stressx,t,i)
{
face_t f;
cell_t c;
Thread *tc;
real dvdy_r;
real alpha=0.7;
real dvdy;
real mu_a;
begin_f_loop(f,t)
{
    c=F_C0(f,t);
    tc=THREAD_T0(t);
    mu_a=C_MU_L(c,tc);
    dvdy=C_DVDY(c,tc);
    dvdy_r=alpha*dvdy;
    F_PROFILE(f,t,i)=mu_a*dvdy_r;
}
end_f_loop(f,t)
}
Regards,

Amir
zhhjll and stardust111 like this.
Amir is offline   Reply With Quote

Old   June 9, 2011, 01:50
Smile
  #5
Member
 
Rakesh
Join Date: May 2011
Posts: 33
Rep Power: 14
rakadit is on a distinguished road
Dear Mr. Amir,

Thanks for correcting UDF.Yes,you are right I am new to UDF writing .I will soon give u feedback on corrected UDF.

with regards,


Rakesh
rakadit is offline   Reply With Quote

Old   June 27, 2011, 12:33
Talking
  #6
Member
 
Rakesh
Join Date: May 2011
Posts: 33
Rep Power: 14
rakadit is on a distinguished road
Dear Mr. Amir,

Sorry for late response.I had gone to some remote place.I am working with the UDF.it is working fine.Results are coming but correctness of results is to be confirmed.
Thanks again!


Rakesh
rakadit is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
[Paraview] Wall Shear Stress -mAx- OpenFOAM Post-Processing 5 August 30, 2019 10:30
Wall Shear stress in 3D nikosb Main CFD Forum 1 April 15, 2010 03:52
Re: About wall shear stress Mike FLUENT 9 November 17, 2003 14:41
WALL SHEAR STRESS Min-Hua Wang CFX 0 April 3, 2002 17:40


All times are GMT -4. The time now is 20:40.