|
[Sponsors] |
April 8, 2018, 10:44 |
help with udf for wind profil at inlet
|
#1 |
New Member
BEKRAOUI Adil
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
hi;
i'm a beginner with udf at fluent. i try to modify the tutorial on velocity profil at inlet that cames with fluent documentation. this is the code (i just changed the equation) /************************************************** ********************* vprofile.c UDF for specifying steady-state velocity profile boundary condition ************************************************** **********************/ #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) = 2. - (y-84)*(y-84)/(84*84)*2.; } end_f_loop(f, thread) } when i compile and execute, the solution diverges. and when i try to initialize from the inlet i have X Velocity=8674757m/s i even tried to put F_PROFILE(f, thread, position) = 2. but i have always the same error. the geometry is a 3D square with dimentions : H=84m --> Y axis L=100m --> X axis W=2 m --> Z axis tank you |
|
April 8, 2018, 11:08 |
solved
|
#2 |
New Member
BEKRAOUI Adil
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
sorry
i found that fluent was pointing to the wrong .c file |
|
Tags |
fluent - udf, fluent 6.3.26, wind profile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disappearing mass when using udf inlet profile | divergence | Fluent UDF and Scheme Programming | 5 | January 2, 2021 15:56 |
Outlet temperature to temperature boundary condition of velocity inlet. (UDF) | dillon | Fluent UDF and Scheme Programming | 3 | March 25, 2018 12:06 |
UDF for inlet velocity alongwith UDF for properties | akshayy224 | FLUENT | 0 | February 1, 2018 10:17 |
Inlet won't apply UDF and has temperature at 0K! | tccruise | Fluent UDF and Scheme Programming | 2 | September 14, 2012 07:08 |
Probleme to interpret 3D temperature profil UDF | christophe06 | Fluent UDF and Scheme Programming | 4 | February 20, 2012 09:06 |