|
[Sponsors] |
October 2, 2002, 05:28 |
UDF for DEFINE_EXCHANGE_PROPERTY
|
#1 |
Guest
Posts: n/a
|
hi In writing UDF For DEFINE_EXCHANGE_PROPERTY I am having three phases.I can't increase the no. of arguments for third phase as it is fixed. Then how can i take into account the third phase.
Help needed. |
|
October 3, 2002, 04:57 |
Re: UDF for DEFINE_EXCHANGE_PROPERTY
|
#2 |
Guest
Posts: n/a
|
Hi, you have to declare one thread for one phase :
thread_g=THREAD_SUB_THREAD(mix_thread,f_col); thread_l=THREAD_SUB_THREAD(mix_thread,s_col); mix_thread is the mixture thread, from what you reach the other phase. f_col and s_col represent the phase which are in the first column and in 2nd column of the table Phase/Interaction in fluent. So you can declare as much as phase as you want. Have a look in UDF Booklet in Fluent Documentation. |
|
October 3, 2002, 11:26 |
Re: UDF for DEFINE_EXCHANGE_PROPERTY
|
#3 |
Guest
Posts: n/a
|
Hi Thanks For your suggestion. I have already gone through the UDF Booklet in Fluent Documentation.
/* find the threads for the gas (primary) and solids (secondary phases) */ thread_g = THREAD_SUB_THREAD(mix_thread, s_col);/* gas phase */ thread_s = THREAD_SUB_THREAD(mix_thread, f_col);/* solid phase*/ For the one more phase(liquid) which will be secondary as there will be only one primary phase should i write? thread_l = THREAD_SUB_THREAD(mix_thread, f_col); Then f_col will be comon for both solid and liquid phase.Is this right approach? Waiting for your suggestion. Thanks |
|
October 4, 2002, 09:03 |
Re: UDF for DEFINE_EXCHANGE_PROPERTY
|
#4 |
Guest
Posts: n/a
|
Hi, look in fluent the table, in the menu Define/Phases/Interaction to see which phase is in the fist column and in the 2nd one. if your secondary liquid is in the first column then thread_l = THREAD_SUB_THREAD(mix_thread, f_col); is correct. Anyway, I think fluent considers interaction between secondary phases and primary phases first and after interactions between secondary phases.
Ciao |
|
October 7, 2002, 01:20 |
Re: UDF for DEFINE_EXCHANGE_PROPERTY
|
#5 |
Guest
Posts: n/a
|
hi Thanks!! Hopefully it will work out. How to print the values of exchange terms from UDF to cross-check it with hand calculation to verify that they are giving correct values.
Waiting for your suggestions. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |