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

udf for wall slip

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2013, 05:39
Cool udf for wall slip
  #1
New Member
 
ammm
Join Date: Nov 2012
Posts: 21
Rep Power: 13
ammm is on a distinguished road
i need a udf for slip wall
i want to use udf for setting this boundary condition:
us=B*(du/dy)
what should i do?
ammm is offline   Reply With Quote

Old   January 10, 2013, 01:49
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
I have already written it. Email me please.
tirmizi likes this.
msaeedsadeghi is offline   Reply With Quote

Old   January 10, 2013, 05:02
Default
  #3
New Member
 
ammm
Join Date: Nov 2012
Posts: 21
Rep Power: 13
ammm is on a distinguished road
i emailed you thank you in advance
ammm is offline   Reply With Quote

Old   January 12, 2013, 12:58
Default
  #4
New Member
 
Farzad Ahamdi
Join Date: Feb 2012
Location: Iran
Posts: 4
Rep Power: 14
fahmadi is on a distinguished road
Quote:
Originally Posted by msaeedsadeghi View Post
I have already written it. Email me please.
Dear Mr Sadeghi
I also have written a UDF for slip velocity which works correctly, but when I want to add the term due to thermal creep, I get the below error:
"FLUENT received fatal signal (ACCESS_VIOLATION)."

I recognized that this error is due to using the expression "C_T_G(cell,t)" in my UDF.

Could you help me to solve this problem?

Thank you so much!
fahmadi is offline   Reply With Quote

Old   January 12, 2013, 23:26
Default
  #5
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
Quote:
Originally Posted by fahmadi View Post
Dear Mr Sadeghi
I also have written a UDF for slip velocity which works correctly, but when I want to add the term due to thermal creep, I get the below error:
"FLUENT received fatal signal (ACCESS_VIOLATION)."

I recognized that this error is due to using the expression "C_T_G(cell,t)" in my UDF.

Could you help me to solve this problem?

Thank you so much!
In most Micro-Channel problems there is no need to add the thermal creep section. You can neglect it.
msaeedsadeghi is offline   Reply With Quote

Old   January 15, 2013, 09:19
Default
  #6
New Member
 
ammm
Join Date: Nov 2012
Posts: 21
Rep Power: 13
ammm is on a distinguished road
i write this udf for slip. is it correct???

