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

A interactive mesh creation tool. Discretizer will create geometry and meshes for three dimensional flow simulations (CFD). Geometry import is not a goal: Discretizer will be furiously fast geometry builder (on many common engineering applications at least.

I want to do reusable already meshed geometries for parametrization and optimization.

Ahmed body in OpenSCAD!

Time for some aero simulations. I did the Ahmed body in OpenSCAD. Just input the angle and press F6..
Ahmed body in OpenSCAD

Can you predict Cd? Input file: http://www.discretizer.org/files/ahmed_body.scad

May 2, 2012, binary release, discretizer_mesh, discretizer170 (for OpenFOAM 1.7.x) and discretizer200 (for OpenFOAM 2.x)

SnappyHexMesh and simpleFoam corrected for OpenFOAM 2.x usage.
http://www.discretizer.org/files/discretizer-32-bit-2.tar.gz
http://www.discretizer.org/files/discretizer-64-bit-2.tar.gz

June 18, 2011, featureEdges in OpenFOAM 2.0.0!

Feature Edge test

Playing with feature edges!

November 10, 2010, updated revision

These files are now updated to svn revision 117.

discretizer-32bit.tar.gz (13 MB)
discretizer-64bit.tar.gz (13 MB)

Note: Just unpack and run "discretizer_setup64.sh" (example). For OpenFOAM functionality, start in a shell with OpenFOAM commands enabled.
Note: maybe you have to remove the libGL* files located in the lib directory of the downloads.

September 24, 2010, screencast of Discretizer-Setup in action

Discretizer-Setup in action

(Screencast) of all the steps involved in a CFD analysis. Performed in Windows using BlueCFD:s OpenFOAM distribution.

September 23, 2010, Windows binary release

Download: discretizer_windows.zip (53 MB)
Uncompress the zip-file in c:\discretizer
If you want to install in another location, edit the bat-files (discretizer.bat and discretizersetup.bat).
For full functionality OpenFOAM has to be installed. If you like to cross-compile stuff with mingw. Please go ahead (link). For mortals blueCFD has high quality OpenFOAM binaries http://www.bluecape.com.pt/blueCFD. It's the best OpenFOAM I've used on Windows. Even snappyHexMesh works!

September 16, 2010, *GREAT NEWS* Mohammed Rashad steps up maintaining FXRuby

Found on the fxruby-users mail list:
"Mohammed Rashad wrote:

I am going to start a project in C++ or Ruby (not yet decided). First
I choose Qt for gui but latter I am impressed with FOX and also FXRuby.
I had contributed to some opensource projects like GRASS GIS and created two
projects on sourceforge.
From you blog I heard that you signed off from FOX and FXRuby and also FOX
is dead. I would like to maintain FXRuby and FXpy bindings."

August 5, 2010, Lyle quits

I just read that Lyle Johnson stopped develop, support and maintain FXRuby: http://lylejohnson.name/blog/2010/08/04/moving-on/

June 16, 2010, binary STL

Wasn't so difficult to read binary stl:s after all. Just committed binary stl support in Discretizer-Setup.

June 14, 2010, export dialog

Export Dialog

An export-dialog for Discretizer-Setup.

June 9, 2010, Front Area calculation in ParaView

This is one way to calculate front area in ParaView. Front Area Calc

May 24, 2010, aero tutorial

Working on tutorial (method) for aero simulations.
fluent vs foam

I try to find the right settings for automotive aero simulations.

May 20, 2010, I want to redistribute VirtualBox

Anyone succeded in compiling VirtualBox on Windows? What do I have to buy? MSDN subscription XXX$$$?

April 12, 2010, new screencasts

I've got 3 new screencasts from Gerhard Gruber. Cad creation in Freecad, volume mesh in Netgen, OpenFOAM calculation from Discretizer-Setup

March 31, 2010, lets twitter on #openfoam

I would like to hear some twitter on #openfoam! See you on: http://twitter.com/discretizer

March 24, 2010, new release

OpenFOAM 1.6 compatibility. Visualization of blockMesh box and locationInMesh for snappyHexMesh usage.

discretizer-32bit.tar.gz (13 MB)
discretizer-64bit.tar.gz (13 MB)

Note: Just unpack and run "discretizer_setup64.sh" (example). For OpenFOAM functionality, start in a shell with OpenFOAM commands enabled.
Note: maybe you have to remove the libGL* files located in the lib directory of the downloads.

March 11, 2010, snappyHexMesh preparations

boxdialog

It will be nice to see where the blockMesh cube will be located when using snappyHexMesh. There is also a locationInMesh sphere dialog.

March 4, 2010, scale dialog

Scale Dialog

I'm working on a new release which will include snappyHexMesh. Are there other units wanted in the scale dialog? I've included m, dm, cm, mm, angstrom, in, feet and yard as well.

February 10, 2010, no internet

Since I've just moved to a bigger apartment there are no updates. Internet connection is supposed to be up February 16.

January 12, 2010, toy car aero simulation

I've been trying to run simpleFoam on the snappyHexMesh for a couple of days. kOmegaSST was used. Car was scaled to 4.4 m.
simpleFoam aero

After a lot of tweaking the influence from the 2 bad cells was minimized. simpleFoam steady state solver was used. 1,700,000 cells.

simpleFoam aero2-yplus

Y-plus is within the appropriate wall function range.

January 9, 2010, a manual for Discretizer

The manual never written has now been contributed from Gerhard Gruber. Thanks!
Discretizer-manual.pdf (1.6 MB)

January 6, 2010, snappyHexMesh is also a standard solver!

I noticed that snappyHexMesh could be incorporated in the Discretizer::Setup as well. Then it is possible to create a mesh from stl surface meshes. It's too early to release any files. I played with it today and tried to simulate a car. Looks promising but simpleFoam just crash all the time. Is the mesh so bad? SnappyHexMesh seems to be a lot better than es-aero at least (it was an addon to star-cd v 3).

snappyHexMesh on bad stl

A stl file of a porsche I found on the internet. Meshed with snappyHexMesh. Original mesh on the right side.

January 4, 2010, added solvers to Discretizer::Setup

Now the following solvers are possible to use in Discretizer::Setup :
icoFoam, simpleFoam, rhoTurbFoam, rhoPorousSimpleFoam, rhoPimpleFoam, interFoam, rasInterFoam, lesInterFoam

I made rhoTurbFoam use k-omega in contrast to the other RANS solvers available. Will be possible to switch between k-omega and k-epsilon in future releases. Have patience. I've run out of disk space on my laptop (which I develop on) so I still use OpenFOAM 1.5...Some things have changed in 1.6, but it will be easy to change from what I seen so far (thermophysicalProperties was slightly changed).

discretizer-32bit.tar.gz (13 MB)
discretizer-64bit.tar.gz (13 MB)
Just unpack and run "discretizer_setup64.sh" (example). For OpenFOAM functionality, start in a shell with OpenFOAM commands enabled.

Note: maybe you have to remove the libGL* files located in the lib directory of the downloads.

fluent import

An imported fluent mesh with boundaries setup in Discretizer::Setup. rhoPorousSimpleFoam was used. The dialog to delete solution files is also visible.

December 21, 2009, Optimization animation

An animation showing the initial geometry, the optimized and the reference. Reference has a pressure drop of 126 Pa, and the optimized 106 Pa.
optimization

December 20, 2009, Optimization tutorial using Opt4j

I just wrote a short tutorial how to do an optimization using OpenFOAM, Discretizer and Opt4j. Additional files

December 19, 2009, Binary release, 32 and 64-bit. Both Discretizer and Discretizer::Setup (Linux)

discretizer-32bit.tar.gz (13 MB)
discretizer-64bit.tar.gz (13 MB)
Just unpack and run "discretizer_setup64.sh" (example). For OpenFOAM functionality, start in a shell with OpenFOAM commands enabled.

Please note that Discretizer::Setup just have 3 solvers right now (icoFoam, simpleFoam and rhoPorousSimpleFoam).

If you have problem with the 3d-viewer, try to delete discretizer/lib/libGL.* files. I had to do that in Ubuntu 9.04.

December 16, 2009 - Zones in Discretizer::Setup (again)

Just porous zone for now. OK? Have to do a release soon.
cell zones

December 15, 2009 - Zones in Discretizer::Setup

Cell zones finding its way into Discretizer::Setup...
cell zones

December 12, 2009 - Discretizer::Setup development

Development is ongoing. I will do a release when I've implemented zone capabilities. I also wonder if Foamanizer is better than Discretizer::Setup. Discretizer::Pre should be the name someone might say, but it is actually used after Discretizer.

December 1, 2009 - Mesh Import (in Discretizer::Setup)

I have to admit slight laziness when I created this dialog box. Read a 700000 cell fluent mesh into Discretizer::Setup today. Just to test. Took a while to read the file, but in the 3D-viewer the model felt light.
import

November 23, 2009 - rhoPorousSimpleFoam

Discretizer::Setup used to assign boundary conditions with energy and ideal gas formulation. Now 3 solvers are present in Discretizer::Setup: simpleFoam, icoFoam and rhoPorousSimpleFoam.
rhoPorousSimpleFoam

PHP update is on! - November 23, 2009

Maybe everything will break down...

PHP update - November 18, 2009

Wonder if site will break down completely when PHP is upgraded.
Think I will try next week (to upgrade PHP, maybe also drupal). Want to release a preview of Discretizer-Setup then also.

October 26, 2009 -Binary releases

I'm going to do binary releases so now I have installed Ubuntu 9.04(64bit), Centos 5.4(32 and 64 bit), Archlinux(64bit) and OpenSUSE 11.1(64bit) in VirtualBox.
VirtualBox

October 9, 2009 -Discretizer-Setup Ogg video

A video of Discretizer-Setup in action: Ogg video (9.5 MB)

October 7, 2009 -Discretizer-Setup again

Now I can switch between icoFoam and simpleFoam with ease. More solvers to follow.
Switch solvers a breeze

Set up a basic case with boundaryconditions takes only minutes.

October 6, 2009 -Discretizer-Setup

I'll just use a set of prepared files for each solver. It will be extremely easy to choose what things that are going to be available in the interface. Maybe ugly, but functional.
Discretizer-Setup Screenshot controlDict

Streamlined setup of available options.

October 1, 2009 -Discretizer-Setup

Not too many days from a working prototype.
Discretizer-Setup Screenshot

Redesign of table. Start with few rows and then adding if required.

September 24, 2009 -Discretizer-Setup

I also like Discretizer-Setup to work now. Most things are solved.
Discretizer-Setup Screenshot

The boundary dialog has gone through some rework.

September 21, 2009 -Boundary dialogs

Discretizer-Setup Boundary dialogs

Just a preview of how boundary dialog might look in Discretizer-Setup

September 10, 2009 -Choose OpenFOAM standard solver and apply boundary conditions

fill pipe

Wouldn't it be nice to read a polyMesh filen and then choose solver switch solver, create boxToCell and see where it is located. Add boundary conditions. Scale mesh. Add monitor points and so on. I think I will do "Discretizer - Setup". Or rather I'm in progress and things are moving quickly. Of course one day "Discretizer - Setup" could be a tab in "Discretizer - Workbench" :-)

