CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Discretizer] Discretizer, a free mesh program for CFD (Computational Fluid Dynamics)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2012, 01:58
Default
  #61
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Doug68 and welcome to the forum!

Discretizer isn't officially working yet with OpenFOAM 2.0 and 2.1.
You can try and replace the contents of the "discretizer" sub-folder that is inside the main "discretizer" folder, with the contents available in the SVN in the sub-folder "discretizer200". You can get a snapshot from here: http://discretizer.svn.sourceforge.n...iscretizer200/ - click on the "Download GNU tarball" link to get a snapshot of that folder.

But I don't know if this will working properly or not

Best regards,
Bruno
Thanks, I'll give that a go, I know I'm a noob at this so I'll try hard not to ask too many dumb questions
Doug68 is offline   Reply With Quote

Old   April 11, 2012, 13:34
Default Possibility of a mesh grading ?
  #62
New Member
 
Aurelien
Join Date: Jan 2012
Posts: 7
Rep Power: 14
AGIR is on a distinguished road
Hello,

I'm new to Discretizer, and I'd like to know if there is any possibility to implement a mesh grading just like in Gambit with the aspect ratio/successive growth options ?
I've only been able to produce cells of identical size (when considering one direction).

Thanks.
AGIR is offline   Reply With Quote

Old   April 12, 2012, 00:15
Default
  #63
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
I'm new to discretizer also but I belive the setting is something like "expansionRatio" you'll find on the lower half of the SnappyHexMesHDict form.
If all the cells are the same size I would expect that to have a value of 1?
Sorry, I'm not on the machine with the software at the moment I'd post a screen shot if I were.

The above though should be confirmed (I hope) by someone who knows this stuff properly.
Doug68 is offline   Reply With Quote

Old   April 13, 2012, 12:39
Default
  #64
New Member
 
Aurelien
Join Date: Jan 2012
Posts: 7
Rep Power: 14
AGIR is on a distinguished road
Hi Doug68, thanks for replying.

Your indication seems to be a good track, however I fail to implement it using the discretizer setup application.
I still got to work on it, I'll post here if find a valid solution.
AGIR is offline   Reply With Quote

Old   April 16, 2012, 07:15
Default
  #65
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Try switching your OS from ubuntu to CAELinux. ( CAELinux is built on Ubuntu 10.04)

You get discritizer+OpenFOAM+Salome(stl geometry modelling tool...)+simpleFoam_GUI
and many more.

Its worth giving a try.
kid is offline   Reply With Quote

Old   April 16, 2012, 07:58
Default
  #66
New Member
 
Aurelien
Join Date: Jan 2012
Posts: 7
Rep Power: 14
AGIR is on a distinguished road
Thanks kid, but I don't see how swithching to CAE Linux is going to help me. I can get all the softwares on Ubuntu.
My problem is: how to implement snappHexMesh from Discretizer is it possible?) ?
AGIR is offline   Reply With Quote

Old   April 17, 2012, 00:15
Default
  #67
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Yes it is possible.
If only you are ready to spend time and learn.

regards
kid is offline   Reply With Quote

Old   April 17, 2012, 03:18
Default
  #68
New Member
 
Aurelien
Join Date: Jan 2012
Posts: 7
Rep Power: 14
AGIR is on a distinguished road
May the force be with me then...

Thanks.
AGIR is offline   Reply With Quote

Old   April 17, 2012, 03:53
Default
  #69
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Well i did not meant that.(anyways)
plz check if you have a snappyHexMeshDict file in /system/ folder. (discritizer would need it)
If yes, post the con-taint of file and error if any after you run discritizer.
Else
copy a sample snappyHexMeshDict file from tutorials of openFoam may be motorbike or anyother and try snappy .

Regards
kid is offline   Reply With Quote

Old   April 17, 2012, 04:21
Default
  #70
New Member
 
Aurelien
Join Date: Jan 2012
Posts: 7
Rep Power: 14
AGIR is on a distinguished road
That was a joke!
OK I'll do what you suggest and keep you posted
AGIR is offline   Reply With Quote

Old   April 20, 2012, 21:30
Default
  #71
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
Firstly since my first post I think I’ve made good progress in being able to generate satisfactory mesh results, using a combination of Discretizer-Setup and some manual edits of snappyHexMeshDict (to get feature edge refinement working).

Moving on to the questions…

Reading the OF user guide section on BlockMesh the convertToMeters and the example given is 0.001 scales to mm
In the blockMeshDict file as created by Discretizer-Setup it is set as “convertToMeters 1;” which makes me think all of the values being described are m.
However the STL files I amusing are described in mm, and the values for “blockMesh box” only make sense if they are mm, manual setting convertToMeters to 0.001 clearly screws the whole thing up.

