摘要
工程中,绘制复杂荷载下梁的弯矩图需要大量的计算。传统的绘图方法费时费力,作图的精准性不高。本文将python开源可视化模块matplotlib引入到材料力学的课程教学中,让梁的受力与变形中所遇到的繁琐的数学运算和弯矩图的绘制过程由计算机完成,从而达到高效的专业学习效果。既能够让学生将更多的精力用于领悟力学原理和力学思想,又能够高效地提高教学效果和教学质量。
In engineering, drawing bending moment diagram of beam under complex load requires a lot of calculation.Traditional drawing method is time-consuming and laborious, and the accuracy of drawing is not high. In this paper, python open source visualization module matplotlib is introduced into the course teaching of material mechanics, so that the tedious mathematical calculation and drawing process of bending moment diagram encountered in the stress and deformation of beam are completed by computer, so as to achieve efficient professional learning effect. It can not only enable students to put more energy into understanding the principles and thoughts of mechanics, but also effectively improve the teaching effect and teaching quality.
引文
[1]孙训方.材料力学.4版[M].高等教育出版社,2002.
[2]易平,仲伟秋,黄丽华.美国大学计算机软件辅助力学课程教学模式探讨[J].高等建筑教育,2012,21(4):132-135.
[3]许杨剑,阮洪势,沈倩倩,王效贵,梁利华.材料力学教学中的编程实践--应力状态分析[J].力学与实践,2018,40(04):446-450.
[4]李建宇.在材料力学课程中引入计算机编程的教学内容[A].中国力学学会.力学与工程应用(第十六卷)[C].中国力学学会:河南省力学学会,2016:4.
[5]Rossum G V,Drake F L.The Python Language Reference Manual[M].Network Theory Ltd.2011.
[6]Nelli F.Python data analytics:data analysis and science using Pandas,matplotlib and the Python programming language[J].Plant&Cell Physiology,2008,49(10):1407-1416.
[7]李保源.Matplotlib在计算结果可视化中的应用[J].现代计算机(专业版),2007(1):81-84.