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

Accessing parcel properties

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2013, 08:34
Default Accessing parcel properties
  #1
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 6
Smed is on a distinguished road
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,
Number of Droplets per Cell

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.
Smed 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
Accessing The Two Phase Properties miliante OpenFOAM Running, Solving & CFD 5 June 20, 2013 05:04
Accessing Cell Properties arkangel OpenFOAM 0 March 29, 2010 12:00
Accessing flow properties at certain points inUDFs nicolas FLUENT 2 February 14, 2005 21:42
Accessing material properties in UDF Henrik Widell FLUENT 0 March 18, 2002 10:49
UDF & Accessing Turbulence Properties Dimal FLUENT 0 March 5, 2002 14:14


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