So at the moment I’m not sure of what’s going exactly, either the resulting mesh is a 3m cube or a 3000m cube.
I’ve not found a method to measure the result in Paraview I can see its 3000 across but 3000 what?
I believe I am either misunderstanding the purpose of convertToMeters or there’s something I’m not doing right in Discretizer-Setup, can someone advise?
Doug68 is offline   Reply With Quote

Old   April 21, 2012, 08:40
Default
  #72
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Doug68,

If in ParaView it shows up as 3000, then it is in meters.

It's best that you work everything in meters. For example, after you have the STL file, you can run:
Code:
surfaceTransformPoints -help
And see what options you have for transforming the points of the STL file.

By the way, you should also take the chance of using surfaceTransformPoints to center the geometry in the origin of the referential, or at least put it very close to the origin. This is because snappyHexMesh uses an algorithm that is numerical sensitive to the location of the geometry in the simulation space.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 1, 2012, 04:37
Default
  #73
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
Hi wyldckat,

Thanks that worked, I had hoped running openFoam on windows I'd escape learning UNIX commands, but no such luck! So I've been slowed even in doing simple things like you describe, but I am getting there (slowly).

I have another question but this is the wrong thread for it...
Doug68 is offline   Reply With Quote

Old   May 17, 2012, 12:05
Default
  #74
New Member
 
Dan Jestico
Join Date: May 2012
Posts: 1
Rep Power: 0
djestico is on a distinguished road
Hello All,

I'm new to both Linux and Discretizer, although I have some experience of OpenFOAM and CFD in general. I'm trying to install Discretizer200 on a linux (ubuntu) platform but have run into an error. When trying to run the discretizer200.sh file for installation, I get the following error message:

/opt/discretizer/ruby/1.9.1-p243/bin/ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory

It seems something is trying reference libruby.so.1.9, when in fact the correct file seems to be libruby.so.1.9.1

Has anyone had this issue trying to install Discretizer200? How did you get round the problem?

Thanks for any help provided!

Dan.
djestico is offline   Reply With Quote

Old   June 21, 2012, 07:39
Default discretizer::setup
  #75
fif
New Member
 
Join Date: Jun 2012
Posts: 1
Rep Power: 0
fif is on a distinguished road
Hi,

I've created some geometries with salome and discretizer but I don't succeed in loading them in discretizer::setup. I've tried recording them in .stl ...but no success, I don't know...
Anyone can save me?

everytime i try to load my different files I have this message : "Failed to load /home/.../discretizer please select OpenFOAM case dir."

Thanks in advance for your help

Regards
fif
fif is offline   Reply With Quote

Old   July 9, 2012, 02:48
Default
  #76
New Member
 
Jason McGloin
Join Date: Jul 2012
Posts: 1
Rep Power: 0
JMcGloin is on a distinguished road
Hello all. New user here and let me just give a big thanks to all those who have posted questions and solutions thus far. You've already helped me considerably. I only hope I can be of some help down the road as well.

I have been trying to get the hang of Discretizer and am getting some progress. The pitfall I currently find myself in is that when I use the filter extractBlock I get the proper shape with reasonable pressure profile but a zero velocity. The slice shows the velocity profile I would expect, but just the patch generated from the filter is completely zero velocity.

Any ideas what to try?

Thanks,
Jason

Dan, if you haven't solved your issue yet, I remember there being a couple .lib files you may have to delete to get Discretizer installed. They are on the Discretizer website.

Fif, it sounds like you may just be trying to load the .stl in the field where Discretizer is expecting you to choose an OpenFoam case file or you don't have a valid case directory.

Last edited by JMcGloin; July 9, 2012 at 02:51. Reason: Typo
JMcGloin is offline   Reply With Quote

Old   August 11, 2012, 11:56
Default Seeking help
  #77
Member
 
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 15
bullmut is on a distinguished road
Hi all, new to the thread and new to linux.
I just installed OpenFOAM. And now i am trying to install Discretizer.

I am unable to follow the install instructions on the home page can anyone help me to install the latest version to work with openFOAM211?

I read earlier it is not setup initially for this version but i have not really encountered the "version" problem since just getting Discretizer up and running is where i am already failing.

Download the tar.gz, extracted and placed in my /opt folder.
Then i am supposed to access the bin folder which is curiously absent...


Thanks in advance for the help
bullmut is offline   Reply With Quote

