|
[Sponsors] |
April 12, 2013, 19:13 |
How at add multiple udf in fluent?
|
#1 |
Member
Amir
Join Date: Sep 2012
Posts: 47
Rep Power: 14 |
Hey guys,
I have been trying to add multiple udf in FLUENT but I couln,t do it. Can you please help me out? I have my xvelocity and y velocity which are functon of y. I was able to write only fir one of them. here is my code for x velocity. I would like to have amost the same profile for y velocity. #include "udf.h" DEFINE_PROFILE(xvelocity,t,i) { face_t f; real y; real x[ND_ND]; begin_f_loop(f,t) { F_CENTROID(x,f,t); y=x[1]; F_PROFILE(f,t,i)=(0.707/0.141 )*sqrt(y-0.035); } end_f_loop(f,t) } |
|
April 14, 2013, 07:00 |
|
#2 |
New Member
Join Date: Dec 2012
Posts: 11
Rep Power: 14 |
If you are writing them separately then try to write both of the them in one file, use different names for both functions
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF to record FLUENT Solver variables... | mariachi | Fluent UDF and Scheme Programming | 11 | September 24, 2019 01:07 |
Error inputting udf into fluent for mass source | ejvikings | Fluent UDF and Scheme Programming | 0 | April 26, 2012 22:42 |
UDF to record FLUENT solver variables... | mariachi | FLUENT | 1 | February 3, 2010 23:18 |
compiling my UDF | Seyed Farid Hosseinizadeh | FLUENT | 22 | February 14, 2006 11:19 |
UDF in parallel version of fluent | yobee | FLUENT | 2 | August 5, 2004 01:36 |