|
[Sponsors] |
positions file on the latest version of openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 25, 2019, 21:22 |
positions file on the latest version of openfoam
|
#1 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10 |
Hi all,
I am trying to recreate the solidParticle example from here: https://pingpong.chalmers.se/public/...lication-2.pdf on openFoam v7. I was able to create the solver in the tutorial and compile it without any errors, but unless I am mistaken there is a problem with positions file format: Code:
--> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 19 the punctuation token ')' file: /run/media/abe/spindisk/Simulations/interTrashFoam/damBreak/0/lagrangian/defaultCloud/positions at line 19. From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&) in file lnInclude/Scalar.C at line 101. I can only get the solver to run with zero particles. The positions of the two particles are: Code:
2 ( (2e-2 0.58 0.005) -1 (3e-2 0.58 0.005) -1 ) I have been digging around in the source code all day and can't seem to find where things are read in. The tutorials only contain kinematic particles, where positions are stored in /constant. Any ideas? Thanks |
|
October 28, 2019, 13:10 |
|
#2 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10 |
Maybe I should have asked an alternate question that would also solve this problem. Can anyone explain to me how to find in the deoxygen code where where that file is read in, or what format it should be? I am not a great C++ programmer, and can't seem to figure it out.
Thanks |
|
December 2, 2021, 12:19 |
|
#3 |
New Member
Giandomenico Lupo
Join Date: Jul 2021
Posts: 2
Rep Power: 0 |
Any news on this? I am experiencing the same problem.
|
|
December 2, 2021, 15:26 |
|
#4 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10 |
Hey,
I never figured out what the issue was, but ended up not needing it. Depending on what your are doing, you might find this function object tutorial useful: https://www.cemf.ir/residence-time-d...ticle-tracing/ It was suggested by someone in another thread I posted and worked well for what I needed. I think there are multiple particle classes, but it seems like the more complex ones can be made into passive tracers with the right settings when running the solver. So if you really need to program something into a solver, I would look at the Lagrangian particle solvers and try grabbing code out of there. That's just an idea though - like I said, I was never successful with that code. Maybe someone with more experience can weigh in... |
|
December 3, 2021, 12:44 |
|
#5 |
New Member
Giandomenico Lupo
Join Date: Jul 2021
Posts: 2
Rep Power: 0 |
Thanks for the reply and the link! I will look into it and see what I can do.
|
|
Tags |
solidparticlecloud |
|
|
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 |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |