CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Accessing parcel properties (

Smed March 26, 2013 08:34

Accessing parcel properties
I would like to find the number of parcels in a cell along with the properties of each parcel in a specified cell. I'm using the sprayFoam solver and I know that the parcels are stored in the 'parcels' object of the basicSprayParcel class, but I'm not sure how to access its properties such as mass or number of parcels.

I've seen this post and suggested code,


inline label Particle::cell() const
But when I add this to sprayFoam.C, it gives an error stating that particle has not been defined.


All times are GMT -4. The time now is 04:36.