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

Accessing Lagrangian Fields

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By zhangyan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2020, 00:08
Default Accessing Lagrangian Fields
  #1
New Member
 
siavash
Join Date: Jul 2019
Location: Indiana, US
Posts: 11
Rep Power: 6
szamani is on a distinguished road
Hi,
I have lagrangian particles within interFoam solver. I would like to access particles' position at each time step. I cannot find anything how I can access lagrangian particles' positions from the main.cpp file without going into the lagrangian library.

I appreciate any help on this,
Thank you
szamani is offline   Reply With Quote

Old   April 1, 2020, 09:15
Default
  #2
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 11
zhangyan is on a distinguished road
an example:
https://github.com/ZhangYanTJU/ZYspr...Summary.H#L126

Quote:
Originally Posted by szamani View Post
Hi,
I have lagrangian particles within interFoam solver. I would like to access particles' position at each time step. I cannot find anything how I can access lagrangian particles' positions from the main.cpp file without going into the lagrangian library.

I appreciate any help on this,
Thank you
alainislas likes this.
__________________
https://openfoam.top
zhangyan is offline   Reply With Quote

Reply

Tags
lagrangian openfoam, 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
Accessing PtrList of fields from boundary condition Diro7 OpenFOAM Programming & Development 4 April 8, 2020 12:58
Fields and mesh access from lagrangian submodel klorfj OpenFOAM Programming & Development 2 January 13, 2020 01:48
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
domainIntegrate, dieselFoam and Lagrangian Fields mturcios777 OpenFOAM 0 May 14, 2010 15:16


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