CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   An Open Source mesh generator for Open Foam (https://www.cfd-online.com/Forums/main/14937-open-source-mesh-generator-open-foam.html)

Ahmed March 16, 2008 15:40

An Open Source mesh generator for Open Foam
 
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

Björn Bergqvist March 18, 2008 02:44

Re: An Open Source mesh generator for Open Foam
 
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

Victor Prosolin March 18, 2008 13:39

Re: An Open Source mesh generator for Open Foam
 
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.

Björn Bergqvist March 18, 2008 17:23

Re: An Open Source mesh generator for Open Foam
 
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

Victor Prosolin March 18, 2008 18:10

Re: An Open Source mesh generator for Open Foam
 
Yes, I did install those libraries. I installed fox related stuff from suse repos and ruby-opengl using "gem install ruby-opengl".

Victor.

Ahmed March 18, 2008 23:08

Re: An Open Source mesh generator for Open Foam
 
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

Björn Bergqvist March 19, 2008 02:26

Re: An Open Source mesh generator for Open Foam
 
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

Björn Bergqvist March 19, 2008 16:26

Re: An Open Source mesh generator for Open Foam
 
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

Victor Prosolin March 19, 2008 16:36

Re: An Open Source mesh generator for Open Foam
 
Yes, that did the trick. Thanks Björn.

Victor.

Ahmed March 20, 2008 14:40

Re: An Open Source mesh generator for Open Foam
 
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

anthropoy September 8, 2010 11:03

Re: An Open Source mesh generator for Open Foam
 
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!!

bjornthe September 22, 2010 04:49

Discretizer on Windows
 
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 September 22, 2010 08:25

Thanks Björn!

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

Pei

Quote:

Originally Posted by bjornthe (Post 276094)
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


bjornthe September 23, 2010 04:55

Revision 117 at sourceforge should work on Windows. I've only made changes to Discretizer-Setup in that commit.

Björn

bjornthe September 23, 2010 14:54

Now I've made a binary release for Windows.
Have a look: http://www.discretizer.org

Björn

phsieh2005 September 23, 2010 19:39

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


All times are GMT -4. The time now is 17:00.