Ingeniería Civil en Obras Civiles PVB | Blog personal de ...



# GRANULOMETRIAfrom numpy import *# Datos(gramos)Mm = 2000 # Masa de la muestraT3I4 = 0 # Tamiz 3/4T3I8 = 158 # Tamiz 3/8N4 = 308 # Tamiz n4N10 = 608 # Tamiz n10N40 = 652 # Tamiz n40N100 = 224 # Tamiz n100N200 = 42 # Tamiz n200Pan = 8 # Bandeja# PROGRAMAprint " "print " "print " GRANULOMETRIA"print " ============="print " "print " "print " DATOS "print " ----------------------------------------- "print " Masa de la muestra : ", Mm, " [gramos]"print " "print " Tamiz 3/4 : ", T3I4, " [gramos]"print " Tamiz 3/8 : ", T3I8, " [gramos]"print " Tamiz n4 : ", N4, " [gramos]"print " Tamiz n10 : ", N10, " [gramos]"print " Tamiz n40 : ", N40, " [gramos]"print " Tamiz n100 : ", N100, " [gramos]"print " Tamiz n200 : ", N200, " [gramos]"print " Pan : ", Pan, " [gramos]"print " "print " "print " "print " Apertura Masa Porcentaje Porcentaje Porcentaje "print " Tamiz Tamiz retenida retenido acomulado que pasa"print "-----------------------------------------------------------------------"A1 = 19 # [mm]T1 = '3/4'MR1 = (T3I4 * 1.0 / Mm) * 100PR1 = MR1PA1 = 100 - PR1A2 = 9.5 # [mm]T2 = '3/8'MR2 = (T3I8 * 1.0 / Mm) * 100PR2 = MR1 + MR2PA2 = 100 - PR2A3 = 4.75 # [mm]T3 = 'n4'MR3 = (N4 * 1.0 / Mm) * 100PR3 = PR2 + MR3PA3 = 100 - PR3A4 = 2 # [mm]T4 = 'n10'MR4 = (N10 * 1.0 / Mm) * 100PR4 = PR3 + MR4PA4 = 100 - PR4A5 = 0.425 # [mm]T5 = 'n40'MR5 = (N40 * 1.0 / Mm) * 100PR5 = PR4 + MR5PA5 = 100 - PR5A6 = 0.150 # [mm]T6 = 'n100'MR6 = (N100 * 1.0 / Mm) * 100PR6 = PR5 + MR6PA6 = 100 - PR6A7 = 0.075 # [mm]T7 = 'n200'MR7 = (N200 * 1.0 / Mm) * 100PR7 = PR6 + MR7PA7 = 100 - PR7A8 = 0T8 = 'Pan'MR8 = (Pan * 1.0 / Mm) * 100PR8 = PR7 + MR8PA8 = (100 - PR8) * (-1)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T1, A1, T3I4, MR1, PR1, PA1)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T2, A2, T3I8, MR2, PR2, PA2)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T3, A3, N4, MR3, PR3, PA3)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T4, A4, N10, MR4, PR4, PA4)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T5, A5, N40, MR5, PR5, PA5)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T6, A6, N100, MR6, PR6, PA6)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T7, A7, N200, MR7, PR7, PA7)print ' %4s %11.3f %8d %12.1f %14.1f %12.1f' % (T8, A8, Pan, MR8, PR8, PA8)print " "print " "# GRAFICOfrom matplotlib import pyplotfrom matplotlib import *col1 = [PA8, PA7, PA6, PA5, PA4, PA3, PA2, PA1]col2 = [A8, A7, A6, A5, A4, A3, A2, A1]pyplot.plot(col2, col1, color='blue', lw=2)pyplot.xscale('log') # escala logaritmicapyplot.gca().invert_xaxis() # sentencia que invierte el eje xpyplot.grid(True, which="minor", linestyle='-') # grilla log en eje xpyplot.grid(True, linestyle='-') # grilla normal en eje ypyplot.show() ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches