forked from Modelizacion-de-Materiales/finel3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraficos.py
41 lines (37 loc) · 2.19 KB
/
graficos.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
import matplotlib.pyplot as plt
import numpy as np
ax = plt.gca()
'''
#viga rectnagular
b1 = [853.1564099, 1128.94511716,5480.73606478,6714.59988079, 13045.0895944, 13684.625051]
b2 = [705.52485718, 953.31281039,4454.47730702,5726.20478401,10776.53418639,12008.90462636]
b3 = [529.81348622,876.57559458,3262.36098102,5248.14115429,8063.22103159,9007.75825072]
b4 = [473.339022,859.20238872,2921.90891163,5148.35407281,7100.48833535,8036.17162434]
b5 = [452.0456696,847.4990908,2806.56505089,5083.04864252,6711.88693722,7713.91174063]
B = [[853.1564099, 1128.94511716,5480.73606478,6714.59988079, 13045.0895944, 13684.625051],
[705.52485718, 953.31281039,4454.47730702,5726.20478401,10776.53418639,12008.90462636],
[529.81348622,876.57559458,3262.36098102,5248.14115429,8063.22103159,9007.75825072],
[473.339022,859.20238872,2921.90891163,5148.35407281,7100.48833535,8036.17162434],
[452.0456696,847.4990908,2806.56505089,5083.04864252,6711.88693722,7713.91174063]]
nodos = [88, 280, 1098, 2243, 4711]
'''
#diapason
C = [[209.94636583,216.06880548, 1323.14319565, 1525.0486701, 2482.12573295,2738.3081129],
[228.33311,233.78084808, 855.238275,1019.5943572,2056.13581493,2403.73179619],
[225.77285965,233.59341782,703.72107094,987.6745132,1839.15785117,2390.48234995],
[210.50882038,218.62570709,624.38208322,927.48574224,1627.58467162,2257.13240129],
[204.68764093, 213.82426251,611.61051304,907.30273274,1598.90129264,2217.00290927],
[200.23507283,209.55534028,581.96086376,885.80318246,1521.53360224,2183.64617423]]
c1 = [209.94636583,216.06880548, 1323.14319565, 1525.0486701, 2482.12573295,2738.3081129]
c2=[228.33311,233.78084808, 855.238275,1019.5943572,2056.13581493,2403.73179619]
c3=[225.77285965,233.59341782,703.72107094,987.6745132,1839.15785117,2390.48234995]
c4=[210.50882038,218.62570709,624.38208322,927.48574224,1627.58467162,2257.13240129]
c5=[204.68764093, 213.82426251,611.61051304,907.30273274,1598.90129264,2217.00290927]
c6=[200.23507283,209.55534028,581.96086376,885.80318246,1521.53360224,2183.64617423]
nodos = [287, 1173, 1728, 3097, 3617, 5003]
plt.plot(nodos, [c1[2],c2[2],c3[2],c4[2],c5[2],c6[2]])
plt.xlabel('Nodos')
plt.ylabel('Frecuencias (Hz)')
#ax.set_facecolor('xkcd:sky blue')
plt.grid()
plt.show()