CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Trouble using foamFormatConvert

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

Like Tree8Likes
  • 2 Post By ganem
  • 6 Post By me3840

LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2017, 09:35
Default Trouble using foamFormatConvert
New Member
Matheus Ganem
Join Date: May 2016
Location: Brazil
Posts: 1
Rep Power: 0
ganem is on a distinguished road
Hello everyone,

I've tried to use foamFormatConvert to convert the polymesh files from binary format to ascii format. But, when I run it, it convert all files (points, boundaries, ...) except the "faces" file. Does anyone have the same problem?


ratorres and NotOverUnderated like this.
ganem is offline   Reply With Quote

Old   October 31, 2018, 22:46
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Not sure if you're still working with this, but it appears the problem is in writeMeshObject.H. There's an if statement that filters out the faces file for some reason. I'm not experienced enough to say why (perhaps someone can help with that), but the faces IOobject does not get past:

io.typeHeaderOk<Type>(false) && io.headerClassName() == CheckType::typeName
In order to (hopefully) not break anything, I just went around it with this:

(io.typeHeaderOk<Type>(false) && io.headerClassName() == CheckType::typeName)||(runTime.timeName()=="constant"&&name=="faces")
I tested this on a simple case with a pre-existing solution and it seemed to work without breaking anything. So if anyone can explain what that if statement is doing and why faces aren't included, that'd be super.
me3840 is offline   Reply With Quote



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
[waves2Foam] Having a lot of trouble for a short wavelengths arieljeds OpenFOAM Community Contributions 1 January 2, 2024 13:10
Trouble with rotating wall boundary condition king1989 OpenFOAM Running, Solving & CFD 7 July 29, 2016 13:44
Trouble with sampleDict syntax for OpenFOAM 2.3.1 rawdoggity OpenFOAM Post-Processing 1 February 1, 2015 05:24
[ICEM] trouble with mesh quality from ICEM in CFX Solver escher25 ANSYS Meshing & Geometry 0 February 28, 2011 07:38
[GAMBIT] Trouble meshing complex VOF geometry RPJones ANSYS Meshing & Geometry 2 February 14, 2011 18:54

All times are GMT -4. The time now is 12:09.