CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

udf & uds

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

LinkBack Thread Tools Display Modes
Old   November 11, 2001, 13:19
Default udf & uds
Posts: n/a
Hi, I am doing some modeling work by Fluent, there is a problem for me to call the result from one subroutine to another for further calculation, could any one kindly tell me how to do it? Thanks. Here is part of my program, I need to call the result of F_UDSI from UDS_FLUX when doing the calculation of source in SOURCE.

DEFINE_UDS_FLUX(a,f,t,i) { face_t f; Thread *t=Look_Thread(domain,ID);





return F_UDSI(f,t,0); } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DEFINE_SOURCE(qq_source,c,thread,ds,eqn) {

cell_t c;

face_t f;

Thread *t;

real source,I0,w;




return source; } thanks
  Reply With Quote

Old   November 11, 2001, 21:38
Default Re: udf & uds
Greg Perkins
Posts: n/a
You should note that for each cell there are multiple faces - so generally your source term will require some integration over all these faces - see Gauss divergence theorem in math books, which is the normal way of doing this.

Alternatively, you can use adjacent cell information to interpolate to a face.

You need to remeber that Fluent doesn't necessarily store face data - for many variables only cell data is stored. Look at the macro definitions in .h files and you'll see that the face definitions and cell definitions are often the same!

  Reply With Quote


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
uds flux - drift velocity - udf johnwinter Fluent UDF and Scheme Programming 3 November 25, 2017 05:07
error about uds in udf a.maroofi Fluent UDF and Scheme Programming 0 September 22, 2010 02:23
connection between udf and uds a.maroofi Fluent UDF and Scheme Programming 1 September 19, 2010 08:46
Associating profile files for the UDS though a UDF Bharath FLUENT 0 December 1, 2006 16:58
UDS & UDF geg FLUENT 0 May 25, 2006 12:06

All times are GMT -4. The time now is 04:12.