#include "udf.h"
DEFINE_PROFILE(shear_stressx, thread, n)
{
face_t f ;
cell_t c0 ;
Thread *t0 =THREAD_T0(thread) ;
float u0,uw,vderivate, sstressx ;
begin_f_loop(f, thread)
{
c0 = F_C0(f ,thread) ;
vderivate= C_DUDY(c0,t0) ;
u0 = C_U(c0, t0);
uw=u0+1*pow(10,-6)*vderivate ;
F_U(f, thread)=uw;
sstressx = -.001003*vderivate ;
F_PROFILE(f,thread,n) = sstressx ;
}
end_f_loop(f,thread)
ammm is offline   Reply With Quote

Old   January 16, 2013, 04:49
Post How to write a slip condition in wall
  #7
asm
New Member
 
Jetica
Join Date: Jan 2013
Posts: 1
Rep Power: 0
asm is on a distinguished road
dear Mr Sadeghi and ammm:

i need a udf(fluent or cfx is ok) for slip wall.As ammm metioned,the slip wall

which can be attached with thermal creep is the best.But if the thermal creep is

excluded,that is ok. could you send me a udf you have writtern.please send

the email:asm23374634@gmail.com

thank you very much
asm is offline   Reply With Quote

Old   January 17, 2013, 05:03
Default
  #8
New Member
 
ammm
Join Date: Nov 2012
Posts: 21
Rep Power: 13
ammm is on a distinguished road
my udf works good with low slip length but for larger slip length not converged. Can anyone guide me for this convergence problem?
i use fluent 6.2 and when i dont use udf it works corrctly
please help me
ammm is offline   Reply With Quote

Old   February 22, 2013, 16:10
Default
  #9
New Member
 
Join Date: Aug 2011
Posts: 8
Rep Power: 14
Shayan is on a distinguished road
Quote:
Originally Posted by fahmadi View Post
Dear Mr Sadeghi
I also have written a UDF for slip velocity which works correctly, but when I want to add the term due to thermal creep, I get the below error:
"FLUENT received fatal signal (ACCESS_VIOLATION)."

I recognized that this error is due to using the expression "C_T_G(cell,t)" in my UDF.

Could you help me to solve this problem?

Thank you so much!
I had same problem, to avoid this problem,you should not hook all your UDFs at the same time; Step by step! first apply the udf of slip velocity, then let the iterations go, after your solution is converged`,unhook it and apply Thermal creep udf, let it go for numerous iterations, then re-apply slip-velocity udf again,
All of these operations is due to suitable initializations which help Fluent to start a solution from a rather logic guess.
each UDF produces a sudden jump in the resodual graph, so it's better avoiding 3 jumps at the same time, instead, imply them gradually.
Shayan is offline   Reply With Quote

Old   February 25, 2013, 04:32
Default
  #10
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Quote:
Originally Posted by ammm View Post
my udf works good with low slip length but for larger slip length not converged. Can anyone guide me for this convergence problem?
i use fluent 6.2 and when i dont use udf it works corrctly
please help me

Apply some under-relaxation.

Additionally, I can only emphasize once more that fluent comes with a BC of the type us=B*(du/dy).
It is called "Slip Boundary Formulation for Low-Pressure Gas System" and even includes the term for thermal creep.
Sadra.Forouzi likes this.
flotus1 is offline   Reply With Quote

Old   February 25, 2013, 23:44
Default
  #11
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
I have done that before without thermal creep, but today have found how to consider thermal creep also.
It needs step by step enabling and disabling equations.
msaeedsadeghi is offline   Reply With Quote

Old   March 4, 2013, 05:34
Default
  #12
New Member
 
Katerina
Join Date: Jul 2012
Posts: 2
Rep Power: 0
Katerina is on a distinguished road
Dear all,
I'm doing a simulation with slip and VOF. I would like to define slip - shear stress for liquid only. But I'm doing it wrong.
My shear stress=mu*dudx*vof
What should I change to get C_VOF for correct thread ?

#include "udf.h"

DEFINE_PROFILE(wall_shear_y,thread,position)
{
face_t f;
Thread *t0, *t2, *t3;
cell_t c0;
double TAUxy, mu;
double dudx;
double vof;

begin_f_loop(f,thread)
{
t0=THREAD_T0(thread); /*adjacent cell index*/
c0=F_C0(f,thread); /*adjacent cell thread*/

t2 = THREAD_SUB_THREAD(t0, 0); // take ID of phase no.1
t3 = THREAD_SUB_THREAD(t0, 1); // take ID of phase no.2

dudx=C_DUDX(c0,t0);
mu=C_MU_L(c0,t0); /*viscosity*/

begin_c_loop(c0,t3)
{
vof=C_VOF(c0,t3); /*volume of fluid value in adjacent cell for phase 2*/
}
end_c_loop(c0,t3)

TAUxy=mu*dudx*vof;
F_PROFILE(f,thread,position)=TAUxy;
}
end_f_loop(f,thread)
}

Regards,
Katerina
Katerina is offline   Reply With Quote

Old   March 26, 2014, 04:41
Default slip wall shear
  #13
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 12
elaf_2003 is on a distinguished road
I was wondering if any one can help me?
I am using flow around rotating cylinder, the shear stresses at the wall need to be specified to constant value. In this option, there are 3 components for the shear stresses, i.e. x direction components and so on.

Does anyone know for example how can set these values for cylinder surface
Regard.

Last edited by elaf_2003; March 26, 2014 at 12:52.
elaf_2003 is offline   Reply With Quote

Old   November 13, 2014, 04:25
Default hi
  #14
Member
 
Qureshi M Z I
Join Date: Sep 2013
Posts: 79
Rep Power: 12
m zahid is on a distinguished road
hi, i need a UDF for slip boundary condition at the bottom of the domain or at the ground (wall), 3D case is just like a flow over a building. if anybody have sample UDF please share this, z is a vertical axis of my domain. thanks

mziqureshi@hotmail.com

regards,
m zahid is offline   Reply With Quote

Old   May 15, 2017, 03:19
Default UDF Slip Rotational Wall
  #15
New Member
 
Widhi
Join Date: May 2017
Posts: 1
Rep Power: 0
Widhi is on a distinguished road
Hi,
i need the udf for slip rotational wall. in this case i want to simulate for 2-d journal bearing. what should i do?
Thanks.
Widhi is offline   Reply With Quote

Old   June 22, 2017, 04:30
Default
  #16
New Member
 
tae won
Join Date: Jun 2017
Posts: 1
Rep Power: 0
zmdxodnsj is on a distinguished road
Quote:
Originally Posted by msaeedsadeghi View Post
I have done that before without thermal creep, but today have found how to consider thermal creep also.
It needs step by step enabling and disabling equations.
Dear msaeedsadeghi
Hi I'm doing about micro-channel problem. so I need the udf(fluent) for slip condition for slip wall.
if you have udf of slip condition and temperature jump condition.
Could you send me the udf code? It doesn't matter if it not include thermal creep
my email : ssdssdblack@naver.com
thank you
zmdxodnsj is offline   Reply With Quote

Old   March 26, 2018, 06:49
Default
  #17
New Member
 
Syed umer tirmizi
Join Date: Mar 2018
Posts: 4
Rep Power: 8
tirmizi is on a distinguished road
Quote:
Originally Posted by msaeedsadeghi View Post
I have already written it. Email me please.
Can you send me the udf file for us=b*(du/dy) model .
Email :syedumer46@gmail.com

Last edited by tirmizi; March 26, 2018 at 06:51. Reason: email entering
tirmizi is offline   Reply With Quote

Old   March 28, 2018, 04:58
Default
  #18
New Member
 
golf du
Join Date: Oct 2010
Posts: 2
Rep Power: 0
buaadino is on a distinguished road
Quote:
Originally Posted by msaeedsadeghi View Post
I have already written it. Email me please.
Would you please mail me the udf, thanks a lot! My e_mail is 4963404@qq.com
buaadino is offline   Reply With Quote

Old   March 28, 2018, 05:10
Default
  #19
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I hope anybody reading this is aware that low pressure boundary slip is for a long time already included in Fluent, without needing to add any UDFs. Look for "low pressure boundary slip" in the manual to find out more.
tirmizi likes this.
pakk is offline   Reply With Quote

Old   February 13, 2019, 10:03
Default
  #20
New Member
 
Pratik Manna
Join Date: Feb 2019
Posts: 1
Rep Power: 0
Pratik_me is on a distinguished road
Dear Mr. Sadeghi

Can you mail me the UDF? I, require this UDF for a simulation of flow through a micro-channel. My e-mail is - bishaktomanush@gmail.com

regards
S. G. Das
Pratik_me 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
UDF for slip boundary condition rasoulb Fluent UDF and Scheme Programming 15 October 15, 2021 03:35
UDF for slip and moving wall lichun Dong FLUENT 3 March 26, 2014 04:37
UDF slip and temperature jump from IFRT abir Fluent UDF and Scheme Programming 1 July 30, 2012 05:44
where to setting the slip wall in udf cxzhao FLUENT 4 July 4, 2005 02:56
why boudary slip velocity is so larte using udf cxzhao FLUENT 0 July 4, 2005 00:06


All times are GMT -4. The time now is 06:07.