|
[Sponsors] |
April 21, 2016, 02:12 |
UDF on Define_source
|
#1 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Good morning,
May I ask, I have a udf code with DEFINE macros as given below: Define_init Define_source Define_adjust Define_on_demand I have an experience the divergence of the AMG solver(related to pressure). I have set to low ratio of mesh to avoid the problem. Is it the problem is probably come from the specific MACRO Define_source? Thank you. |
|
April 21, 2016, 06:58 |
|
#2 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
1st) Check if the values of the DEFINE_INIT are correct and fluent is recognizing it (plot the contours and see if the values are what you expect) 2nd) Plot messages with your variable in your source and see if you are getting what it is supposed to be. Change the variables bellow for yours and see what it returns to you. Double check with your hand calculation. Message ("Variable1 = %f, Varibale2 %f/n", Variable1, Variable2) 3rd) If the 2 previous steps are OK, do the 2nd step on the DEFINE_ADJUST macro 4th) Check the under-relaxation factors; |
||
April 21, 2016, 08:03 |
|
#3 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Okey Bruno Machado,
Appreciate for the steps given. I will give my feedbacks later =) |
|
April 22, 2016, 01:48 |
|
#4 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Good day Bruno Machado,
Can I just testing my UDF code with the message of output file without inserting the load model together ? Thank you. |
|
April 22, 2016, 05:30 |
|
#5 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
||
April 22, 2016, 08:51 |
|
#6 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Good day Bruno Machado,
I am a new user to Ansyst Fluent. Currently i have a udf code that need to be solve. The code is already written but it has AMG divergence error. I did not have my own Ansyst software and if I want to use it, i need to use someone's computer. So I am not always in front of the Ansyst. Therefore, I do not exactly know how it works to retrieve the output file from the UDF code. Thank you. My current step is to locate the message () from DEFINE_source to detect the where the divergence error is came from. |
|
April 22, 2016, 09:04 |
|
#7 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
To test your UDF, there is no other way rather than trying it on Fluent. If you are a student, you might be able to download a free student version on the website. have a look at it. |
||
April 22, 2016, 09:07 |
|
#8 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Okey. I am a student.
My laptop is 32 bit. So I can only using Ansyst on computer in office which is already download. |
|
April 23, 2016, 12:31 |
|
#9 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Good day,
May I ask, in order to retrieve the UDF data through message (), is it involved in hooking UDF? Thank you |
|
April 24, 2016, 18:19 |
|
#10 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
||
April 24, 2016, 22:30 |
|
#11 |
Member
mimi
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
Thank you. I try to make my UDF code works
|
|
Tags |
udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
Parallelize UDF? Which kind of UDF? | Lilly | FLUENT | 5 | March 25, 2014 03:05 |
Help! Delete the UDM codes in the UDF | Messi | Fluent UDF and Scheme Programming | 2 | January 28, 2014 10:01 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |