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

UDF for slip boundary condition

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

Like Tree1Likes
  • 1 Post By rasoulb

Reply
 
LinkBack Thread Tools Display Modes
Old   December 10, 2012, 14:56
Smile UDF for slip boundary condition
  #1
New Member
 
rasoul b
Join Date: Dec 2010
Location: iran
Posts: 13
Rep Power: 6
rasoulb is on a distinguished road
Hi all

I have written a UDF for slip boundary condition (u_{s}=L_{s}*du_dy) by C_U_G(c,t)[1] Macro.
1- I test my UDF for 2 & 3D steady laminar channel flow, it's work good with low slip length (0.0001-0.005) but for larger slip length not converged. Can anyone guide me for this convergence problem?

2. I need to use velocity gradient of previous time step for unsteady simulation. what macros I should use?

thanks
BARKAT likes this.
rasoulb is offline   Reply With Quote

Old   December 10, 2012, 15:13
Default
  #2
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,098
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
Do you know that a boundary condition like this is already implemented in Fluent?
flotus1 is offline   Reply With Quote

Old   December 10, 2012, 15:29
Default
  #3
New Member
 
rasoul b
Join Date: Dec 2010
Location: iran
Posts: 13
Rep Power: 6
rasoulb is on a distinguished road
what version? please guide me

Thanks
rasoulb is offline   Reply With Quote

Old   December 10, 2012, 17:42
Default
  #4
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,098
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
Last time i read about it was in the version 13 manual, but i think it can also be found in earlier versions.
I am out of office right now, so all I can do is recommend a google search with 'fluent high knudsen boundary'.
I think you will figure it out by yourself, otherwise feel free ask again.
flotus1 is offline   Reply With Quote

Old   December 11, 2012, 03:46
Default
  #5
New Member
 
rasoul b
Join Date: Dec 2010
Location: iran
Posts: 13
Rep Power: 6
rasoulb is on a distinguished road
slip velocity based on knudsen number is appropriate for gases and Not applicable for liquids. please say another method.

thanks
rasoulb is offline   Reply With Quote

Old   December 11, 2012, 05:07
Default
  #6
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,098
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
This holds true for a microscopic point of view.

But if you just want a boundary condition in the form (=*du_dy), the high Knudsen number boundary condition in fluent is the right choice, no matter what type of fluid you are using.
flotus1 is offline   Reply With Quote

Old   December 13, 2012, 12:56
Default
  #7
New Member
 
rasoul b
Join Date: Dec 2010
Location: iran
Posts: 13
Rep Power: 6
rasoulb is on a distinguished road
thanks flotus1 for your answers.
high Knudsen number boundary condition is for Low-Pressure Gas Systems and available only when the Laminar model is selected in the Viscous Model panel (based on explanation expressed in fluent 6.3 help). but my Model is LES and pressure is high in my case.
rasoulb is offline   Reply With Quote

Old   December 14, 2012, 05:53
Default
  #8
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,098
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
"high" pressure is not the problem in your case.
The boundary treatment can be used at any pressure level. The term "low pressure" comes from one of the applications of the model in low-pressure systems. But the model is appropriate at arbitrary pressure levels, whenever the Knudsen number is high.
I am currently studying flows at normal pressure levels with a BC like this.

But I see now that this BC is not an option since your Model is LES.
Perhaps it is possible to activate the BC with a LES model with a text command. This would be a question for the fluent support.
flotus1 is offline   Reply With Quote

Old   November 13, 2014, 05:03
Default hi
  #9
Member
 
Qureshi M Z I
Join Date: Sep 2013
Posts: 51
Rep Power: 3
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), 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   November 13, 2014, 05:12
Default
  #10
Senior Member
 
Join Date: Nov 2013
Posts: 677
Rep Power: 9
pakk is on a distinguished road
Quote:
Originally Posted by m zahid View Post
hi, i need a UDF for slip boundary condition at the bottom of the domain or at the ground (wall), 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,
Please read the messages in this thread more carefully. If you would have done that, you would not have asked for a UDF.
pakk is offline   Reply With Quote

Old   November 13, 2014, 09:42
Default
  #11
Member
 
Qureshi M Z I
Join Date: Sep 2013
Posts: 51
Rep Power: 3
m zahid is on a distinguished road
hi, thanks pakk, here rasoulb use slip length instead of dynamic viscosity, as given in the link
http://www.cfd-online.com/Wiki/Wall_shear_stress

do u know the relationship between slip length and dynamic viscosity.

thanks
m zahid is offline   Reply With Quote

Old   November 13, 2014, 10:13
Default
  #12
Senior Member
 
Join Date: Nov 2013
Posts: 677
Rep Power: 9
pakk is on a distinguished road
First question you should ask yourself: What is the equation for slip that you want to implement?

Second question you should ask yourself: What is the equation for slip that Fluent has implemented? (This is written in the Help, look it up.)

Third question: How can you choose parameters such that the Fluent implementation is the same as what you want?
pakk is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mixed inflow/outflow downstream boundary condition question peob OpenFOAM Running, Solving & CFD 2 August 14, 2014 09:07
Resolved: Changing boundary condition with UDF according to pressure outlet boundary alpemre Fluent UDF and Scheme Programming 12 February 24, 2014 11:18
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Boundary Condition Types Using Scheme and UDF Nasir FLUENT 0 September 15, 2008 21:54
UDF : boundary condition ID Flav FLUENT 4 June 28, 2001 09:52


All times are GMT -4. The time now is 11:42.