|
[Sponsors] |
September 28, 2006, 07:18 |
UDF help
|
#1 |
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
|
|
September 28, 2006, 12:55 |
Re: UDF help
|
#2 |
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. |
|
September 28, 2006, 15:32 |
Re: UDF help
|
#3 |
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; } |
|
September 29, 2006, 00:10 |
Re: UDF help
|
#4 |
Guest
Posts: n/a
|
thank you much Phil and cg, appreciated..
|
|
|
|
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 |