npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sp-gas

v1.0.4

Published

Calc gas range

Downloads

16

Readme

sp-gas

Calc gas range

Install

  npm i sp-gas //or yarn add sp-gas

CDN

  <script src="https://unpkg.com/sp-gas/dist/index.min.js"></script>
  <script>
    let { calcGasRadius } = __Gas
  </script>

Usage

  let { calcGasRadius } = require("sp-gas")
  let speed = 0 // 泄漏风速
  let radius = 0 // 泄漏开口半径
  let p1 = 3.17 //临界压力
  let p2 = 1393 //两相混合物的平均密度
  let cp = 0.957 //两相混合物比定压热容
  let t = 24.85 //两相混合物温度
  let t0 = -34.15 //液体沸点温度
  let h = 280 //液体汽化热
  let c0 = 890 // 死亡浓度
  let c1 = 300 // 重伤浓度
  let c2 = 90 // 轻伤浓度
  let c3 = 9 // 反应浓度
  let r0 = calcGasRadius(speed, c0, radius,p1, p2, cp, t, t0, h) // 致死半径
  let r1 = calcGasRadius(speed, c1, radius,p1, p2, cp, t, t0, h) // 重伤半径
  let r2 = calcGasRadius(speed, c2, radius,p1, p2, cp, t, t0, h) // 轻伤半径
  let r3 = calcGasRadius(speed, c3, radius,p1, p2, cp, t, t0, h) // 警戒半径

常见危险气体属性

|气体名|反应浓度|轻伤浓度|重伤浓度|死亡浓度|反应质量分数|重伤质量分数|致死质量分数|标准大气压密度|液化密度|两相混合物比定压热容|两相混合物摄氏度|液体沸点摄氏度|液体汽化热 | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | |氯气| 9mg/m3|90mg/m3|300mg/m3|890mg/m3|1.4e-7|3.5e-7|9e-4| 3.17kg/m3 | 1393kg/m3 | 0.957 | 24.85 | -34.15 | 280kj/kg | |氨气| 3mg/m3|180mg/m3|550mg/m3|5000mg/m3|1.4e-7|3.5e-7|9e-4| 0.771kg/m3 | 880kg/m3 | 2.05 | 24.85 | -33.33 | 1336.97kj/kg | |二氧化硫| 14mg/m3|56mg/m3|280mg/m3|1260mg/m3|1.4e-7|3.5e-7|9e-4| 2.551kg/m3 | 1030kg/m3 | 0.61 | 24.85 | -10 | 297.01kj/kg |