CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Accessing parcel properties (https://www.cfd-online.com/Forums/openfoam-programming-development/115215-accessing-parcel-properties.html)

Smed March 26, 2013 07: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,
http://www.cfd-online.com/Forums/ope...-per-cell.html

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.

Thanks.


All times are GMT -4. The time now is 13:02.