CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF power law

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

LinkBack Thread Tools Display Modes
Old   June 4, 2013, 02:26
Default UDF power law
New Member
Join Date: Mar 2011
Posts: 2
Rep Power: 0
dimsum is on a distinguished road
Sponsored Links
Hi guys,

I am using FLUENT 14.0 to do a simulation on a building hit by a wind flow, the wind flow should be governed by a power law.

the power law, U=7*((z/0.15)^0.25)

which I have used the following UDF, for the velocity-inlet profile.


#include "udf.h"

real x[ND_ND]; /* this will hold the position vector */
real z;
face_t f;

begin_f_loop(f,thread) /* loops over all faces in the thread passed
in the DEFINE macro argument */
z = x[2];
F_PROFILE(f,thread,index) = 7 * pow(z/0.15, 0.25);


But for the result, the wind speed at the roof top of the building is 11.84, which should be 7m/s.

The height of the building is 150mm. The wind is in z-direction, height in y-direction.

Is something wrong for my UDF?

Please help. Many thanks.
dimsum is offline   Reply With Quote
Sponsored Links


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
Non-Newtonian Power Law for Viscosity John FLUENT 16 September 12, 2015 06:18
Non-Newtonian Flow: Power law (2D BFS) hellouch FLUENT 3 April 21, 2009 03:03
about one seventh power law in CFX Eric CFX 3 January 10, 2007 08:16
power law flow through porous media Francesca Chiusa FLUENT 1 November 3, 2006 15:30
Non newtonian power law model in pipe annulus Poly FLUENT 0 March 24, 2005 16:12

Sponsored Links

All times are GMT -4. The time now is 00:17.