|
[Sponsors] |
April 7, 2003, 12:18 |
Variable velcity at inlet
|
#1 |
Guest
Posts: n/a
|
Hi:
I met a problem in calculating the airflow pass the building. The inlet velocity varies with the height from the groud. It is not a constant. How can I cope with this problem? Thanks John |
|
April 7, 2003, 12:34 |
Re: Variable velcity at inlet
|
#2 |
Guest
Posts: n/a
|
Hi! You can find a good example with explanations in Fluent UDF domentation. You should write UDF which looks something like this (with other velocity function):
include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, position) = 20. - y*y/(.0745*.0745)*20.; } end_f_loop(f, thread) } GOOD LUCK MATEUS |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pulsating flow with non-reflective inlet boundary | cc1000 | CFX | 6 | April 27, 2009 09:10 |
variable pressure at inlet boundary | Stephanie | Siemens | 3 | August 23, 2008 07:04 |
Problems with Inlet species | San24 | Siemens | 1 | May 7, 2008 07:29 |
How to extract Cp values at inlet | tangd | OpenFOAM Running, Solving & CFD | 8 | August 14, 2006 04:17 |
transitional inlet boundary condition | kamp | CFX | 1 | June 21, 2006 12:08 |