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

[cfMesh] CFMesh with OpenFOAM 7, binary format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2020, 08:05
Default CFMesh with OpenFOAM 7, binary format
  #1
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi all,


When trying to mesh a case in binary format in openfoam 7, the meshing works but checkMesh and solvers crash with


"Expected a ')' while reading binaryBlock"


Which reminds me of WM_LABEL_SIZE issues



If you mesh for instance sawOctree in the tutorials, checkMesh will crash.



I tried looking at the issue but no luck so far. Any idea ?
Thanks.
bennn is offline   Reply With Quote

Old   April 5, 2020, 20:27
Default
  #2
New Member
 
Gabriel dos Santos
Join Date: Jul 2015
Posts: 1
Rep Power: 0
Niteck is on a distinguished road
I'm having the same issue here.


Fortunately, there are some possible workarounds.


1) Use another OpenFOAM version (e.g., OpenFOAM 5 or OpenFOAM v1912) to "convert" the constant/polyMesh data via the foamFormatConvert utility. I know, it is kinda redundant; but it works.


2) If one doesn't have another OpenFOAM distribution available, an alternative is to save the polyMesh data in ASCII and then convert it to binary. For that, I would suggest to set a higher writePrecision value in system/controlDict. Perhaps, something around 16 is good enough. Then, just generate the mesh using cfMesh, set writeFormat back to binary in system/controlDict, and run foamFormatConvert.


Hope this helps.

Last edited by Niteck; April 6, 2020 at 10:06. Reason: corrected typo
Niteck is offline   Reply With Quote

Old   April 18, 2020, 18:18
Default
  #3
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi ! thanks for your idea.


Unfortunately, using ASCII is not an option because the files would get a lot larger than I can afford.
bennn is offline   Reply With Quote

Reply


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
Parse OpenFoam polyMesh in binary stream format Daniel1966 OpenFOAM Programming & Development 2 September 24, 2020 09:12
[cfMesh] Compiling cfMesh with OpenFOAM 4.x dkokron OpenFOAM Community Contributions 16 August 15, 2018 11:26
[Commercial meshers] ICEM mesh file in correct format for OpenFOAM SamEngD OpenFOAM Meshing & Mesh Conversion 0 April 5, 2017 06:29
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04


All times are GMT -4. The time now is 18:40.