August 31, 2009 -VOF test 2

fill pipe

Just a test of rasInterFoam on a Discretizer mesh. Turbulence seems to improve solution. The fill takes 50 seconds. Contours of gamma (red is water and blue is air)

August 27, 2009 -VOF test

fill pipe

Just a test of interFoam on a Discretizer mesh.

August 24, 2009 -ASCII stl read

snappyHexMesh bike

Now it is possible to read ASCII stl files and view them.

August 11, 2009 - Labels on coordinate system.

Coordinate system labels

Functional, but when the coordinate system is cylindrical it still says X,Y and Z. It's more difficult to create phi and omega with just lines...

August 8, 2009 - Benchmark of Ruby 1.9 vs Ruby 1.8

I made a limited test of Discretizer on Ruby 1.9. Seems like Ruby 1.9 is 2 times faster than Ruby 1.8. Memory consumtion was about the same. The test file is about 120 000 cells.
ruby benchmark

August 7, 2009 - Fluent on a Backward Facing Step

1 mm (uniform cell size) mesh was exported to Fluent and std k-epsilon was used. This is the result:
backward facing step

This model has 1 mm cells. Fluent, segregated solver. Results exported to ParaView via Ensight format. Segregated solver

August 7, 2009 - simpleFoam on a Backward Facing Step

