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

Accessing parcel properties

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2013, 07:34
Default Accessing parcel properties
  #1
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 14
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,
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.
Smed is offline   Reply With Quote

Reply


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 Off
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 20:42
Accessing material properties in UDF Henrik Widell FLUENT 0 March 18, 2002 09:49
UDF & Accessing Turbulence Properties Dimal FLUENT 0 March 5, 2002 13:14


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