-
Notifications
You must be signed in to change notification settings - Fork 97
/
RVE.fbd
57 lines (48 loc) · 848 Bytes
/
RVE.fbd
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
45
46
47
48
49
50
51
52
53
54
55
56
57
valu lx 1
valu ly 1
valu lz 1
valu le 0.1
valu rad 0.21
valu tol 0.00001
# create the cube
pnt p0 0 0 0
swep all new tra lx 0 0
swep all new tra 0 ly 0
swep all new tra 0 0 lz
# meshing
div all auto le
elty all he8i
mesh all
send all abq
# create fiber (cylinder along x in the center)
valu my / ly 2
valu mz / lz 2
seta nodes n all
enq nodes fiber rec _ my mz rad
comp fiber up
# define set for the matrix
seta matrix se all
setr matrix e fiber
# write set definitions
send all abq nam
# images
view elem
frame
plot e fiber r
hcpy png fiber
plot e matrix n
hcpy png matrix
# adds faces to fiber
comp fiber do
# removes these faces from matrix
setr matrix f fiber
# removes matrix elements from fiber (why are they there?)
setr fiber e matrix
rot x
rot r 30
rot u 20
frame
zoom 0.8
plot e fiber r
plus fb matrix n 20
hcpy png matrix-fiber