Old   June 23, 2013, 10:17
Default
  #78
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Bruno
its good I found you here!
a fundamental question!
whats the usability of Discretizer? is it just a postProcessing utility like ParaView?what are differences?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 23, 2013, 10:50
Default
  #79
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
The old website for Discretizer: http://www.discretizer.org/node/1
Screencasts: http://www.discretizer.org/node/14

Discretizer itself is a tool for creating meshes interactively. If I remember correctly, it cannot import "blockMeshDict" files. Everything has to be drawn inside Discretizer and it uses a CSV file format, so deletion of vertexes has to be done outside of the program.

Discretizer::Setup is another tool, but for preprocessing. It provides some basic capabilities for generating a mesh with snappyHexMesh and running one or two solvers.

Both applications are made in Ruby. Installation instructions for Ubuntu 12.04 are available here: http://www.cfd-online.com/Forums/ope...tml#post434321 post #8

Both applications show great potential, but they also need tons of support for them to further evolve.

For more information on other GUIs for OpenFOAM: http://openfoamwiki.net/index.php/GUI

Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 27, 2015, 14:05
Default Discretizer importing STL
  #80
New Member
 
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13
yaqb is on a distinguished road
Hi Everyone!

I have just started working with discretizer and I have a problem with importing geometry from STL format. After choosing the directory, STL file, approving with OK everything crashes not giving any error massages. Any ideas how to deal with this problem? Here is the output I got.
Code:
(eval):5: warning: discarding old Fail
(eval):7: warning: method redefined; discarding old included
/home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:49: warning: method redefined; discarding old debug=
/home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:115: warning: method redefined; discarding old debug=
/home/jakub/OpenFOAM/discretizer/discretizer/svn/discretizer200/readstl.rb:93: warning: shadowing outer local variable - file
/home/jakub/OpenFOAM/discretizer/discretizer/svn/discretizer200/readstl.rb:138: warning: mismatched indentations at 'end' with 'def' at 50
/opt/openfoam211/platforms/linux64GccDPOpt/bin/icoFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/simpleFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/rhoPimpleFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/interFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/solidDisplacementFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam
/opt/openfoam211/bin/paraFoam
/opt/paraviewopenfoam3120/bin/paraview
/opt/openfoam211/platforms/linux64GccDPOpt/bin/foamToVTK
/opt/openfoam211/platforms/linux64GccDPOpt/bin/transformPoints
/opt/openfoam211/platforms/linux64GccDPOpt/bin/fluentMeshToFoam
/opt/openfoam211/platforms/linux64GccDPOpt/bin/foamMeshToFluent
/opt/openfoam211/platforms/linux64GccDPOpt/bin/renumberMesh
/opt/openfoam211/platforms/linux64GccDPOpt/bin/setFields
/opt/openfoam211/platforms/linux64GccDPOpt/bin/snappyHexMesh
/opt/openfoam211/platforms/linux64GccDPOpt/bin/blockMesh
execute from /home/jakub/OpenFOAM/discretizer/discretizer/svn/discretizer200, dialogs from /home/jakub/OpenFOAM/discretizer
discretizersetup.rb:941: warning: instance variable @stlmesh not initialized
-60.0, 60.0, -59.9868, 59.9868, -15.5, 1.5
currentsize 2
{"XMIN"=>-60.0, "XMAX"=>60.0, "XGRIDNUM"=>7, "YMIN"=>-59.9868, "YMAX"=>59.9868, "YGRIDNUM"=>7, "ZMIN"=>-15.5, "ZMAX"=>1.5, "ZGRIDNUM"=>1}
/home/jakub/OpenFOAM/discretizer/discretizer/svn/discretizer200/readstl.rb:166:in `glGenLists': invalid enumerant (Gl::Error)
    from /home/jakub/OpenFOAM/discretizer/discretizer/svn/discretizer200/readstl.rb:166:in `drawshape'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `draw'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `block in draw'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `each'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `draw'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `block in draw'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `each'
    from /home/jakub/OpenFOAM/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/glgroup.rb:75:in `draw'
    from discretizersetup.rb:2662:in `run'
    from discretizersetup.rb:2662:in `<main>'

Last edited by wyldckat; June 28, 2015 at 15:15. Reason: Added [CODE][/CODE] markers
yaqb 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
solution manual for essential computational fluid dynamics by oleg zikanov okhitan Main CFD Forum 0 October 25, 2014 15:54
computational fluid dynamics and finite element analysis kabirgph Main CFD Forum 1 October 17, 2014 06:59
unable to find any Online Course regarding Basic Computational Fluid Dynamics Yuska Kamil Main CFD Forum 1 December 17, 2007 14:39
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 13:44.