CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   udf boundary condition (vorticity) (https://www.cfd-online.com/Forums/fluent-udf/227120-udf-boundary-condition-vorticity.html)

yassine.bt May 18, 2020 08:37

udf boundary condition (vorticity)
 
1 Attachment(s)
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
Attachment 77733

yassine.bt May 18, 2020 09:08

boundary using UDF -vorticity-
 
1 Attachment(s)
Can anyone tell me how to apply dv/dx=0 and omega=du/dy at a boundary using UDF.:rolleyes:
[v=delta(psi)/delta(x) u=-delta(psi)/delta(y)]
Attachment 77735

vinerm May 18, 2020 09:15

Wall boundary
 
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 May 18, 2020 09:52

Quote:

Originally Posted by vinerm (Post 770962)
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

vinerm May 18, 2020 09:55

Gradient
 
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.

yassine.bt May 18, 2020 10:05

Quote:

Originally Posted by vinerm (Post 770968)
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)??

vinerm May 18, 2020 10:15

Noslip
 
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.

yassine.bt May 18, 2020 10:21

Quote:

Originally Posted by vinerm (Post 770974)
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

alneama October 5, 2022 17:27

How to make a UDF to have a fully developed velocity profile in a 3D rectangular micr
 
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

AlexanderZ October 7, 2022 00:38

Quote:

Originally Posted by alneama (Post 836958)
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

alneama October 7, 2022 15:00

1 Attachment(s)
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.


All times are GMT -4. The time now is 23:25.