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

positions file on the latest version of openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2019, 21:22
Default positions file on the latest version of openfoam
  #1
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10
KTG is on a distinguished road
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
KTG is offline   Reply With Quote

Old   October 28, 2019, 13:10
Default
  #2
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10
KTG is on a distinguished road
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
KTG is offline   Reply With Quote

Old   December 2, 2021, 12:19
Default
  #3
New Member
 
Giandomenico Lupo
Join Date: Jul 2021
Posts: 2
Rep Power: 0
giando is on a distinguished road
Any news on this? I am experiencing the same problem.
giando is offline   Reply With Quote

Old   December 2, 2021, 15:26
Default
  #4
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10
KTG is on a distinguished road
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...
KTG is offline   Reply With Quote

Old   December 3, 2021, 12:44
Default
  #5
New Member
 
Giandomenico Lupo
Join Date: Jul 2021
Posts: 2
Rep Power: 0
giando is on a distinguished road
Thanks for the reply and the link! I will look into it and see what I can do.
giando is offline   Reply With Quote

Reply

Tags
solidparticlecloud


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 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


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