|
[Sponsors] |
Not getting paraboloid velocity profile at inlet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 29, 2019, 06:54 |
Not getting paraboloid velocity profile at inlet
|
#1 |
New Member
Join Date: Apr 2019
Posts: 6
Rep Power: 7 |
We are using udf for paraboloid velocity profile at inlet as attached . We have calculated the velocity profile using the centroid data and same formula used in udf in excel and got the desired profile in excel.
But we are not getting the profile in fluent after solving. udf and plot from fluent is attached. please help.... |
|
August 29, 2019, 07:51 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
/*********************************************************************** vprofile.c UDF for specifying steady-state velocity profile boundary condition ************************************************************************/ #include "udf.h" #include "math.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real R,v_max,a,y,z; face_t f; R = 0.02; /* inlet radius in m */ v_max=0.1; begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y=x[1]; z=x[2]; a=-v_max/pow(R,2); F_PROFILE(f, thread, position) = a*(z*z + y*y) + v_max; } end_f_loop(f, thread) } |
|
August 29, 2019, 08:30 |
|
#3 |
New Member
Join Date: Apr 2019
Posts: 6
Rep Power: 7 |
thank you very much....it is now working as desired.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inlet boundary condition with existed velocity profile | wanjia | SU2 | 9 | May 10, 2017 06:33 |
UDF inlet velocity profile mismatch with Fluent | ChristineL | Fluent UDF and Scheme Programming | 15 | November 25, 2016 07:45 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
How to apply an outlet velocity profile to another inlet? | siw | FLUENT | 4 | April 10, 2013 12:19 |
ask for help about velocity inlet profile | yuhehuan | FLUENT | 5 | November 19, 2012 13:59 |