# UDF DEFINE_UDS_FLUX problem

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

 March 4, 2007, 00:51 UDF DEFINE_UDS_FLUX problem #1 Tim Guest   Posts: n/a Sponsored Links 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

 March 4, 2007, 15:55 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

 March 5, 2007, 13:12 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.

 October 28, 2012, 08:56 #4 New Member   Leon Chen Join Date: Aug 2012 Location: ShenZhen, China Posts: 9 Rep Power: 6 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.

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Rizwan Fluent UDF and Scheme Programming 39 June 29, 2017 19:04 zzyan FLUENT 0 November 4, 2010 04:56 july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56 akr FLUENT 3 August 22, 2007 07:14 chiseung FLUENT 4 January 10, 2002 10:58