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

UDS for residnce time calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2006, 10:36
Default UDS for residnce time calculation
  #1
Vidya
Guest
 
Posts: n/a
Hi,

I want to find the residence time of the fluid in my geometry. I'm not modeling particle tracking nor injecting anything into my flow. How do I find the residence time for such a situation? I got an article from the Fluent manual which talks about the Residence Time Distribution (RTD) in chemical stirred tank reactors. In that it's said that you have to hook a UDS (User Defined Scalar) to Fluent before the simulation. Wjen I went to the Define- User Defined- Scalars panel, it asked me the number of UDS, then there was a mass flow rate option, and something else too (I can't exactly remember).

I don't understand how exactly to use this. Should we include the UDS as a separate program written in C (the same way one would hook an unsteady velocity) and then hook it to Fluent? Or include the UDS function in the UDF code itself? If so, how exactly is this done? Are there any Help solutions or somewhere in the manual that we can refer to?

Thanks, Vidya
  Reply With Quote

Old   August 5, 2006, 19:50
Default Re: UDS for residnce time calculation
  #2
Venkatesh
Guest
 
Posts: n/a
UDS - User Defined Scalar.

Like fluent stores the velocities and pressure, it also provides a way for user to create one or more scalars and manipulate for their convineance.

No coming to calculate the resident time ... after completion of simulation .. u can inject particles(no physical meaning only for post procesing purpose) .. to fine the resident time..

IF your are not comfortable with the idea of using particles for calculate the resident time, You can get a udf from Fluent to do this ( it is availabe in fluentusers.com ) ...in that case yoy may need to run the analysis one more time.

  Reply With Quote

Old   August 7, 2006, 20:28
Default Re: UDS for residnce time calculation
  #3
Vidya
Guest
 
Posts: n/a
Hi Venkatesh,

I found an exmple of the UDF for calculating the residence time in the Fluent manual (Solution ID = 619). I have a couple questions regarding that:

1. I'm already using a UDF for defining my pulsatile velocity. Should I write up and hook a second UDF to compute the residence time? And then follow the same procedure that was followed to hook the unsteady velocity? I mean, compile it, read the header file, cpp file etc?

2. Can the residence time be computed for steady flow too? In this case, there is no need to change the solver settings, right?

3. In the macro for defining this UDF, what equation is to be given in the DEFINE_SOURCE(rt_source,c,t,dS,eqn) what do dS and eqn stand for? What equation is to be given for the "eqn" term? All that I know is that the residence time is to be computed. So what do I specify for the dS and eqn terms?

Thanks, Vidya

  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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 07:55
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 10:20
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
How reduce calculation time? Hesam FLUENT 4 July 3, 2007 09:22
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 13:32


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