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:
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);