forked from wjky2022/FLAC3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFLAC3D模拟单轴压缩.txt
47 lines (46 loc) · 1.1 KB
/
FLAC3D模拟单轴压缩.txt
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
; Uniaxial test of strain-softening material
title
Uniaxial test of strain-softening material
gen zone cylind p0 0 0 0 p1 1 0 0 p2 0 4 0 p3 0 0 1 size 12 30 12
gen zone reflect norm 1,0,0
gen zone reflect norm 0,0,1
model mech strainsoft
pro den 2500 bulk 2e8 she 1e8 co 2e6 fric 45 ten 1e6 dil 10
pro ftab 1 ctab 2 dtab 3
table 1 0 45 .05 42 .1 40 1 40
table 2 0 2e6 .05 1e6 .1 5e5 1 5e5
table 3 0 10 .05 3 .1 0
fix x y z range y -.1 .1
fix x y z range y 3.9 4.1
ini yvel 2.5e-5 range y -.1 .1
ini yvel -2.5e-5 range y 3.9 4.1
def ax_str
local str = 0
local pnt = gp_head
loop while pnt # null
if gp_ypos(pnt) < 0.1 then
str = str + gp_yfunbal(pnt)
endif
pnt = gp_next(pnt)
endloop
ax_str = str / pi ; cylinder radius = 1
end
hist n 1
hist add gp ydisp 0,0,0
hist add fish @ax_str
hist add gp xdisp 1,1,0
step 5000
; Plot of plastic region as zones with strain > 0.2
def ShowPlasticZones
local zp = zone_head
loop while zp # null
if z_prop(zp,¡¯es_plastic¡¯) > 0.2
z_group(zp) = ¡¯yield¡¯
else
z_group(zp) = ¡¯other¡¯
endif
zp = z_next(zp)
endloop
end
@ShowPlasticZones
return