|
[Sponsors] |
UDF For inlet Velo BC, trouble in soln calculation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2020, 03:16 |
UDF For inlet Velo BC, trouble in soln calculation
|
#1 |
New Member
Siddharth
Join Date: May 2020
Posts: 2
Rep Power: 0 |
So i wrote the following snippet in order to obtain a power law velocity profile for my inlet BC.The z is the z co-ordinate and while i was able to interpret and hook the udf. as soon as start calculating the velocity, the continuity and all 3 velocities remain zero in residuals and only k & w are iterating.
My main aim is to do for transient k-w sst simulations but I also switched to steady just to check but it didnt work. Pls enlighten me as I am new to this UDF. Another i would want to know is how to plot velocity vs z-coordinate while calculating solution pls see the attachments #include "udf.h" DEFINE_PROFILE(x_velocity,thread,index) { real coord[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(coord,f,thread); coord[2]=z; F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584); } end_f_loop(f,thread) } |
|
October 5, 2020, 04:11 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
tobe
Code:
z=coord[2]; Code:
coord[2]=z;
__________________
best regards ****************************** press LIKE if this message was helpful |
|
March 24, 2022, 09:08 |
Need help with UDF!
|
#3 |
New Member
Soma
Join Date: Mar 2022
Posts: 1
Rep Power: 0 |
F_PROFILE(f,thread,index)= 80.6715 * pow(z/323, 0.3584)
From where did you get this? is there a standard expression? and what does the values stand for?? |
|
Tags |
fluent, fluent - udf - parallel, inlet bc, report definition, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I stop the calculation in UDF | Seyoung Oh | Fluent UDF and Scheme Programming | 1 | September 24, 2013 08:44 |
Calculation of face vaules with udf | rom | FLUENT | 0 | November 3, 2005 03:04 |
UDF for drag calculation | Luca | FLUENT | 0 | January 26, 2005 04:54 |
If it's right to use this UDF in DPM calculation? | welch | FLUENT | 0 | May 8, 2004 06:49 |
udf for Cd calculation | Micaela Demichela | FLUENT | 2 | November 16, 2001 00:40 |