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

[Commercial meshers] Why is there no option to importexport binary fluent files to OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2009, 14:41
Default Why is there no option to importexport binary fluent files to OF
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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,907
Rep Power: 33
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: 530
Rep Power: 20
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,907
Rep Power: 33
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: 530
Rep Power: 20
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: 530
Rep Power: 20
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: 530
Rep Power: 20
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


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 09:16
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56


All times are GMT -4. The time now is 22:05.