CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Particle position each timestep (during simulation)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2010, 06:32
Cool Particle position each timestep (during simulation)
  #1
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
Hi, i have the following problem:
I need to know how many particles are there in the zone 1 and zone 2 of a room.

An example:
10 meter long room (x direction), while the first 5 meters are the zone 1 and the other 5 meters are zone 2.
The particle position file outputs the coordinate (x y z) of each particle, so it will be like:
if x < 5, sum to zone 1,
else, sum to zone 2

The actual output while solving the uncoupledKinematicParcelFoam is

Cloud: kinematicCloud
Total number of parcels added = 1210
Total mass introduced = 1.01368723e-17
Current number of parcels = 1210
Current mass in system = 1.01368723e-17
ExecutionTime = 0.61 s ClockTime = 1 s

and my objective is to add the following
Current number of parcels in Zone 1 = xxx
Current number of parcels in Zone 2 = yyy

Is it possible to make it in the solver?
Or it's better to make a separate code to extract this information?
By the way, i don't know c++ programming =(

Thank you, and if anyone needs I can send the room from Annex 20 with the uncoupledKinematicParcelFoam working.

PS: Using OpenFOAM 1.7.x
lindner is offline   Reply With Quote

Old   September 10, 2010, 00:58
Default
  #2
Member
 
edison
Join Date: May 2009
Location: Australia
Posts: 35
Rep Power: 16
Edison_Ge is on a distinguished road
rather than modify the code, you can acturally find the particle position under time/lagrangian/postion. sort them in the dirction of interest in Excel or matlab. Then your answer would be obvious.
Edison_Ge is offline   Reply With Quote

Old   September 10, 2010, 03:22
Default
  #3
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
Thank you for the answer Edison, this really works for simple cases if there is not many zones.
But the problem is to have more 3D zones where the coordinates are complicated.
I did a simple fortran code and its working by the moment.

Thank you for the tips
lindner is offline   Reply With Quote

Reply

Tags
lagrangian particle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Particle Trajectory calculation yueroo FLUENT 2 July 13, 2009 13:32
Display Particle Position on a Plane Jana FLUENT 2 July 13, 2007 02:46
Timestep for transient simulation houman CFX 2 April 28, 2005 03:44
timestep for combustion simulation yangqing FLUENT 0 August 18, 2002 08:46
Particle Trajectory calculation when particle hit yueroo FLUENT 2 February 28, 2001 04:26


All times are GMT -4. The time now is 06:43.