{"id":19013347,"url":"https://github.com/z41z/sp-gas","last_synced_at":"2025-06-10T10:36:41.555Z","repository":{"id":57366596,"uuid":"162695624","full_name":"z41z/sp-gas","owner":"z41z","description":"Calc gas range","archived":false,"fork":false,"pushed_at":"2019-07-15T06:44:10.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T22:56:55.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z41z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-21T09:39:30.000Z","updated_at":"2019-07-15T06:44:11.000Z","dependencies_parsed_at":"2022-08-23T20:10:47.641Z","dependency_job_id":null,"html_url":"https://github.com/z41z/sp-gas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fsp-gas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fsp-gas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fsp-gas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fsp-gas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z41z","download_url":"https://codeload.github.com/z41z/sp-gas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240051358,"owners_count":19740335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T19:23:35.159Z","updated_at":"2025-02-21T16:37:42.814Z","avatar_url":"https://github.com/z41z.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sp-gas\n\nCalc gas range\n\n## Install\n\n``` node\n  npm i sp-gas //or yarn add sp-gas\n```\n\n## CDN\n\n``` js\n  \u003cscript src=\"https://unpkg.com/sp-gas/dist/index.min.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    let { calcGasRadius } = __Gas\n  \u003c/script\u003e\n```\n\n### Usage\n``` js\n  let { calcGasRadius } = require(\"sp-gas\")\n  let speed = 0 // 泄漏风速\n  let radius = 0 // 泄漏开口半径\n  let p1 = 3.17 //临界压力\n  let p2 = 1393 //两相混合物的平均密度\n  let cp = 0.957 //两相混合物比定压热容\n  let t = 24.85 //两相混合物温度\n  let t0 = -34.15 //液体沸点温度\n  let h = 280 //液体汽化热\n  let c0 = 890 // 死亡浓度\n  let c1 = 300 // 重伤浓度\n  let c2 = 90 // 轻伤浓度\n  let c3 = 9 // 反应浓度\n  let r0 = calcGasRadius(speed, c0, radius,p1, p2, cp, t, t0, h) // 致死半径\n  let r1 = calcGasRadius(speed, c1, radius,p1, p2, cp, t, t0, h) // 重伤半径\n  let r2 = calcGasRadius(speed, c2, radius,p1, p2, cp, t, t0, h) // 轻伤半径\n  let r3 = calcGasRadius(speed, c3, radius,p1, p2, cp, t, t0, h) // 警戒半径\n```\n## 常见危险气体属性\n\n|气体名|反应浓度|轻伤浓度|重伤浓度|死亡浓度|反应质量分数|重伤质量分数|致死质量分数|标准大气压密度|液化密度|两相混合物比定压热容|两相混合物摄氏度|液体沸点摄氏度|液体汽化热\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|氯气| 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 |\n|氨气| 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 |\n|二氧化硫| 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 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz41z%2Fsp-gas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz41z%2Fsp-gas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz41z%2Fsp-gas/lists"}