# fluid residence time

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

 September 15, 2012, 23:43 fluid residence time #1 New Member   Jonas L. Ansoni Join Date: Jun 2011 Location: Brazil Posts: 22 Rep Power: 8 Hi, I am trying to find the time residence of water in a tank. I'm thinking in calculate the residence time as the time which the water takes to travel from the inlet to outlet through the streamlines. I'm using a solver like pisoFoam. Does anyone have any suggestion or know other way to compute the residence time distribution on the openFoam. Any advice will be greatly appreciated. Thanks

September 20, 2012, 17:20
#2
New Member

Jonas L. Ansoni
Join Date: Jun 2011
Location: Brazil
Posts: 22
Rep Power: 8
Hello,

I attached a code where I calculate the velocity components and multiply by a time step, with this I can find the next position of this particle in the next time step with only one particle using the icoFoam solver. However, I have to do this calculation using various particles triggered automatically from inlet.

My questions are: How can I do this calculation utilizing various particles and compare if the calculated points arrived in the outlet using the openFoam classes.

I tested the code cavity example, attached a figure.

Any advice will be greatly appreciated.
Attached Images
 testCavity.PNG (20.0 KB, 47 views)
Attached Files
 icoFoamTEST.zip (2.4 KB, 12 views)

Last edited by Jonas Ansoni; September 20, 2012 at 17:38.

 September 21, 2012, 08:46 #3 Senior Member   Olivier Join Date: Jun 2009 Location: France, grenoble Posts: 265 Rep Power: 11 hello, I think there is already a tools in Paraview to plot path line and color with time. But if you want a more advanced result, you should look at "residence time distribution": add a scalar, run a transient with a dirac / a step function and plot the RDT. regards, olivier

 September 22, 2012, 00:22 #4 New Member   Jonas L. Ansoni Join Date: Jun 2011 Location: Brazil Posts: 22 Rep Power: 8 Hi Olivier, thanks for your answer. I'm working with Multidisciplinary Design Optimization problems where I need to optimize a geometry according with the RTD. I developed a script that generates the geometries, meshes, and call the openfoam solver automatically and a objective function . Could you give me more details of how to calculate the RTD, as you mentioned above? Thanks in advance for your attention. Jonas

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post irishdave OpenFOAM Running, Solving & CFD 30 September 19, 2017 12:38 CKH OpenFOAM Running, Solving & CFD 12 March 21, 2016 14:05 Geraud CFX 6 August 21, 2012 15:34 m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36 Sugen Chetty Main CFD Forum 0 January 28, 2002 10:50

All times are GMT -4. The time now is 05:03.