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

sample surface from binary U, k and P

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2016, 11:09
Default sample surface from binary U, k and P
  #1
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
I accidentally let OF write binary output instead of ASCII and now sample doesn't work. Is there a way around this?

Code:
[8] --> FOAM FATAL IO ERROR:
[8] Expected a ')' while reading binaryBlock, found on line 20 the label 0
[8]
[8] file: /array_SAS/processor8/constant/polyMesh/faces at line 20.
[8]
[8]     From function Istream::readEnd(const char*)
[8]     in file db/IOstreams/IOstreams/Istream.C at line 111.
[8]
kingjewel1 is offline   Reply With Quote

Old   March 17, 2016, 03:42
Default
  #2
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
Hi, unfortunately I know this error.
In my case this always happens with T files... but only sometimes...
Workaround is to convert the binary files to ascii. Use the tool foamFormatConvert, this converts all files to the format you have specified in your controlDict.
TobM is offline   Reply With Quote

Old   March 17, 2016, 04:41
Default
  #3
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by TobM View Post
Hi, unfortunately I know this error.
In my case this always happens with T files... but only sometimes...
Workaround is to convert the binary files to ascii. Use the tool foamFormatConvert, this converts all files to the format you have specified in your controlDict.
I get the following error complaining of the same problem... what do you think?:

Code:
$ foamFormatConvert -latestTime
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 3.0.0-6abec57f5449
Exec   : foamFormatConvert -latestTime
Date   : Mar 17 2016
Time   : 09:38:02
Host   : "login2.comp1235-125"
PID    : 7015
Case   : array_SAS
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Time = constant
        Reading labelList : owner


--> FOAM FATAL IO ERROR: 
Expected a ')' while reading binaryBlock, found on line 21 an error

file: array_SAS/constant/polyMesh/owner at line 21.

    From function Istream::readEnd(const char*)
    in file db/IOstreams/IOstreams/Istream.C at line 111.

FOAM exiting
kingjewel1 is offline   Reply With Quote

Old   March 17, 2016, 07:07
Default
  #4
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
I have to correct myself. I had this issue when opening the case in paraview, although it looks very similar. Since the mesh is concerned maybe you create a new mesh and save it in ascii.
TobM is offline   Reply With Quote

Old   February 27, 2018, 16:37
Default Unable to convert binary to ascii
  #5
New Member
 
JasonC
Join Date: May 2017
Posts: 2
Rep Power: 0
jdchristopher24 is on a distinguished road
I'm trying to use the foamFormatConvert utility, but that also has an issue w/ my binary file. Thoughts on how to fix this? (edit: I realized if I postProcess on the machine where data was created it works, but if I move to a different machine it doesn't work so I'll just postProcess before moving it local).


user:~/Documents/Research/case$ foamFormatConvert
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.x-d5dd04e0a63b
Exec : foamFormatConvert
Date : Feb 27 2018
Time : 14:34:08
Host : "user:
PID : 8712
Case : /home/user/Documents/Research/case/
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Time = constant
Reading labelList : owner
Writing owner
Reading labelList : neighbour
Writing neighbour
Reading faceList : faces
Writing faces
Reading vectorField : points
Writing points
Reading regIOobject : cellZones
Writing cellZones
Reading regIOobject : faceZones
Writing faceZones
Reading regIOobject : pointZones
Writing pointZones

Time = 0.05
Reading labelList : owner


--> FOAM FATAL IO ERROR:
Expected a ')' while reading binaryBlock, found on line 21 the word 'u&'

file: /home/user/Documents/Research/Case/0.05/polyMesh/owner at line 21.

From function Foam::Istream& Foam::Istream::readEnd(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 109.

FOAM exiting

Last edited by jdchristopher24; February 27, 2018 at 16:45. Reason: Update
jdchristopher24 is offline   Reply With Quote

Old   April 13, 2018, 06:09
Default
  #6
Member
 
Nat K
Join Date: Oct 2017
Posts: 68
Rep Power: 8
nskelly is on a distinguished road
jdchristopher24,

Did you manage to solve the problem? I am getting similar error messages.
nskelly is offline   Reply With Quote

Old   February 15, 2020, 14:46
Default Check file writing
  #7
New Member
 
Tsinuel Geleta
Join Date: Oct 2017
Posts: 1
Rep Power: 0
Tsinuel is on a distinguished road
I faced the same problem when file writing is aborted for some reason (for example HPC job may time out while OpenFOAM is writing the file). Check the log file if that time step is the last one. I hope this helps.

Cheers,
Tsinuel
Tsinuel 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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
area averaged pressure of sample surface FerdiFuchs OpenFOAM Post-Processing 1 October 24, 2014 09:50
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 04:31
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 06:47


All times are GMT -4. The time now is 21:00.