|
[Sponsors] |
[OpenFOAM] OpenFOAM-3.0.x: error in foamToVTK (64-bit labels) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 25, 2016, 07:00 |
OpenFOAM-3.0.x: error in foamToVTK (64-bit labels)
|
#1 |
New Member
Join Date: Oct 2014
Posts: 24
Rep Power: 12 |
Hello to everybody,
I just compiled openfoam 3.0.x in a machine with intel i7-6700hq. Everything went good, but when I use "foamToVtk" I received the follow error: --> FOAM FATAL ERROR: floatScalar and/or label are not 4 bytes in size Hence cannot use binary VTK format. Please use -ascii From function foamToVTK in file foamToVTK.C at line 335. FOAM exiting Anyone has any idea of how solve this (different from "foamToVtk -ascii"?) Thankyou for your attention |
|
November 29, 2016, 16:50 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Apparently you built OpenFOAM 3.0.x with 64-bit labels, which the VTK legacy format does not support when using binary format. That's why the utility is advising you to use the "-ascii" option.
Do you really need 64-bit labels? Do any of your meshes have more than 2^31 elements in them? PS: I've moved the thread to the OpenFOAM Paraview & paraFoam.
__________________
Last edited by wyldckat; November 29, 2016 at 16:51. Reason: changed forum name... |
|
December 1, 2016, 05:59 |
|
#3 |
New Member
Join Date: Oct 2014
Posts: 24
Rep Power: 12 |
Dear wyldckat,
thankyou for your very clear answer. |
|
December 1, 2016, 19:45 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
I did forget to mention a few details:
|
|
April 10, 2018, 12:42 |
any work around with OpenFOAM v5.x
|
#5 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Hey Bruno,
Thank you for explanation and now I understand this problem. It persists in OpenFOAM v5.x. I did my simulations at cluster with OpenFOAM v2.4 and now after the up-gradation to v5.x and I am having the same warning message. I don't have paraFOAM on the local system, therefore, I always use FoamToVTK and currently with ascii, the file size is very big (with ~20 Mio. cells). So do you have any idea with the existing compiled version of OpenFOAM on the cluster? I tried to compile your commit from github but the output is was again in ascii. Thanks, Sandeep |
|
April 12, 2018, 20:01 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: You can try opening the case with the file extension ".foam". For example, create an empty file "case.foam" inside the case folder and then open that file in ParaView. This will make ParaView open the case with the internal ".foam" reader.
If you are going to do this, then try using the more recent versions of ParaView, either 5.4.1 or 5.5.0.
__________________
|
|
April 13, 2018, 11:20 |
|
#7 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Hi,
Thanks for the reply. Actually, I've tried it with Paraview 5.1.0 (64 bit) but it wasn't able to open the file. Maybe I should give it a try with the version you have mentioned. Thanks again, Sandeep |
|
April 15, 2018, 18:31 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer:
__________________
|
|
April 20, 2018, 05:51 |
|
#9 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
Thank you for the prompt reply! I end up switching to Linux and start using ParaFOAM. It was an easier option than keep trying or fixing things
|
|
Tags |
foamtovtk |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
How to confirm that OpenFoam runs in 64 bit | jdk | OpenFOAM Running, Solving & CFD | 2 | February 5, 2008 05:55 |