|
[Sponsors] |
April 16, 2014, 03:52 |
Velocity profile
|
#1 |
Member
Ahmet
Join Date: Mar 2011
Location: Ankara/ Turkey
Posts: 37
Rep Power: 15 |
Hi everybody,
I'm trying to simulate parabolic velocity profile at inlet. I have search the web and could not find any solution to this problem. Could you help me please? Thanks in advance |
|
April 16, 2014, 06:40 |
velocity profile
|
#2 |
New Member
Join Date: May 2012
Posts: 7
Rep Power: 14 |
Hi...
u have to write the following UDF for it... and interpret it. the F_PROFILE is the macro for the velcoity profile and the equation infront of it is the profile. #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, nv) { float x[2]; /* this will hold the position vector*/ float y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, nv) =20.*(1.- y*y/(.0745*.0745)); } end_f_loop(f, thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[UDF] Relative coordinates in logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 25 | July 13, 2017 04:44 |
[swak4Foam] Inlet velocity profile for turbulent pipe flow using swak4Foam | zordiack | OpenFOAM Community Contributions | 5 | February 23, 2016 02:52 |
Logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 0 | April 23, 2009 20:09 |
[boundary condition] logarithmic velocity profile | cfdworker | FLUENT | 2 | April 18, 2009 00:36 |
Prescribed inflow velocity profile - how to? | Alan | Main CFD Forum | 10 | October 28, 2005 13:14 |