CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Reading Lagrangian Position Data

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 30, 2020, 12:45
Default Reading Lagrangian Position Data
  #1
Member
 
Conor Crickmore
Join Date: Jan 2020
Location: Leicestershire, United Kingdom
Posts: 36
Rep Power: 6
cjc96 is on a distinguished road
Hello everyone,

I'm currently working on a custom (PISO-based) Eulerian-Lagrangian Solver in OpenFOAM 7, primarily based on this presentation and existing work carried out by my department in OpenFOAM 2.4.

I'm trying to extract the data for post-processing in MATLAB, OpenFOAMs built-in 'particleTracks' function doesn't seem overly versatile, unless I am missing something here also.

My problem is reading the position data from:

Code:
*/lagrangian/kinematicCloud/positions
My data is of the format:

Code:
(0.08930289 0.6773368 0.1431805 0.09017981) 1135715 3437655 1
As you can see, there are seemingly four 'position' values

Whereas data I have from the work in 2.4 (albeit from a different problem) is formatted as so:

Code:
(-0.189055 -0.169927 0.157027) 22739688
Which has three 'position' values, as one would expect

Taking a rather crude measurement (using the ruler) of the corresponding particle position in ParaView shows an actual position of:

Code:
expectedPosition = [1.50022 0.031163 0.56261]
I've tried to manipulate the numbers based on an initial injection point of:

Code:
injectorPosition = [1.01, -0.15, 0.414]
But even then I can't get the numbers to add up.

If anyone has any experience in this regard I would be extremely grateful!
__________________
Conor Crickmore
PhD Researcher in Automotive Aerodynamics
Aeronautical and Automotive Engineering
Loughborough University
LE11 3TU
cjc96 is offline   Reply With Quote

 


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 particle position data at runtime vishwesh OpenFOAM Programming & Development 3 July 11, 2018 09:48
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Tecplot reading particle data error ali hemmati FLUENT 1 February 13, 2016 06:17
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 03:02
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52


All times are GMT -4. The time now is 20:47.