Compare with the googled picture.
backward facing step

This model has 1 mm cells. OpenFOAM with kEpsilon model

August 6, 2009 - simpleFoam on a Backward Facing Step

I just set up a 2d backward facing step file (in test directory t19_step_2d_re189.dtz and t19_step_2d_re3780.dtz). I tried different mesh size and also compared with Fluent. Fluent was faster, but with a constant mesh size of 1 mm fluents coupled solver was behaving strange. Results where identical. Maybe there will be a picture from that run tomorrow. Compare :-)
backward facing step

Inlet is 50 mm expanding to 100 mm. Standard K-epsilon model is used. Simulation made in OpenFOAM. Cell size 5 mm.

August 4, 2009 - Warnings removed

In recent versions of Ruby a lot of warnings has popped up. While it's nice when developing the application to have warnings it has been annoying when using Discretizer. I just disabled warnings. The update is in revision 77 at sourceforge.

May 10, 2009 - Ubuntu 9.04 - Jaunty Jackalope - Installation

Install FXRuby:
sudo apt-get install libfox-1.6-0 libfox-1.6-dev libfox-1.6-doc libopengl-ruby1.8 libruby1.8-extras ruby1.8-dev g++ libxrandr-dev subversion
sudo gem-install fxruby
svn co https://discretizer.svn.sourceforge.net/svnroot/discretizer discretizer
cd discretizer/discretizer/lib
ruby discretizer.rb
Install OpenFOAM.

