-
Notifications
You must be signed in to change notification settings - Fork 0
/
cortevigas.py
53 lines (32 loc) · 1006 Bytes
/
cortevigas.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
45
46
47
48
49
50
51
52
53
def corte(b,h,rec,fc,fy,vu,nu,phi):
b = b*10
h = h*10
rec = rec*10
vu = vu*9800
nu = nu*9800
d = h - rec
vc = 0
#~ Determinacion de Vc:
if nu <= 0.01:
vc = (fc**0.5)/6*b*d
elif nu >= 0:
vc = (1+nu/(b*h))*(fc**0.5)/6*b*d
elif nu < 0:
vc = (1 + 0.3*nu/(b*h))*(fc**0.5)/6*b*d
#~ Determinacion de Vs
av_s = (vu/phi-vc)/(fy*d)
if av_s*fy > 2/3*(fc**0.5)*b:
return("cambiar seccion")
vs = av_s*fy*d
#~ limites para el espaciamiento
smax = 0
if vs > ((fc**0.5)/3)*b*d:
smax = min(d/40,30)
else:
smax = min(d/20,60)
#~ armadura minima al corte
av_min = 0
if vu > 0.5*phi*vc:
av_min = max(0.0625*(fc**0.5)*b/fy/100,0.35*b/fy/100)
av = max(av_s*10,av_min)
return round(av,1), round(smax,1)