v0.15.0
Loading...
Searching...
No Matches
loop_atom.jou
Go to the documentation of this file.
1#!python
2cubit.cmd('reset')
3cubit.cmd('create brick x 1 y 1 z 1')
4cubit.cmd('create brick x 1 y 1 z 1')
5cubit.cmd('move volume 1 x 1')
6cubit.cmd('imprint volume all')
7cubit.cmd('merge volume all')
8cubit.cmd('compress all')
9
10cubit.cmd('volume all size auto factor 10')
11cubit.cmd('volume all scheme tetmesh')
12cubit.cmd('mesh volume all')
13
14#apply BLOCKSETs, SIDESETs, NODESETs
15cubit.cmd('set duplicate block elements on')
16cubit.cmd('block 1 volume 1')
17cubit.cmd('block 2 volume 2')
18cubit.cmd('block 2 name "Sun"')
19cubit.cmd('block 3 volume 1')
20cubit.cmd('block 3 name "Moon"')
21cubit.cmd('block 4 volume 2')
22cubit.cmd('block 4 name "Comet"')
23
24sideNames = ['" "','" "','" "','"InterfaceA"','" "','"Europe"','" "','"Africa"','" "','"Asia"','" "']
25
26a = 1
27while a<=11:
28 cubit.cmd('sideset ' + str(a) + ' surface ' + str(a))
29 cubit.cmd('sideset ' + str(a) + ' name ' + str(sideNames[a-1]))
30 a = a + 1
31
32vertexNames = ['" "','"UK"','" "','"France"','"Spain"','"Portugal"','" "','"Germany"','"Belguim"','" "','"Holland"']
33
34a = 1
35while a<=11:
36 cubit.cmd('nodeset ' + str(a) + ' vertex ' + str(a))
37 cubit.cmd('nodeset ' + str(a) + ' name ' + str(sideNames[a-1]))
38 a = a + 1
39
40cubit.cmd('save as "/Users/michaelcortis/Documents/PhD/moFEM/mofem/meshes/loop_atom.cub" overwrite')