CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

An Open Source mesh generator for Open Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2008, 14:40
Default An Open Source mesh generator for Open Foam
  #1
Ahmed
Guest
 
Posts: n/a
Has any one on this forum downloaded and successfully installed and run the programme Discretizer http://www.discretizer.org/on a windows system, It looks a bit complicated to have to install all other RUBY programmes before being able to run the proper programme. I would like to know his opinion on the subject. Thank you for your comments
  Reply With Quote

Old   March 18, 2008, 01:44
Default Re: An Open Source mesh generator for Open Foam
  #2
Björn Bergqvist
Guest
 
Posts: n/a
Hello, it is like installing java to run a java program, or install .NET in order to run applications using .NET libraries.

To run discretizer you have to install Ruby + FXRuby. In the future there might be a "one click installer" for discretizer including FXRuby.

If you think it is a bit complicated I wonder if you have installed OpenFOAM on Windows? I thought that was a bit complicated.

Regards Björn Bergqvist http://www.discretizer.org
  Reply With Quote

Old   March 18, 2008, 12:39
Default Re: An Open Source mesh generator for Open Foam
  #3
Victor Prosolin
Guest
 
Posts: n/a
Actually, I installed it on Windows with no problems. But on linux (specifically OpenSuse 10.3) I couldn't get it to work. It says "Sorry, this example depends on the OpenGL extension". Also, in the script I had to change "#!/usr/bin/env ruby1.8" to "#!/usr/bin/env ruby" to get even that far.

Victor.
  Reply With Quote

Old   March 18, 2008, 16:23
Default Re: An Open Source mesh generator for Open Foam
  #4
Björn Bergqvist
Guest
 
Posts: n/a
Maybe you should install ruby-opengl (rbogl). http://www2.giganet.net/~yoshi/rbogl-0.32g.tar.gz

Did you install ruby-FXRuby from opensuse repositories?

http://packages.opensuse-community.o...rchTerm=fxruby

Regards, Björn Bergqvist http://www.discretizer.org
  Reply With Quote

Old   March 18, 2008, 17:10
Default Re: An Open Source mesh generator for Open Foam
  #5
Victor Prosolin
Guest
 
Posts: n/a
Yes, I did install those libraries. I installed fox related stuff from suse repos and ruby-opengl using "gem install ruby-opengl".

Victor.
  Reply With Quote

Old   March 18, 2008, 22:08
Default Re: An Open Source mesh generator for Open Foam
  #6
Ahmed
Guest
 
Posts: n/a
I have installed the following 1- TortoiseSVN-1.4.7.11792-win32-svn-1.4.6 2- ruby186-26 3- FXRuby-1.613-ruby186 I still have the same problem, i.e., when I click on discretizer.rb a window opens and closes in less than a second. Cygwin is already installed. I went through the Readme file that comes with the Ruby installation and because they use the MicroSoft Visual C to compile the Ruby interpreter they say some I/O functions may not work. Any clues. Your comments are highly appreciated
  Reply With Quote

Old   March 19, 2008, 01:26
Default Re: An Open Source mesh generator for Open Foam
  #7
Björn Bergqvist
Guest
 
Posts: n/a
Did you install FXRuby in the same directory as ruby?

You can open a dos command prompt and execute ruby from that to see what happends.

cd *to where you have discretizer.rb*

ruby discretizer.rb or

c:\ruby\bin\ruby discretizer.rb if it's not in your path

Björn Bergqvist http://www.discretizer.org
  Reply With Quote

Old   March 19, 2008, 15:26
Default Re: An Open Source mesh generator for Open Foam
  #8
Björn Bergqvist
Guest
 
Posts: n/a
Hello, I have not installed from gem, only from tar-files. Maybe it will work if you put require 'rubygems' in the discretizer.rb file.

Björn Bergqvist - creator of discretizer - http://www.discretizer.org
  Reply With Quote

Old   March 19, 2008, 15:36
Default Re: An Open Source mesh generator for Open Foam
  #9
Victor Prosolin
Guest
 
Posts: n/a
Yes, that did the trick. Thanks Björn.

Victor.
  Reply With Quote

Old   March 20, 2008, 13:40
Default Re: An Open Source mesh generator for Open Foam
  #10
Ahmed
Guest
 
Posts: n/a
Yes, Ruby installes in c:ruby and FXRuby installes in c:ruby\ruby, these are the default values and I have not changed them. Any way, I guess I will have to wait till you come up with the Beta version, sorry to cause you such distractions, you see, OpenFoam is an excellent programme but it lacks the preprocessor which you are developing, I must express my appreciation and encouragment to what you are doing. Cheers and keep up with the good work. I will keep an eye on your web site
  Reply With Quote

Old   September 8, 2010, 10:03
Default Re: An Open Source mesh generator for Open Foam
  #11
New Member
 
Wai Sam Wong
Join Date: Sep 2010
Posts: 7
Rep Power: 15
anthropoy is on a distinguished road
Hi, although this one seems to be an old post. I have been having the same problem as Ahmed there. I've installed Ruby and FXRuby. Ruby.exe seems to be in the PATH since I was able to execute it directly in the command prompt. I have tried "ruby discretizer.rb" and "discretizer.rb" without success. Any suggestions? Thanks!!
anthropoy is offline   Reply With Quote

Old   September 22, 2010, 03:49
Default Discretizer on Windows
  #12
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Hello,
I've made some changes in Discretizer in order to make it compatible with Windows. Changes will be committed later this week.

Regards
Björn Bergqvist
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   September 22, 2010, 07:25
Default
  #13
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks Björn!

This is great news! Please let us know when it is done.

Pei

Quote:
Originally Posted by bjornthe View Post
Hello,
I've made some changes in Discretizer in order to make it compatible with Windows. Changes will be committed later this week.

Regards
Björn Bergqvist
phsieh2005 is offline   Reply With Quote

Old   September 23, 2010, 03:55
Default
  #14
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Revision 117 at sourceforge should work on Windows. I've only made changes to Discretizer-Setup in that commit.

Björn
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   September 23, 2010, 13:54
Default
  #15
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Now I've made a binary release for Windows.
Have a look: http://www.discretizer.org

Björn
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   September 23, 2010, 18:39
Default
  #16
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, Björn,

I prefer to run OpenFOAM on OpenSuSE. But, I really would like to use discretizer on MS Windows. Is it possible to setup the case in Discretizer, then, copy the case to OpenSuSE, then, run the case?

PHsieh
phsieh2005 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
Dual Boot Windows and Linux and Go Open Source andyj Main CFD Forum 2 October 21, 2010 16:49
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 01:03.