常见速度术语,速度单位有马赫,节,码,迈,千米/时(公里/时),米/秒.
千米/时(公里/时:km/h),米/秒:(m/s)
1m/s=3.6km/h
最常用的速度单位,汽车中多用码来代表千米每小时,比如72码就是72千米每小时,也就是20米每秒
马赫(Mach)
多用于战机,导弹,火箭的速度
马赫(Mach)是表示速度相对于声速的倍数的单位。1马赫等于声速的速度,在标准大气压和温度为15摄氏度时,声速大约为1225.1千米每小时,或者约为340.3米每秒。
一马赫即一倍音速:马赫数小于1者为亚音速,马赫数大于5左右为超高音速;马赫数是飞行的速度和当时飞行的音速之比值,大于1表示比音速快,同理,小于1是比音速慢。
节(knot)
多用于舰船,民航速度
节(knot)是航海和航空中常用的速度单位,1节等于1海里每小时。1海里等于1852米,因此1节相当于1852米每小时,或者大约0.5144米每秒。
码(yard)
多用于汽车速度
码,就是千米每小时 或者公里每小时. 时速60码其意思就是60公里每小时,这也是最常用的时速单位
迈(mph)
多用于汽车速度
表示英里每小时(mph,全称miles-per-hour,俗称“迈”)。是一速度计量单位,表示英里/每小时。1迈=1.609344公里/小时。
为了方便运算,这里,我们全部以千米每时(km/h)作为统一单位,
规定声速为340m/s,海里为1852m/h,迈为1609m/h
新建窗体应用程序SpeedUnitDemo,将默认的Form1重命名为FormSpeedUnit
窗体FormSpeedUnit设计如下:
窗体设计器代码如下:
文件FormSpeedUnit.Designer.cs
namespace SpeedUnitDemo
{
partial class FormSpeedUnit
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.dgvSpeed = new System.Windows.Forms.DataGridView();
this.dgvcSpare = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgvcKmh = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dgvcMs &#