CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Can I change the variable in UDF via Fluent console or window without compiling?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2017, 22:15
Default 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: 11
swtbkim is on a distinguished road
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
swtbkim is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 18:05
Trouble with compiling UDFs in FLUENT cp703 Fluent UDF and Scheme Programming 28 June 1, 2018 03:22
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
Fluent UDF compiling error C1083 leizhao512 Fluent UDF and Scheme Programming 3 October 14, 2015 02:15
Why I have error compiling UDF with FLUENT12 while no error with Fluent 6.33? josh_z FLUENT 2 January 11, 2010 11:17


All times are GMT -4. The time now is 16:50.