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

UDF DEFINE_UDS_FLUX problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2007, 00:51
Default UDF DEFINE_UDS_FLUX problem
  #1
Tim
Guest
 
Posts: n/a
Hi,

I am trying to add a uds equation into my simulation of two phase flow. I define my flux term with DEFINE_UDS_FLUX, the result is awful. I compared the result of default "mass flow rate" and a very simple flux function, which are supposed to yield similar results. But the difference is very big, the UDF even don't converge. Could you please help me out with it?

DEFINE_UDS_FLUX(my_uds_flux,f,t,i) { return F_FLUX(f,t); }

Thank you very much.

Tim
  Reply With Quote

Old   March 4, 2007, 15:55
Default Re: UDF DEFINE_UDS_FLUX problem
  #2
Tim
Guest
 
Posts: n/a
I am using Fluent 6.3. Here, my uds is hooked to the dispersed phase. I tried it on the continue phase, the "mass flow rate" option and F_FLUX gave consistent results. only when i hook it to the solid phase with the udf difined flux, the computation blow out. Any suggestion will be heartily appreciated.

Tim
  Reply With Quote

Old   March 5, 2007, 13:12
Default Re: UDF DEFINE_UDS_FLUX problem
  #3
Tim
Guest
 
Posts: n/a
hi, someone told me that to get the right flux, the return value of F_FLUX must time the area of the face. Is it correct, I could not find it in the user guide.
  Reply With Quote

Old   October 28, 2012, 08:56
Default
  #4
New Member
 
Leon Chen
Join Date: Aug 2012
Location: ShenZhen, China
Posts: 9
Rep Power: 14
759599290 is on a distinguished road
Hi,Tim
I am checking what does F_FLUX return now. I have noticed that F_FLUX is a scalar rather than a vector. In udf manual of fluent 6.3, there is a paragram that use vec(velocity) dot vec(Face Area) to represent F_FLUX, according to this, it seems that F_FLUX itself returns the value of mass flow rate through the given face, its unit might be kg/s. But when I use the code in the udf mannul to check this idea, i found that F_FLUX(f,tf) is not equal to vec(velocity) dot vec(Face Area). if you get some useful information about F_FLUX, i hope you can share with us.
759599290 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
what's the problem with my udf zzyan FLUENT 0 November 4, 2010 04:56
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 20:55.