v0.14.0
elec.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 
4 brick x 5 y 5 z 1.0
5 
6 
7 webcut volume 1 with plane yplane offset 1
8 webcut volume 1 with plane yplane offset -1
9 webcut volume 1 with plane yplane offset -1.5
10 webcut volume 2 with plane yplane offset 1.5
11 imprint all
12 merge all
13 
14 #BOUNDARY_CONDITION
15 block 1 surface 3
16 block 1 name 'BOUNDARY_CONDITION_1'
17 block 1 attribute count 1
18 block 1 attribute index 1 0.0
19 
20 
21 
22 #CONSTANT_BOUNDARY
23 
24 block 4 surface 7
25 block 4 name "ELECTRODE_1"
26 
27 block 5 surface 17
28 block 5 name "ELECTRODE_2"
29 
30 
31 block 11 surface 7
32 block 11 name "INT_ELECTRIC_1"
33 block 11 attribute count 1
34 block 11 attribute index 1 -5
35 
36 block 12 surface 17
37 block 12 name "INT_ELECTRIC_2"
38 block 12 attribute count 1
39 block 12 attribute index 1 5
40 #
41 block 100 volume 1 3 5
42 block 100 name "MAT_ELECTRIC_1"
43 block 100 attribute count 1
44 block 100 attribute index 1 1
45 
46 block 101 volume 2
47 block 101 name "MAT_ELECTRIC_2"
48 block 101 attribute count 1
49 block 101 attribute index 1 2
50 
51 block 102 volume 4
52 block 102 name "MAT_ELECTRIC_3"
53 block 102 attribute count 1
54 block 102 attribute index 1 3
55 
56 block 103 volume 3
57 block 103 name "DOMAIN_INT"
58 
59 volume all scheme tetmesh
60 volume all size auto factor 10
61 mesh volume all
62 save as "/Users/'dir'/elec_3D.cub" overwrite