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

messy code in mesh file

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

Reply
 
LinkBack Thread Tools 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: 19
Rep Power: 2
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: Leoben (Austria)
Posts: 1,875
Blog Entries: 6
Rep Power: 32
Tobi 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: 19
Rep Power: 2
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: Leoben (Austria)
Posts: 1,875
Blog Entries: 6
Rep Power: 32
Tobi 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: 19
Rep Power: 2
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 3 July 27, 2015 05:37
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 02:41.