# Number of Droplets per Cell

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

 August 4, 2009, 13:40 Number of Droplets per Cell #1 New Member   Join Date: Jul 2009 Posts: 14 Rep Power: 10 Sponsored Links Hi All, I would like to find the number of droplets per cell in dieselFoam. I know that, mathematically, number of droplets per cell = mass of droplets per cell / stripped mass of droplets per cell. In parcel.H, can I declare number of droplets per cell as dimensionedscalar nD ? If so, will this in parcelFunctions.H be okay? dimensionedScalar parcel::nD (const label celli) const { forAll(celli) { return nD[celli] = m[celli] / ms[celli] ; } } I guess after that I have to call the function in createFields.H I am clueless of now, please help. Thanks, viv05

 August 4, 2009, 14:02 #2 New Member   Join Date: Jul 2009 Posts: 14 Rep Power: 10 Sorry, I guess this might be more suitable: dimensionedScalar parcel::nD (cell()) const { forAll(celli) { nD[celli] += m[celli] / ms[celli] ; } return nD; } If anyone knows this, Yell! Thanks, Viv05

August 11, 2009, 02:35
#3
Senior Member

Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 277
Rep Power: 11
Dear Viv05,

the parcels are stored in a linked list and carry the cell ID of the cell they are (currently) in.

Quote:
 inline label Particle::cell() const
You can also ask for the number of drops they represent

Quote:
 scalar parcel::N(const scalar rho) const
To create the statistics, you need to loop over all parcels.

Henrik

 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 laliong Main CFD Forum 11 March 19, 2015 12:42 xujjun CFX 9 June 9, 2009 07:59 bohis FLUENT 0 April 7, 2008 05:12 Daniel Lattin Siemens 4 October 20, 2006 16:19 CMB Siemens 1 December 4, 2003 05:05

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