CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF help

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

LinkBack Thread Tools Display Modes
Old   September 28, 2006, 07:18
Default UDF help
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
Seeker Phil
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
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
Posts: n/a
thank you much Phil and cg, appreciated..
  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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

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