CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Created a python package for generating blockMeshDict

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

Like Tree1Likes
  • 1 Post By bjnieuwboer

LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2018, 16:21
Talking Created a python package for generating blockMeshDict
New Member
Vi Kumar
Join Date: Sep 2017
Location: Dubai, UAE
Posts: 5
Rep Power: 6
grokkingStuff is on a distinguished road
I've always hated writing blockMesh dictionaries manually or with m4 so I made a python package for it!
It's called pyblockmesh and it's up (like 10 minutes ago when this was posted)

Still very much in alpha stage and lots of progress to be made but it has basic functionality.

I'd love feedback, whether it's suggestions or pull requests. Thanks!

Github Link:
grokkingStuff is offline   Reply With Quote

Old   December 4, 2018, 05:36
Senior Member
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 107
Rep Power: 15
rcastilla is on a distinguished road
Hi, Vi,
It is good that you had this initiative. Actually, I use to use another similar package, which is being in development since 4 years ago. Maybe you can take a look at
Best regards
rcastilla is offline   Reply With Quote

Old   March 31, 2020, 06:09
Philipp Conen
Join Date: Apr 2019
Location: GER, NRW
Posts: 35
Blog Entries: 2
Rep Power: 5
pconen is on a distinguished road
Dear Foamers,

I just tried out this nice tool, but it does not work for me. There was some trouble in syntax for newer Python versions. So I worked out a version that workes for Python 2.7.10 and Python 3.8. You can try out under:

I hope this would help someone.

Philipp Conen

Last edited by pconen; March 31, 2020 at 09:13.
pconen is offline   Reply With Quote

Old   November 5, 2020, 07:55
Default update of ofblockmeshdicthelper
Bas Nieuwboer
Join Date: Mar 2013
Posts: 32
Rep Power: 11
bjnieuwboer is on a distinguished road
Hi All,

I came across this website of Nolan Dyck:

He extended the ofblockmeshdicthelper. It can be pulled from his github:

At first glance, I think he added support for meshing cylinders/cones and tubes. I think this is a really nice development in creating blockmeshes.
Marpole likes this.
bjnieuwboer is offline   Reply With Quote


blockmesh, python, python module

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to get Python Shell into ParaView 3.8.1? blaise OpenFOAM Installation 3 July 24, 2012 04:58
OpenFoam 1.6-ext - RPM build errors preibie OpenFOAM 12 September 8, 2011 03:12
1.6-ext compilation flowris OpenFOAM 18 March 21, 2011 12:01
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30

All times are GMT -4. The time now is 21:41.