CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] messy code in mesh file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2017, 21:55
Default messy code in mesh file
  #1
New Member
 
TeiGyou
Join Date: Oct 2016
Location: Tokyo,Japan
Posts: 20
Rep Power: 10
zxzx is on a distinguished road
Hello, everyone

I tried to convert ICEM mesh into Foam. But after that, I can not read the files like cellzones and facezones. Opening them in ubuntu wasted me lots of time. I have tried to open them in Windows just messy code. Who can tell me what happened? and How to deal with it? Thanks
zxzx is offline   Reply With Quote

Old   January 12, 2017, 08:17
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear TeiGyou,

first of all you should be more precise. What is a messy code. I think that you will just see some binary stuff in the file. If so, change the write mode in system/controlDict from binary to ascii. By the way. Using vim for manipulating and checking files is much faster than others like gedit.

Good luck.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 12, 2017, 10:57
Default
  #3
New Member
 
TeiGyou
Join Date: Oct 2016
Location: Tokyo,Japan
Posts: 20
Rep Power: 10
zxzx is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Dear TeiGyou,

first of all you should be more precise. What is a messy code. I think that you will just see some binary stuff in the file. If so, change the write mode in system/controlDict from binary to ascii. By the way. Using vim for manipulating and checking files is much faster than others like gedit.

Good luck.
Thank u for ur answer.


?.jpg

After converting the mesh, I got the file in the pic. just the messy code. It is actually a binary file. How can I change the write mode?

Thank you very much!!!!!!
zxzx is offline   Reply With Quote

Old   January 12, 2017, 11:13
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
To change the write mode you should just read my first reply!
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 12, 2017, 12:23
Thumbs up
  #5
New Member
 
TeiGyou
Join Date: Oct 2016
Location: Tokyo,Japan
Posts: 20
Rep Power: 10
zxzx is on a distinguished road
Quote:
Originally Posted by tobi View Post
to change the write mode you should just read my first reply!
thank you very much:d
zxzx 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
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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