从横截面单位 mm² 计算 AWG,反之亦然
Calculate AWG from Cross section unit mm² and vice versa
我想将 American unit AWG 中的值转换为以 mm² 为单位的欧洲公制系统,反之亦然。
例如我想将 11 AWG
转换为 4.17 mm²
。
我没有找到实现的代码,所以我在这里添加了一个解决方案。
在等待更好的解决方案时,我使用了这段代码:
double Awg2CrossSection(int awg)
{
var diameter = 0.127 * Math.Pow(92, (36.0 - awg) / 39.0);
return Math.PI / 4 * Math.Pow(diameter, 2);
}
int CrossSection2Awg(double crossSection)
{
var diameter = 2 * Math.Sqrt(crossSection / Math.PI);
var result = -((Math.Log(diameter / 0.127)) / (Math.Log(92))) * 39 + 36;
return (int) result;
}
公式为:
AWG 转毫米
mm 转 AWG
我想将 American unit AWG 中的值转换为以 mm² 为单位的欧洲公制系统,反之亦然。
例如我想将 11 AWG
转换为 4.17 mm²
。
我没有找到实现的代码,所以我在这里添加了一个解决方案。
在等待更好的解决方案时,我使用了这段代码:
double Awg2CrossSection(int awg)
{
var diameter = 0.127 * Math.Pow(92, (36.0 - awg) / 39.0);
return Math.PI / 4 * Math.Pow(diameter, 2);
}
int CrossSection2Awg(double crossSection)
{
var diameter = 2 * Math.Sqrt(crossSection / Math.PI);
var result = -((Math.Log(diameter / 0.127)) / (Math.Log(92))) * 39 + 36;
return (int) result;
}
公式为: