CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2006, 07:18
Default UDF help
  #1
Matt
Guest
 
Posts: n/a
Hi all: I am modelling a fire and I have a volumetric heat source inreasing linerly with time upto 15th minute where released heat rate is 5 MW. I have never written a PDF before and i am a beginner in C. So your advices would be appreciated. -Matt
  Reply With Quote

Old   September 28, 2006, 12:55
Default Re: UDF help
  #2
Seeker Phil
Guest
 
Posts: n/a
As most other users will tell you, you got to read the manual.

Use the UDF that defines a profile. You can put a check for the flow time and when the logic is true it will stop increasing the temperature.
  Reply With Quote

Old   September 28, 2006, 15:32
Default Re: UDF help
  #3
cg
Guest
 
Posts: n/a
or you could use...

#include "udf.h"

DEFINE_SOURCE(energy_source,c,t,dS,eqn) {

real time = CURRENT_TIME;

real source = 100. * time; /* units of Watts/m3 */

dS[eqn] = 0.;

return source; }
  Reply With Quote

Old   September 29, 2006, 00:10
Default Re: UDF help
  #4
Matt
Guest
 
Posts: n/a
thank you much Phil and cg, appreciated..
  Reply With Quote

Reply


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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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