v0.14.0
Loading...
Searching...
No Matches
mixed_modeI_III.jou
Go to the documentation of this file.
1reset
2#{angle=45}
3create vertex -130 -5 0
4create vertex -130 5 0
5
6create vertex 130 -5 0
7create vertex 130 5 0
8
9#{gama=angle*PI/180}
10#{x=5/tan(gama)}
11
12create vertex {x} -5 0
13create vertex {-1*x} 5 0
14
15
16create curve vertex 6 vertex 2
17create curve vertex 2 vertex 1
18create curve vertex 1 vertex 5
19create curve vertex 5 vertex 6
20
21
22create curve vertex 5 vertex 3
23create curve vertex 3 vertex 4
24create curve vertex 4 vertex 6
25
26create surface curve 1 2 3 4
27create surface curve 5 6 7 4
28
29sweep surface 1 vector 0 0 1 distance 20
30sweep surface 2 vector 0 0 1 distance 20
31
32
33brick x 260 y 10 z 40
34move volume 3 x 0 y 0 z 40
35split surface 13 across location position 0 -5 60 location position 0 5 60
36
37split surface 7 across location position -120 -5 0 location position -120 5 0
38split surface 12 across location position 120 -5 0 location position 120 5 0
39
40
41brick x 50 y 10 z 60
42move volume 4 x 0 y 0 z 30
43volume 4 copy
44volume 4 copy
45
46chop volume 1 with volume 4
47chop volume 2 with volume 5
48chop volume 3 with volume 6
49
50imprint volume all
51merge volume all
52
53
54block 1 volume all
55block 1 name 'MAT_ELASTIC'
56block 1 attribute count 2
57block 1 attribute index 1 2800
58block 1 attribute index 2 0.38
59
60#surface 6 size auto factor 7
61#surface 6 scheme trimesh
62#mesh surface 6
63
64volume 7 9 11 scheme Tetmesh
65volume 7 9 11 size auto factor 7
66mesh volume 7 9 11
67
68
69volume 8 10 12 13 scheme Tetmesh
70volume 8 10 12 13 size auto factor 8
71mesh volume 8 10 12 13
72
73
74create displacement on curve 42 dof 1 dof 2 dof 3 fix 0
75create displacement on curve 47 dof 3 dof 2 fix 0
76create force on curve 37 vector 0 0 10 0 0 0
77
78#actual geometry boundries curves on which you don't allow nodes to move
79sideset 100 curve 92 100 101 44 43 2 94 108 110 118 117 51 50 6 21 18 36 34 25 10 13 35 33 27 37
80
81#actual geometry boundries vertices on which you don't allow nodes to move (we also include vertices of the force curve because we don't allow it move)
82nodeset 101 vertex 25 26 4 3 5 6 2 1 28 27
83
84#actual geometry boundries surfaces from which you don't allow nodes to move out (nodes can only move on the surface)
85sideset 102 surface 16 4 50 78 67 44 56 61 73 18 9 71 66 75 51 46 54 59 24 60 55 45 49 21
86
87#The edges between 102 and 10200,10201,.... will allow nodes to move out from surface 102
88Sideset 10200 surface 77 65 69 74
89
90#crack surface
91Sideset 200 surface 6
92
93#crack front
94Sideset 201 curve 16
95
96#color Volume 7 mediumturquoise
97#color Volume 11 mediumturquoise
98#color Volume 12 mediumturquoise
99#color Volume 13 mediumturquoise
100#color Volume 8 mediumturquoise
101#color Volume 10 mediumturquoise
102#color Volume 9 mediumturquoise
103
104color Volume all white
105color Surface 6 firebrick
106
107#ADJUST FOR THE NEW VERSION OF MESH CUTTING
108
109block 2 curve 100 118 110 6 94 35 117 44 51 43 34 13 2 101 21 10 36 50 25 18 27 33 148 144 128 133 141 138 131 129
110block 3 vertex 4 3 26 25 27 28 2 1
111
112delete sideset 102 200 201 10200 100
113
114
115create sheet extended from surface 6
116move curve 157 midpoint location curve 16 include_merged
117surface 82 scale x 1 y 1 z 0.5 about vertex 17
118
119surface 82 size auto factor 4
120surface 82 scheme trimesh
121mesh surface 82
122#move surface 82 z 0.1 include_merged
123
124sideset 400 surface 82
125
126unite volume 9 7
127
128imprint volume 9 with volume 11
129merge volume all
130
131volume 9 scheme Tetmesh
132volume 9 size auto factor 7
133mesh volume 9
134
135
136save as "/Users/zahur/Desktop/mixed_modeI_III_75.cub" overwrite
137
138hardcopy "/Users/zahur/Desktop/mesh_45deg1.bmp" bmp
139
140
141
142