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

Accessing the position and diameter of lagrangian particles

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 22, 2014, 09:35
Default Accessing the position and diameter of lagrangian particles
  #1
New Member
 
Ah Cai
Join Date: Dec 2010
Location: Malaysia
Posts: 16
Rep Power: 15
ahcai007 is on a distinguished road
Hi all,

I am working on a code to track lagrangian particles by refering to Jelena Andric's work:
http://www.tfd.chalmers.se/~hani/kur...dric_Final.pdf

I successfully replicated the work in OF20x.

My problem now is that I am unable to access the position and diameter of the particles. I know that there is a function in particle.H to access position but I don't know how to tap into it and get access it.

I tried
Code:
    const particle& par = particle.Foam::particle::position();
but it didn't work.

Anyone have any idea how to output the diameter and positions of all the particles inside the domain??

Thanks.

Regards,
Ahcai
ahcai007 is offline   Reply With Quote

 

Tags
diameter, lagrangian particle, position


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
Lagrangian material particles bramv101 STAR-CCM+ 5 October 23, 2017 05:27
foamToVTK not working on lagrangian particles BigBlueDart OpenFOAM Post-Processing 1 July 25, 2013 03:26
Histogram on a selected volume, Droplet diameter profile crevoise STAR-CCM+ 0 May 17, 2013 06:12
Straight through cyclone with particles rogerhoffmann CFX 1 May 21, 2012 18:42
Lagrangian particles (change density and diameter) kel85uk OpenFOAM 1 July 22, 2011 04:01


All times are GMT -4. The time now is 07:17.