Skip to content

Run a tutorial case

For the first step, I want to generate the blockMeskDict by using make_mountainmaillage2D.py script. It uses input_make_blockMeshDict.py as an input file. When I tried to run this script I got ValueError because the input file is not appropriate to this script. The make_mountainmaillage2D.py suppose to get these keys:

keys_input = ['length', 'width', 'height', 'mount_h', 'mount_pos', 'divx', 'divy', 'divz']

However, it gets these keys in the input_make_blockMeshDict.py file:

r = 6.5
height = 0.5
lenghtsquare = 6.5
l2 = lenghtsquare/2
divx = 80
divy = 80
divz = 20
divr = 50

zgrading = 0.02