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

UDF power law

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2013, 03:26
Default UDF power law
  #1
New Member
 
Join Date: Mar 2011
Posts: 2
Rep Power: 0
dimsum is on a distinguished road
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"

DEFINE_PROFILE(x_velocity,thread,index)
{
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 */
{
F_CENTROID(x,f,thread);
z = x[2];
F_PROFILE(f,thread,index) = 7 * pow(z/0.15, 0.25);
}
end_f_loop(f,thread)
}

--------------------------------------------------------------------------

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

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
Non-Newtonian Power Law for Viscosity John FLUENT 16 September 12, 2015 07:18
Non-Newtonian Flow: Power law (2D BFS) hellouch FLUENT 3 April 21, 2009 04: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


All times are GMT -4. The time now is 21:28.