|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Luis Felipe López
Join Date: Apr 2020
Posts: 7
Rep Power: 7 ![]() |
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
)
// ************************************************************************* //
Best regards, Felipe. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
Good luck with that unless you wish to reconstruct your entire mesh information first.
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
Norbert Riefler
Join Date: Nov 2014
Posts: 1
Rep Power: 0 ![]() |
Hi Felipe,
did you find a solution to convert the positions into Cartesian values? And where are the diameters of the particles? Best, Norbert |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 115
Rep Power: 6 ![]() |
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. |
|
|
|
|
|
![]() |
| Tags |
| cloud, format, lagrangian, openfoam, position |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
| [swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
| OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
| [foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
| [swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |