Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('/Users/aben/blockMeshDict','w') as file:
- file.write(F'''
- FoamFile
- {{
- version 2.0;
- format ascii;
- class dictionary;
- object blockMeshDict;
- }}
- convertToMeters 1;
- vertices
- (
- (0 0 -0.1)
- (0.6 0 -0.1)
- (0 0.2 -0.1)
- (0.6 0.2 -0.1)
- (3 0.2 -0.1)
- (0 1 -0.1)
- (0.6 1 -0.1)
- (3 1 -0.1)
- (0 0 0.1)
- (0.6 0 0.1)
- (0 0.2 0.1)
- (0.6 0.2 0.1)
- (3 0.2 0.1)
- (0 1 0.1)
- (0.6 1 0.1)
- (3 1 0.1)
- );
- blocks
- (
- hex (0 1 3 2 8 9 11 10) ({x0} {y0} 1) simpleGrading (1 1 1)
- hex (2 3 6 5 10 11 14 13) ({x1} {y1} 1) simpleGrading (1 1 1)
- hex (3 4 7 6 11 12 15 14) ({x2} {y2} 1) simpleGrading (1 1 1)
- );''')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement