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

[Other] Writing the old 'positions' file in Lagrangian solvers as of OpenFOAM 5.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes
  • 4 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 17:04
Default Writing the old 'positions' file in Lagrangian solvers as of OpenFOAM 5.x
  #1
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I've seen this asked here on the forum at least a couple of times in the past, but I haven't gone looking for those threads yet.

Essentially the problem is that ever since the barycentric positions were implemented in OpenFOAM-dev and released in OpenFOAM 5.x (OpenFOAM Foundation), it hasn't been possible to load the Lagrangian data into ParaView when using the internal reader, namely with the file extension ".foam", for example if you open the case with this command:
Code:
paraFoam -builtin
To work around this issue, there are at least three possibilities:
  1. Use OpenFOAM's standard reader for ParaView, namely with the file extension ".OpenFOAM".
    • Although this doesn't work when ParaView is not built in the same Operating System as OpenFOAM.
  2. You can export the Lagrangian clouds into VTK files by running:
    Code:
    foamToVTK -fields '()' -noInternal -excludePatches '(".*")'
  3. Or use the new alternative with a function object that I've finished working on an hour or so ago: https://github.com/blueCFD/lagrangia...unctionObjects
If you are using OpenFOAM from OpenFOAM.com (ESI-OpenCFD), you do not need these methods, because they support the old and new formats as follows:
  • Old format is written to "positions".
  • New format is written to "coordinates".
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 11 November 1, 2016 06:43
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Custom Thermophysical Properties wsmith02 OpenFOAM 3 July 27, 2015 05:37
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 23:42.