SHARE
TWEET

Untitled

a guest Jun 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with open('/Users/aben/blockMeshDict','w') as file:
  2.     file.write(F'''
  3.  
  4. FoamFile
  5. {{
  6.     version     2.0;
  7.     format      ascii;
  8.     class       dictionary;
  9.     object      blockMeshDict;
  10. }}
  11.  
  12.  
  13. convertToMeters 1;
  14.  
  15. vertices
  16. (
  17.     (0 0 -0.1)
  18.     (0.6 0 -0.1)
  19.     (0 0.2 -0.1)
  20.     (0.6 0.2 -0.1)
  21.     (3 0.2 -0.1)
  22.     (0 1 -0.1)
  23.     (0.6 1 -0.1)
  24.     (3 1 -0.1)
  25.     (0 0 0.1)
  26.     (0.6 0 0.1)
  27.     (0 0.2 0.1)
  28.     (0.6 0.2 0.1)
  29.     (3 0.2 0.1)
  30.     (0 1 0.1)
  31.     (0.6 1 0.1)
  32.     (3 1 0.1)
  33. );
  34.  
  35. blocks
  36. (
  37.     hex (0 1 3 2 8 9 11 10) ({x0} {y0} 1) simpleGrading (1 1 1)
  38.     hex (2 3 6 5 10 11 14 13) ({x1} {y1} 1) simpleGrading (1 1 1)
  39.     hex (3 4 7 6 11 12 15 14) ({x2} {y2} 1) simpleGrading (1 1 1)
  40. );''')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top