CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF programming

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2009, 16:55
Default UDF programming
New Member
Join Date: Apr 2009
Posts: 3
Rep Power: 14
jaron is on a distinguished road
I have a question on UDS equations. I want to model a UDS
equations with different DEFINE_SOURCE udf's which will be summed to one general source term in the equation by fluent itself (you can give different sources per UDS).

I am writing 1 c-file containing the different source udf's. UDF files for the solid an gas phase are put in one C-file beneath each other. (Like coding a full model).

How will fluent calculate the sources in the UDS? sequentially or all at the same time ? I am asking this question because if fluent calculates them sequentially I can define some general variables above all source UDF's which will be used in every UDF. Also if I implement one subroutine and use (call) this in the different DEFINE_SOURCE udf's, how
will fluent handle this? Will the different DEFINE udf's conflict if i declare unique variables in this subroutine? By this I mean that if they are calculated at the same time the value of this unique variable will change constantly by the input of the different UDF's. If it is calculated sequentially this will not pose a problem...
jaron is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40
UDF programming for pressure 3D..HELP coolyihao Fluent UDF and Scheme Programming 4 July 15, 2010 15:28
how to write an UDF programming in 3D coolyihao FLOW-3D 1 March 16, 2009 08:59
two questions about udf programming Vincent FLUENT 1 October 5, 2008 00:24
UDF programming problem Christian FLUENT 3 April 26, 2002 04:08

All times are GMT -4. The time now is 15:32.