CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Why is there no option to importexport binary fluent files to OF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 18, 2009, 14:41
Default Always saving these files as A
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
Always saving these files as ASCII is annoying and uses lots of memory for large models. Are there planes to add binary support?

BastiL
bastil is offline   Reply With Quote

Old   January 18, 2009, 15:55
Default The beauty of open source is t
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
The beauty of open source is that you can write it yourself, right?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   January 18, 2009, 18:40
Default ..at least if I am able to do.
  #3
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
..at least if I am able to do... ;-)
bastil is offline   Reply With Quote

Old   January 19, 2009, 09:57
Default Here's some advice (this is ho
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
Here's some advice (this is how I would do it if I had to do it again - my first go with flex is not too impressive).

Fluent uses a well-structured language for its input-output: it is called Schemeand it corresponds to Lisp syntax. My advice would be to load Fluent files into a public domain version of Scheme interpreter (which will also take care of binary/ascii, I think) and then query the Scheme database for the components you need. Extracting the data needed to build the mesh is identical to existing converters, so you will be able to copy that.

Good luck, please keep me posted on the progress,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   January 19, 2009, 15:25
Default Thanks Hrv, I have done som
  #5
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
Thanks Hrv,

I have done some scripting in scheme and some parsing of FLUENT-Files in Python. However, interpreting of binary data is totally new to me. I have guile availabe and can read the mesh into there but do not know how to do this from of c++ and how to "search the database". I will start taking a look at the existing code.

BastiL
bastil is offline   Reply With Quote

Old   January 27, 2009, 11:50
Default After consideration I tried to
  #6
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
After consideration I tried to extend the existing code. Maybe this is not the best but for me fastest way to try first.

Regards BastiL
bastil is offline   Reply With Quote

Old   February 17, 2009, 14:37
Default Ok... I see the problems with
  #7
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
Ok...
I see the problems with flex in combination with binary files. I will consider alternatives. Doing it in Scheme as proposed by Hrv would mean integration of some Scheme code. I will consider.

Regards
bastil 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
Fluent binary mesh FOAM spv24 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 1 November 19, 2008 02:23
Decoding of Binary FLUENT Case-Files BastiL FLUENT 1 May 25, 2008 06:10
Can I use the binary files for ia64 and x86_64 CPU in Linux OS mamaly60 OpenFOAM Installation 4 October 24, 2007 22:20
Fluent/UNS binary file format reference Federico FLUENT 0 October 11, 2001 04:50
Binary files stored by Fluent Jackson FLUENT 1 April 2, 2000 21:58


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