基于 Python 的物理引擎研究圆柱骰子的下落概率
刘鹏飞 1 ,刘鹏宇 2 ,姜永健 3* ,江瑞雪 2
1.辽宁石油化工大学 机械工程学院,辽宁 抚顺 113001;2.沈阳工业大学 理学院,辽宁 沈阳 110870;3.辽宁石油化工大学 理学院,辽宁 抚顺 113001
A Python-Based Physics Engine Studies the Probability of a Cylinder Dice Falling
LIU Pengfei 1 ,LIU Pengyu 2 ,JIANG Yongjian 3* ,JIANG Ruixue 2
摘要
在抛出圆柱形骰子后,其落下时能有相同概率立在上表面、下表面、侧面的其中之一,探究影响概率的因素以及得到相关的最优参数。首先,列出影响因素与概率关系的方程,利用 Python 的pybullet 物理引擎对圆柱形骰子仿真模拟出从抛出到落地的运动行径,并将仿真实验得到的几何参数、物理参数与概率的实时数据记录到 Excel 中,利用 Origin 对得到的仿真数据进行拟合,描绘出不同的几何和物理参数与概率的图像,发现骰子的几何量 α 1、α2 ,物理质量 m,恢复系数 e 会共同影响圆柱骰子的落地状态及落地面概率。
关键词:
圆柱形骰子
统计学概率
物理与几何特征
Python
Origin
Abstract:
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.
Key words:
cylindrical dice
statistical probability
physical and geometrical characteristics
Python
Origin
发布日期: 2023-08-25
ZTFLH:
O 313.4
O 211.1
O 212.1
引用本文:
刘鹏飞, 刘鹏宇, 姜永健, 江瑞雪 .
基于 Python 的物理引擎研究圆柱骰子的下落概率
[J]. 大学物理实验, 2023, 36(4): 88-93.
LIU Pengfei , LIU Pengyu, JIANG Yongjian, JIANG Ruixue.
A Python-Based Physics Engine Studies the Probability of a Cylinder Dice Falling
. Physical Experiment of College, 2023, 36(4): 88-93.
链接本文:
http://dawushiyan.jlict.edu.cn/CN/10.14139/j.cnki.cn22-1228.2023.04.018
或
http://dawushiyan.jlict.edu.cn/CN/Y2023/V36/I4/88
[1]
. [J]. Physical Experiment of College, 2020, 33(1): 0
.
[2]
. [J]. Physical Experiment of College, 2020, 33(1): 0
.
[3]
WU Ming, ZENG Hong, ZHANG Wenpeng, ZHANG Yuanwei, DAI Zhenbing.
Theoretical and Experimental Research of A zimuthal-Radial Pendulum
[J]. Physical Experiment of College, 2020, 33(1): 1
-6
.
[4]
LIU Weiwei, SUN Qing, LIU Chenglin. Research on Selection of Critical Magnetization Current for Measuring Charge-Mass Ratio of Electron by Magnetron Controlling
[J]. Physical Experiment of College, 2020, 33(1): 7
-9
.
[5]
DENG Li, LIU Yang, ZHANG Hangzhong, ZHOU Kewei, ZHAO guoru, WEI luanyi.
MATLAB simulation of Fourier transform of Gaussian beam and the spatial filtering effects basing on 4F optical imaging system
[J]. Physical Experiment of College, 2020, 33(1): 10
-16
.
[6]
MA Kun.
Experiment Study on the Measuring Young' s Modulus by Stretching
[J]. Physical Experiment of College, 2020, 33(1): 17
-20
.
[7]
FEI Xianxiang, CHEN Chunlei, WANG Wenhua, SHI Wenqing, HUANG Cunyou.
Design of Lens Group Focal Length Measurement System Based on Object-Image Parallax Comparison
[J]. Physical Experiment of College, 2020, 33(1): 21
-24
.
[8]
LI Chunjiang, LI Luyu, YANG Jinglei, LI Tingrong, XIANG Wenli.
A New Method for Simple and Rapid Measurement of Refractive Index
[J]. Physical Experiment of College, 2020, 33(1): 25
-28
.
[9]
WANG Cuiping, YAO Mengyu, YE Liu, LI Aixia, ZHANG Ziyun, DAI Peng.
Progress and Applications of Electron Spin Resonance in Biology
[J]. Physical Experiment of College, 2020, 33(1): 29
-33
.
[10]
CHEN Yingmo, SHEN Siyi, WANG Jie.
Study on the Characteristics of Silicon Photocells
[J]. Physical Experiment of College, 2020, 33(1): 34
-36
.
Viewed
Full text
Abstract
Cited
Shared
Discussed