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

Lagrangian positions file format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2021, 10:11
Default Lagrangian positions file format
  #1
New Member
 
Luis Felipe López
Join Date: Apr 2020
Posts: 7
Rep Power: 6
lf.lopez18 is on a distinguished road
Hi all


I was exporting some Lagrangian data in OpenFOAM v8 and I wanted to use the position of a particle to initialize another simulation. However, I can't understand the format. The "positions" file shows something like this:


Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       Cloud<passiveParticle>;
    location    "0.056/lagrangian/kinematicCloud";
    object      positions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

1
(
(0.214858 0.231858 0.160714 0.392571) 3838 7620 1
)


// ************************************************************************* //
Could someone please explain me what does every number represents? And if you know, which source file reads or writes the "positions" file?.


Best regards,
Felipe.
lf.lopez18 is offline   Reply With Quote

Old   February 9, 2021, 14:33
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Good luck with that unless you wish to reconstruct your entire mesh information first.
olesen is offline   Reply With Quote

Old   May 4, 2022, 10:05
Default
  #3
New Member
 
Norbert Riefler
Join Date: Nov 2014
Posts: 1
Rep Power: 0
riefler is on a distinguished road
Hi Felipe,


did you find a solution to convert the positions into Cartesian values? And where are the diameters of the particles?


Best,
Norbert
riefler is offline   Reply With Quote

Old   May 9, 2022, 03:01
Default
  #4
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 112
Rep Power: 5
joshwilliams is on a distinguished road
This is a common problem with several threads. The most useful one is here I think.
You need to run the functionObject from this GitHub repo to convert from Barycentric to cartesian coordinates.
joshwilliams is offline   Reply With Quote

Reply

Tags
cloud, format, lagrangian, openfoam, 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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02


All times are GMT -4. The time now is 21:25.