CFD Online URL
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Testing a UDF without Fluent

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2012, 09:23
Default Testing a UDF without Fluent
  #1
New Member
 
unver
Join Date: Sep 2009
Posts: 9
Rep Power: 7
unver is on a distinguished road
Dear Friends;
I am cruious if we can easily test the workings of a UDF without pluging it into FLUENT and let it run.
unver is offline   Reply With Quote

Old   May 28, 2012, 17:58
Default
  #2
New Member
 
Patrick
Join Date: Apr 2012
Posts: 28
Rep Power: 4
Patrick1 is on a distinguished road
Quote:
Originally Posted by unver View Post
Dear Friends;
I am cruious if we can easily test the workings of a UDF without pluging it into FLUENT and let it run.
Well it would be easy for a simple UDF, to copy and paste the working part of the code, (eg. definition of velocity that changes with time), into a C program, then output the velocity for your desired time range and plot the results as a graph.

But you could just as easily set this up in excel using your exact velocity function. What exactly do you want to test?
Patrick1 is offline   Reply With Quote

Old   May 29, 2012, 07:25
Default
  #3
New Member
 
unver
Join Date: Sep 2009
Posts: 9
Rep Power: 7
unver is on a distinguished road
Dear Patrick;
There is no problem with simple problems, as you have mentioned, check can be made by a complier or an excel. However, as the program gets larger with many "DEFINE_**" commands it is difficult to check which one works at which time, so it is easy to lose the track of logic. At the moment, I am doing this track keeping with a paper and a pen, and just wondering if there is a faster way of doing it.
unver is offline   Reply With Quote

Old   May 29, 2012, 12:45
Default
  #4
New Member
 
Patrick
Join Date: Apr 2012
Posts: 28
Rep Power: 4
Patrick1 is on a distinguished road
Quote:
Originally Posted by unver View Post
Dear Patrick;
There is no problem with simple problems, as you have mentioned, check can be made by a complier or an excel. However, as the program gets larger with many "DEFINE_**" commands it is difficult to check which one works at which time, so it is easy to lose the track of logic. At the moment, I am doing this track keeping with a paper and a pen, and just wondering if there is a faster way of doing it.
I don't think there is, to save using a pen and paper you could put every DEFINE between comments, and test one at a time, but otherwise there's no easy way to check unless you want to write your own checking program. Unless you have large numbers of UDFs to write there is no point in that, however.
Patrick1 is offline   Reply With Quote

Reply

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
fluent udf, saving data in udf mohsen zendehbad Fluent UDF and Scheme Programming 13 March 21, 2014 17:36
UDF in Fluent Andrew Fluent UDF and Scheme Programming 4 March 16, 2012 05:35
Transient pressure UDF for parallel fluent droberts Fluent UDF and Scheme Programming 5 October 11, 2010 05:13
Using Fluent with a UDF frm a remote m/c aarti FLUENT 2 September 11, 2008 20:53
Can somebody send me a Fluent 6 UDF manual?? KKLAU FLUENT 4 April 14, 2004 17:37


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