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

UDF for DEFINE_EXCHANGE_PROPERTY

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 2, 2002, 05:28
Default UDF for DEFINE_EXCHANGE_PROPERTY
  #1
Pravesh Kumar
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.

  Reply With Quote

Old   October 3, 2002, 04:57
Default Re: UDF for DEFINE_EXCHANGE_PROPERTY
  #2
lohen
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.
  Reply With Quote

Old   October 3, 2002, 11:26
Default Re: UDF for DEFINE_EXCHANGE_PROPERTY
  #3
Pravesh Kumar
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
  Reply With Quote

Old   October 4, 2002, 09:03
Default Re: UDF for DEFINE_EXCHANGE_PROPERTY
  #4
lohen
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
  Reply With Quote

Old   October 7, 2002, 01:20
Default Re: UDF for DEFINE_EXCHANGE_PROPERTY
  #5
Pravesh Kumar
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.

  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 18:22.