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

Number of Droplets per Cell

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 4, 2009, 13:40
Default Number of Droplets per Cell
  #1
New Member
 
Join Date: Jul 2009
Posts: 14
Rep Power: 8
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, 14:02
Default
  #2
New Member
 
Join Date: Jul 2009
Posts: 14
Rep Power: 8
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, 02:35
Default
  #3
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 275
Rep Power: 9
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Reynolds Number laliong Main CFD Forum 11 March 19, 2015 12:42
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07:59
accessing upstream cell - UDF bohis FLUENT 0 April 7, 2008 05:12
Accessing neighboring cells' cell number Daniel Lattin CD-adapco 4 October 20, 2006 16:19
cell to cell relation CMB CD-adapco 1 December 4, 2003 05:05


All times are GMT -4. The time now is 18:47.