sample surface from binary U, k and P
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: |
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. |
Quote:
Code:
$ foamFormatConvert -latestTime |
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.
|
Unable to convert binary to ascii
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 |
jdchristopher24,
Did you manage to solve the problem? I am getting similar error messages. |
Check file writing
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 |
All times are GMT -4. The time now is 23:57. |