CFD Online Logo CFD Online URL
Home > Forums > FLUENT

3D model velocity profile

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

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

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)
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


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
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 07:45
Shear stress from velocity profile baranii2000 Main CFD Forum 6 November 12, 2015 04:40
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 11:11

All times are GMT -4. The time now is 03:40.