|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Jul 2009
Posts: 14
Rep Power: 18 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Jul 2009
Posts: 14
Rep Power: 18 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 | ||
|
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 285
Rep Power: 19 ![]() |
Dear Viv05,
the parcels are stored in a linked list and carry the cell ID of the cell they are (currently) in. Quote:
Quote:
Henrik |
|||
|
|
|
|||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |