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

[blockMesh] Creating blockMeshDict from python

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

Like Tree3Likes
  • 3 Post By kandelabr

LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2020, 04:33
Default Creating blockMeshDict from python
Senior Member
kandelabr's Avatar
Join Date: Feb 2017
Location: Slovenia
Posts: 149
Rep Power: 5
kandelabr is on a distinguished road
I've been using Python and jinja2 to calculate points and create blockMeshDict files with it.
I've shared the script with a few examples here:

So far it proved useful to me. Feel free to use it, any comments and suggestions are most welcome.

rmaries, jherb and lebc like this.
kandelabr is offline   Reply With Quote


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
[blockMesh] Creating a blockmeshDict file andrewlindsay OpenFOAM Meshing & Mesh Conversion 7 November 20, 2019 08:37
[blockMesh] Created a python package for generating blockMeshDict grokkingStuff OpenFOAM Meshing & Mesh Conversion 1 December 4, 2018 06:36
[blockMesh] Creating an axisymmetric piston cylinder in blockMeshDict foadsf OpenFOAM Meshing & Mesh Conversion 9 August 23, 2018 08:54
[blockMesh] what commands should I use to start creating a blockMeshdict file? Hojae OpenFOAM Meshing & Mesh Conversion 1 November 12, 2014 17:58
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28

All times are GMT -4. The time now is 10:07.