CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF compute residence time session Id 619

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

LinkBack Thread Tools Display Modes
Old   April 5, 2009, 11:13
Default UDF compute residence time session Id 619
New Member
Join Date: Apr 2009
Posts: 13
Rep Power: 7
lisa is on a distinguished road

I am looking for UDF to compute residence time with the session ID 619. Can anyone post the code when u have.

Thanks in advance
lisa is offline   Reply With Quote

Old   April 6, 2009, 06:31
Senior Member
Join Date: Mar 2009
Posts: 133
Rep Power: 7
coglione is on a distinguished road
Here it is:

#include "udf.h"

* UDF to compute fluid residence time
* by William Wangard, Ph.D.
* Fluent, Inc.

* This UDF requires at least 1 UDS to be defined
* At inlet, define UDS (value) = 0
* UDS will have units of time and represent approximate residence time
* of fluid in domain
* Diffusivity of scalar should be small to reduce diffusion i.e. 1E-5

real source = C_R(c,t);
dS[eqn] = 0.0;
return source;

coglione is offline   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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 26 July 24, 2014 05:30
Availability of previous time level values in UDF ranga sudarsan FLUENT 0 September 1, 2008 10:17
Residence time in VoF-model Andreas FLUENT 2 February 15, 2008 07:47
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
residence time Sugen Chetty Main CFD Forum 0 January 28, 2002 10:50

All times are GMT -4. The time now is 17:45.