|
[Sponsors] |
June 4, 2013, 03:26 |
UDF power law
|
#1 |
New Member
Join Date: Mar 2011
Posts: 2
Rep Power: 0 |
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. |
|
|
|
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 |