|
[Sponsors] |
Can I change the variable in UDF via Fluent console or window without compiling? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2017, 23:15 |
Can I change the variable in UDF via Fluent console or window without compiling?
|
#1 |
Senior Member
Sangwoo Kim
Join Date: Jul 2014
Location: Seoul, South Korea
Posts: 115
Rep Power: 12 |
Hello all!
I want to change my variable used in UDF without re-compiling. For example, #include "udf.h" #define const_min 10 DEFINE_ADJUST(UDF_name, domain) { real var_one; var_one = const_min*5+2; // main body // } I defined the constant, "const_min", and it is used in the body of my UDF. I want to do kind of case study, varying const_min from 10 to, e.g., 100 (10, 11, 15, 20, 40, ..., 100) For this, I should change the constant in the source code and repeat compiling. Can I change this number in the Fluent window? I think I can use some UDS for the variable, but I have no idea how I can do it practically. Thank you all in advance.
__________________
Best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About UDF compiling issues: 'nmake' | Haoyin Shan | Fluent UDF and Scheme Programming | 15 | November 4, 2019 19:05 |
Trouble with compiling UDFs in FLUENT | cp703 | Fluent UDF and Scheme Programming | 28 | June 1, 2018 04:22 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Fluent UDF compiling error C1083 | leizhao512 | Fluent UDF and Scheme Programming | 3 | October 14, 2015 03:15 |
Why I have error compiling UDF with FLUENT12 while no error with Fluent 6.33? | josh_z | FLUENT | 2 | January 11, 2010 12:17 |