Particle position each timestep (during simulation)

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 August 27, 2010, 06:32 Particle position each timestep (during simulation) #1 Member   Join Date: Mar 2010 Posts: 42 Rep Power: 9 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

 September 10, 2010, 00:58 #2 Member   edison Join Date: May 2009 Location: Australia Posts: 35 Rep Power: 10 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.

 September 10, 2010, 03:22 #3 Member   Join Date: Mar 2010 Posts: 42 Rep Power: 9 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

 Tags lagrangian particle

 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 yueroo FLUENT 2 July 13, 2009 13:32 Jana FLUENT 2 July 13, 2007 02:46 houman CFX 2 April 28, 2005 03:44 yangqing FLUENT 0 August 18, 2002 08:46 yueroo FLUENT 2 February 28, 2001 05:26

All times are GMT -4. The time now is 21:09.

 Contact Us - CFD Online - Top