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

3D model velocity profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2012, 13:17
Default 3D model velocity profile
  #1
New Member
 
rayolau
Join Date: Aug 2012
Posts: 23
Rep Power: 13
rayolau is on a distinguished road
Hi!

I am simulating the air flow over desert surface. I need to define a parabolic function of the wind in the inlet domain. My model is 3D. The function I have to define is: u (z) = u * / k ln (z / zo), where u = average wind speed (m / s), u * = friction velocity (m / s); k = von Karman constant = 0.4, z = height above the surface (m) = zo = 0.00008 surface roughness.

I want to define a maximum speed in function, for example, 6 m/s.


I need help with the UDF, I read the ANSYS FLUENT UDF Manual and exemples in this forum and I think that the macro is the following:

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];
real y; // Vertical Distance
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[2];
F_PROFILE(f, thread, position) = (I need help here)

}

end_f_loop(f, thread)
}

Thanks for your help!
rayolau 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 inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 06:45
Shear stress from velocity profile baranii2000 COMSOL 4 November 11, 2015 04:08
velocity profile inlet boundary condition question Lcw FLUENT 3 August 3, 2012 05:53
Export & Import Velocity profile as Inlet eRzBeNgEl STAR-CCM+ 6 March 26, 2012 05:16
Initial pressure and transverse velocity fields to initialize turbulence model nickvinn Main CFD Forum 0 February 29, 2012 10:11


All times are GMT -4. The time now is 09:38.