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

Number of Droplets per Cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2009, 14:40
Default Number of Droplets per Cell
  #1
New Member
 
Join Date: Jul 2009
Posts: 14
Rep Power: 17
viv05 is on a distinguished road
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
viv05 is offline   Reply With Quote

Old   August 4, 2009, 15:02
Default
  #2
New Member
 
Join Date: Jul 2009
Posts: 14
Rep Power: 17
viv05 is on a distinguished road
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
viv05 is offline   Reply With Quote

Old   August 11, 2009, 03:35
Default
  #3
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
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
henrik is offline   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
Cell Reynolds Number laliong Main CFD Forum 12 September 17, 2019 04:18
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
accessing upstream cell - UDF bohis FLUENT 0 April 7, 2008 06:12
Accessing neighboring cells' cell number Daniel Lattin Siemens 4 October 20, 2006 17:19
cell to cell relation CMB Siemens 1 December 4, 2003 05:05


All times are GMT -4. The time now is 07:34.