基于Python的物理引擎研究圆柱骰子的下落概率  被引量:3

A Python-Based Physics Engine Studies the Probability of a Cylinder Dice Falling

在线阅读下载全文

作  者:刘鹏飞 刘鹏宇 姜永健 江瑞雪 LIU Pengfei;LIU Pengyu;JIANG Yongjian;JIANG Ruixue(Mechanical Engineering College,Liaoning Petrochemical University,Fushun 113001,China;School of Science,Shenyang University of Technology,Fushun 113001,China;School of Science,Liaoning Petrochemical University,Fushun 113001,China)

机构地区:[1]辽宁石油化工大学机械工程学院,辽宁抚顺113001 [2]沈阳工业大学理学院,辽宁沈阳110870 [3]辽宁石油化工大学理学院,辽宁抚顺113001

出  处:《大学物理实验》2023年第4期88-93,共6页Physical Experiment of College

基  金:国家自然科学基金青年项目(21808096);辽宁省科学技术厅项目(20170520259);辽宁省教育厅项目(L2017LQN003,L2017LQN036)。

摘  要:在抛出圆柱形骰子后,其落下时能有相同概率立在上表面、下表面、侧面的其中之一,探究影响概率的因素以及得到相关的最优参数。首先,列出影响因素与概率关系的方程,利用Python的pybullet物理引擎对圆柱形骰子仿真模拟出从抛出到落地的运动行径,并将仿真实验得到的几何参数、物理参数与概率的实时数据记录到Excel中,利用Origin对得到的仿真数据进行拟合,描绘出不同的几何和物理参数与概率的图像,发现骰子的几何量α_(1)、α_(2),物理质量m,恢复系数e会共同影响圆柱骰子的落地状态及落地面概率。After throwing the cylindrical dice,it can have the same probability to stand on one of the upper surface,lower surface and side when it falls,explore the factors affecting the probability and obtain the relevant optimal parameters.Firstly,the equation of the relationship between influencing factors and probability is listed.The pybullet physics engine of Python is used to simulate the motion behavior of the cylindrical dice from throwing to landing.The real-time data of geometric parameters,physical parameters and probability obtained from the simulation experiment are recorded in Excel.The simulation data are fitted by Origin,and the images of different geometric and physical parameters and probabilities are depicted.It is found that the geometric amount of the diceα_(1)、α_(2),the physical mass m,and the recovery coefficient e will affect the landing state and landing probability of the cylindrical dice.

关 键 词:圆柱形骰子 统计学概率 物理与几何特征 PYTHON ORIGIN 

分 类 号:O313.4[理学—一般力学与力学基础] O211.1[理学—力学] O212.1

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象