May 6, 2009 - symmetry boundary condition

symmetry

April 28, 2009 - SVN revision 73

There are still some things broken after the implementation of new mesh export.

April 16, 2009 - Slightly more complex

I tried to do a slightly more complex geometry. This is some kind of flow splitter.
flowsplit

April 16, 2009 - Long pipe

Just did a very long pipe. It was easy, almost fun. Mesh took 27 seconds to export and contain 145719 cells, it's just one block.
longpipe

April 13, 2009 - Faceface extrusion

Oh, this kind of work now too.
faceface

April 13, 2009 - Ogrid Extrusion

I just made a longer pipe...
Ogrid002

April 12, 2009 - Ogrid Extrusion

Now the the internals of Discretizer allow this kind of extruded mesh. 97020 cells in 5 minutes. Think I will commit soon.
Ogrid001

April 8, 2009 - Almost there

It will be nice when this thing work 100%
Almost usable

April 8, 2009 - It's so close

I've wanted to extrude face-faces a long time. But I have to go to sleep :-(
Extrude face_face

Now I don't try to use stitchMesh anymore

April 7, 2009 -Mesh export example

Now it will be easy to add some useful features.
merge mesh

The new mesh export is in the svn repository at sourceforge

April 6, 2009 -mesh export

Things are starting to shape up with the new mesh export.
new mesh export

March 24, 2009 -mesh export - *updated*

There are no results yet of the new mesh export. That is because I've done a boring exercise in 2d to get all things right. I think I have sorted out all issues now. The 3d version for Discretizer will be available within weeks. Then the implementation of extrusions (face-face ones below) will be possible with ease (mergeprog.rb, mergeprog.xls).

March 14, 2009 -stitchMesh approach abandoned

Seems like I can't get stitchMesh to work so I will just redo the mesh export in Discretizer... This time it has to be great.

Feb 26, 2009 -stitchMesh sucks!

faceface extrusion

Vertices extruded from facefaces

I want to make Discretizer usable as fast as possible. Then the OpenFOAM utility stitchMesh seemed as a good idea. Only problem is that it is broken. I hope the version that Hrvoje Jasak makes is better it is called OpenFOAM-1.5-dev and can be downloaded from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/

Feb 22, 2009 -sourceforge svn version 71

It's possible to use multiline on Ruby <1.8.7 now. I removed the usage of Fixnum#odd? which is only available on Ruby 1.8.7 and higher. This makes it possible to use multiline in Windows and other operating systems with older versions of Ruby.

Feb 22, 2009 -update of multiline

multiline extrusion

Faces from edges extruded along a multiline.

Last updated August 8, 2009