Jerkwin分享 http://blog.sciencenet.cn/u/Jerkwin

博文

单位换算器

已有 4232 次阅读 2016-11-8 09:40 |系统分类:科研笔记

  • 2016-11-07 14:50:35

以前曾用VB写过一个计算器和单位换算器, 使用还算方便, 但并没有发布, 现在将其改写为网页版, 方便发布和使用.

网址如下: http://jerkwin.github.io/Prog/calc.html

几点说明:
  • 所有换算系数的值都直接采用NIST最新发布的CODATA-2014, 如果NIST更新了数值, 只要替换源代码中的相应部分即可.

  • 利用光的特性, 可以在长度, 时间, 质量, 能量几种单位统一起来, 互相转换, 实现也不复杂, 但这样做的话, 使得表格太大了, 所以我就分开了, 也方便使用.

  • 对理想气体, 可以根据温度和压力计算相应的浓度, pV=nRT,p=nRT/V=cRTpV=nRT,p=nRT/V=cRT

  • 对于纯物质, 密度 <span class="MathJax" id="MathJax-Element-2-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML">&#x03C1;" role="presentation" style="margin:0px;padding:0px;display:inline;line-height:normal;word-spacing:normal;word-wrap:normal;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;position:relative;">ρρ, 摩尔浓度 <span class="MathJax" id="MathJax-Element-3-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML">cm" role="presentation" style="margin:0px;padding:0px;display:inline;line-height:normal;word-spacing:normal;word-wrap:normal;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;position:relative;">cmcm, 摩尔质量 <span class="MathJax" id="MathJax-Element-4-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML">M" role="presentation" style="margin:0px;padding:0px;display:inline;line-height:normal;word-spacing:normal;word-wrap:normal;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;position:relative;">MM 之间存在关系, <span class="MathJax" id="MathJax-Element-5-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML">&#x03C1;=Mcm" role="presentation" style="margin:0px;padding:0px;display:inline;line-height:normal;word-spacing:normal;word-wrap:normal;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;position:relative;">ρ=Mcmρ=Mcm

  • 范德华参数计算部分, 对应公式如下

    <span class="MathJax" id="MathJax-Element-6-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true">U=4&#x03B5;[(<mrow class="MJX-TeXAtom-ORD">&#x03C3;r)<mrow class="MJX-TeXAtom-ORD">12&#x2212;(<mrow class="MJX-TeXAtom-ORD">&#x03C3;r)<mrow class="MJX-TeXAtom-ORD">6]<mtd />=4&#x03B5;[(<mrow class="MJX-TeXAtom-ORD">Rer)<mrow class="MJX-TeXAtom-ORD">12&#x2212;2(<mrow class="MJX-TeXAtom-ORD">Rer)<mrow class="MJX-TeXAtom-ORD">6]<mtd />=<mrow class="MJX-TeXAtom-ORD">C<mrow class="MJX-TeXAtom-ORD">12r<mrow class="MJX-TeXAtom-ORD">12&#x2212;<mrow class="MJX-TeXAtom-ORD">C<mrow class="MJX-TeXAtom-ORD">6r6" role="presentation" style="margin:0px;padding:0px;display:inline;line-height:normal;word-spacing:normal;word-wrap:normal;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;position:relative;">U=4ε[(σr)12(σr)6]=4ε[(Rer)122(Rer)6]=C12r12C6r6U=4ε[(σr)12−(σr)6]=4ε[(Rer)12−2(Rer)6]=C12r12−C6r6
  • 如果要离线使用的话, 将网页保存下来就可以了.


◆本文地址: http://jerkwin.github.io/2016/11/07/单位换算器/, 转载请注明◆


https://wap.sciencenet.cn/blog-548663-1013445.html

上一篇:远程服务器映射软件ExpanDrive中文版
下一篇:GROMACS术语:爆破(Blowing_Up)
收藏 IP: 130.184.197.*| 热度|

2 吴炬 yangb919

该博文允许注册用户评论 请点击登录 评论 (2 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-21 09:31

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部