|
[Sponsors] |
April 6, 2009, 17:55 |
UDF programming
|
#1 |
New Member
Join Date: Apr 2009
Posts: 3
Rep Power: 17 |
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... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |
UDF programming for pressure 3D..HELP | coolyihao | Fluent UDF and Scheme Programming | 4 | July 15, 2010 16:28 |
how to write an UDF programming in 3D | coolyihao | FLOW-3D | 1 | March 16, 2009 09:59 |
two questions about udf programming | Vincent | FLUENT | 1 | October 5, 2008 01:24 |
UDF programming problem | Christian | FLUENT | 3 | April 26, 2002 05:08 |