|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 12 ![]() |
Hi,
Sorry to post this but I searched the forum and didn't find something that will solve my issue. My problem is that I am getting the following error , with openFoam 5.x, when I tried to reconstruct my case that I used binary format in controlDict to write the data : Code:
Reconstructing fields for mesh region0
--> FOAM FATAL IO ERROR:
Expected a ')' while reading binaryBlock, found on line 20 an error
file: /media/bashar/Bashar/Research/Free_Surface/VOF_1.5cm_75cm/constant/polyMesh/faces at line 20.
From function Foam::Istream& Foam::Istream::readEnd(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 109.
FOAM exiting
Code:
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application interFoam;
startFrom latestTime;//startTime;
startTime 0.0000;
stopAt endTime;//writeNow;//endTime;
endTime 40;
deltaT 0.001;
writeControl runTime;
writeInterval 0.5;
purgeWrite 0;
writeFormat binary;//ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat fixed;
timePrecision 4;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.25;
maxDeltaT 1;
//stopAt writeNow;
I tried on of the suggestions on the forum to convert the data from binary to ASCII but again I got this error: Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-19576d14a099
Exec : foamFormatConvert
Date : Apr 18 2018
Time : 10:53:50
Host : "fluid10"
PID : 26981
I/O : uncollated
Case : /media/bashar/Bashar/Research/Free_Surface/VOF_1.5cm_75cm
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
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: /media/bashar/Bashar/Research/Free_Surface/VOF_1.5cm_75cm/constant/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
I tried to execute the foamFormatConvert tool excluding the constant folder since it always complain about it in the error, I got this error: Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-19576d14a099
Exec : foamFormatConvert -noConstant
Date : Apr 18 2018
Time : 10:56:38
Host : "fluid10"
PID : 27016
I/O : uncollated
Case : /media/bashar/Bashar/Research/Free_Surface/VOF_1.5cm_75cm
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Excluding the constant directory.
Create time
Time = 0.0000
Reading volScalarField : nut
Writing nut
Reading volScalarField : alpha.water
Writing alpha.water
Reading volVectorField : U
Writing U
Reading volVectorField : U.org
Writing U.org
Reading volScalarField : nuTilda
Writing nuTilda
Reading volScalarField : alpha.water.org
Writing alpha.water.org
Reading volScalarField : p_rgh
Writing p_rgh
Create polyMesh for time = 0.0000
--> FOAM FATAL IO ERROR:
Expected a ')' while reading binaryBlock, found on line 20 an error
file: /media/bashar/Bashar/Research/Free_Surface/VOF_1.5cm_75cm/constant/polyMesh/faces at line 20.
From function Foam::Istream& Foam::Istream::readEnd(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 109.
FOAM exiting
Regards, Bashar |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Andrea
Join Date: Mar 2021
Posts: 1
Rep Power: 0 ![]() |
Hi Bashar,
sorry to bother you on this old thread, did you solve the issue? Because I am experiencing the same on OF7 and Ubuntu 20.10 Thanks! |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [General] A "clean" solution to export binary ensight gold format from Fortran to Paraview? | flotus1 | ParaView | 1 | June 23, 2015 12:59 |
| NASTRAN Data format | Srinivasan Arunajatesan | Main CFD Forum | 1 | January 2, 2014 07:20 |
| studying a valve case | mina.basta | OpenFOAM | 33 | August 30, 2013 05:46 |
| Best format for simulation data? | cbisw | Main CFD Forum | 9 | May 30, 2011 03:38 |
| Fieldview Data Format?? | Choong K. Yoo | FieldView | 0 | August 23, 1999 20:59 |