-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_graph_bug.py
44 lines (31 loc) · 934 Bytes
/
add_graph_bug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# coding: utf8
from subprocess import call
import domains as d
dgens = []
N, tag = 3, 1
conf = d.sanitize_config(Nints=N, init_offset=True, tag=tag)
conf['center'] = (-2, 0, 0)
dgen = d.generate_concentric_dict(conf)
cmds = d.write_params_geo(conf, file_geo='geo/ellipse-concentric.script.geo')
call(cmds)
dgens.append(dgen)
tag += N
N = 3
conf = d.sanitize_config(Nints=N, init_offset=False, tag=tag)
conf['center'] = (2, 0, 0)
dgen = d.generate_concentric_dict(conf)
cmds = d.write_params_geo(conf, file_geo='geo/sphere-concentric.script.geo')
call(cmds)
dgens.append(dgen)
dicts = d.merge_msh(dgens)
tag += N
N = 1
conf = d.sanitize_config(Nints=N, init_offset=False, tag=tag)
conf['center'] = (0, 0, 0)
conf['rad'] = [5]
dgen = d.generate_concentric_dict(conf)
cmds = d.write_params_geo(conf, file_geo='geo/sphere-concentric.script.geo')
call(cmds)
dgens.append(dgen)
dicts = d.merge_msh(dgens)