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

udf boundary condition (vorticity)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2020, 09:37
Exclamation udf boundary condition (vorticity)
  #1
New Member
 
yassine
Join Date: Apr 2020
Posts: 8
Rep Power: 6
yassine.bt is on a distinguished road
Hi
I don't know how to write udf boundary condition for vorticity .I bring to your attention that my work has been done on the nanofluid and more precisely I am working on the configuration of Rayleigh Bénard (natural convection).

Fig. 1 shows a schematic diagram of the Rayleigh-Bénard (RB) problem. For the RB problem, the distance between the upper cold and lower hot plates is defined by H and the width of the top and bottom plates is defined by W. The plates’ width W is considered infinite and treated by a periodicity boundary condition. The bottom plate is maintained at a hot temperature TH=50 C whereas the top plate is maintained at a cold temperature TC=22 C. The fluid enclosed between the plates is water based nanofluid containing CuO nanoparticles. The nanofluid is assumed incompressible and the flow is assumed as laminar and twodimensional.
thanks
Inkedgh_LI.jpg
yassine.bt is offline   Reply With Quote

Old   May 18, 2020, 10:08
Exclamation boundary using UDF -vorticity-
  #2
New Member
 
yassine
Join Date: Apr 2020
Posts: 8
Rep Power: 6
yassine.bt is on a distinguished road
Can anyone tell me how to apply dv/dx=0 and omega=du/dy at a boundary using UDF.
[v=delta(psi)/delta(x) u=-delta(psi)/delta(y)]
Inkedgh_LI.jpg
yassine.bt is offline   Reply With Quote

Old   May 18, 2020, 10:15
Default Wall boundary
  #3
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Fluent uses momentum conservation and not vorticity or Poisson's equation. The equation you have is written in terms of streamfunction and implies no-slip condition. That is the default condition in Fluent and you don't need to do anything
yassine.bt likes this.
__________________
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.
vinerm is offline   Reply With Quote

Old   May 18, 2020, 10:52
Default
  #4
New Member
 
yassine
Join Date: Apr 2020
Posts: 8
Rep Power: 6
yassine.bt is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Fluent uses momentum conservation and not vorticity or Poisson's equation. The equation you have is written in terms of streamfunction and implies no-slip condition. That is the default condition in Fluent and you don't need to do anything
But I fond in the results that dv/dx is not equal 0
yassine.bt is offline   Reply With Quote

Old   May 18, 2020, 10:55
Default Gradient
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
That won't be 0 and should not be. Look at the document you shared. The condition is NOT

\frac{d^2\psi}{dy^2} = 0

but \psi = 0, implying velocity is 0.
__________________
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.
vinerm is offline   Reply With Quote

Old   May 18, 2020, 11:05
Default
  #6
New Member
 
yassine
Join Date: Apr 2020
Posts: 8
Rep Power: 6
yassine.bt is on a distinguished road
Quote:
Originally Posted by vinerm View Post
That won't be 0 and should not be. Look at the document you shared. The condition is NOT

\frac{d^2\psi}{dy^2} = 0

but \psi = 0, implying velocity is 0.
I think psi=0 that mean (noslip) and omega(rotational flow)??
yassine.bt is offline   Reply With Quote

Old   May 18, 2020, 11:15
Default Noslip
  #7
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
That's correct and no-slip implies velocity is 0 at the wall, i.e., the default condition in Fluent. As far as rotation is concerned, in a 2D case, rotation is possible only around z-axis, so, \Omega = (0~0~\omega_z) where \omega_z is a function of velocity gradient.
__________________
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.
vinerm is offline   Reply With Quote

Old   May 18, 2020, 11:21
Default
  #8
New Member
 
yassine
Join Date: Apr 2020
Posts: 8
Rep Power: 6
yassine.bt is on a distinguished road
Quote:
Originally Posted by vinerm View Post
That's correct and no-slip implies velocity is 0 at the wall, i.e., the default condition in Fluent. As far as rotation is concerned, in a 2D case, rotation is possible only around z-axis, so, \Omega = (0~0~\omega_z) where \omega_z is a function of velocity gradient.
so I don't need to do anything
okay thank you so much
yassine.bt is offline   Reply With Quote

Old   October 5, 2022, 18:27
Default How to make a UDF to have a fully developed velocity profile in a 3D rectangular micr
  #9
New Member
 
Dr. Ahmed F. Al-Neama
Join Date: Oct 2021
Location: Mosul - Iraq
Posts: 3
Rep Power: 5
alneama is on a distinguished road
Hi everyone,
How to make a UDF to have a fully developed velocity profile in a 3D rectangular microchannel having a cross sectional area of 2mm (H) * 1mm (W)? I want to interpreted it to ANSYS (Fluent).
Regards.
Dr. Ahmed F. Al-Neama
alneama is offline   Reply With Quote

Old   October 7, 2022, 01:38
Default
  #10
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by alneama View Post
Hi everyone,
How to make a UDF to have a fully developed velocity profile in a 3D rectangular microchannel having a cross sectional area of 2mm (H) * 1mm (W)? I want to interpreted it to ANSYS (Fluent).
Regards.
Dr. Ahmed F. Al-Neama
look for DEFINE_PROFILE in Ansys Fluent Customization manual
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   October 7, 2022, 16:00
Default
  #11
New Member
 
Dr. Ahmed F. Al-Neama
Join Date: Oct 2021
Location: Mosul - Iraq
Posts: 3
Rep Power: 5
alneama is on a distinguished road
Hi Alexander,
I did it but unfortunately I could not found what I want (which is fully developed laminar flow in the entrance of a 3D rectangular microchannel). I have found UDF fo 2D duct with turbulent flow regime as shown in the figure attached. I would be very grateful if any one could help me.
The cross sectional area of the rectangular microchannel is 1mm width and 2mm height, while the length of the microchannel is 20mm. Assume the inlet velocity is 0.2 m/sec (laminar flow)
Regards.
Attached Images
File Type: jpeg FECD42C1-C946-434B-A99A-23ED6418B106.jpeg (184.2 KB, 13 views)
alneama 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
How do you use heat flux as a boundary condition in a non-wall area in UDF? JuBong Fluent UDF and Scheme Programming 2 July 2, 2018 22:15
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 06:09
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 12:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
UDF Boundary Condition Victor FLUENT 2 November 6, 2003 12:37


All times are GMT -4. The time now is 15:04.