CFD Online Logo CFD Online URL
Home > Forums

Enosh, a structured grid generator (I)

Register Blogs Members List Search Today's Posts Mark Forums Read

Rate this Entry

Enosh, a structured grid generator (I)

Posted February 7, 2014 at 17:33 by lakeat
Updated February 13, 2014 at 12:49 by lakeat

Trust me, I've read more than 20 structured mesh generator codes already in the last year. Interestingly, none of them satisfy me. So I decided to make it my own. I've been working on this small mesh generator for quite a while. It worked before for a single block mesh smoothing. But starting from last month, as I was thinking about how to make it "multi-block", I decided to rewrite the whole code. Because it is quite different from C++ point of view to design classes for a single block or to design classes for multi-blocks. For the ease and the power and the flexibility of visualization, I chose qt and vtk to handle the graphic things. Talk to vtk is quite popular these days. But I am also slightly worrying about the portability in the future release. (Any ideas?)

The following screenshots show a simple TFI horseshoe mesh and its input file:
Name:  Screenshot from 2014-02-07 15:57:59.jpg
Views: 1790
Size:  100.3 KB
Name:  Screenshot from 2014-02-07 16:17:53.jpg
Views: 1759
Size:  27.4 KB
I am making it neater and more powerful every week. The things I like most about this little program are: a clean syntax of the input file (very close to what you have learnt from blockmeshDict, but it is more powerful, and it is specifically designed for mesh smoothing), eps/png export (we all know how pleasant to have "publication quality" figures), a good-looking qt widget. Also in the near future, I hope it could be an alternative to the OpenFOAM blockmesh utility with easier syntax and a nice mesh viewer.

I am aiming high. Here are a few things that cross my mind, they are on my to-do list. Will do it in the next few months hopefully.

1. OpenFOAM mesh export; (I had one before in my another mesh generator, so should be okay)
2. Multi-blocks capability, which is essential;
3. Multi-block smoothing (with bc control);
Posted in Uncategorized
Views 869 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0



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