项目作者: DataKinds

项目描述 :
A terminal application for analyzing reactions and chemical formulas.
高级语言: Ruby
项目地址: git://github.com/DataKinds/stoichiometry-toolkit.git
创建时间: 2018-01-31T21:54:27Z
项目社区:https://github.com/DataKinds/stoichiometry-toolkit

开源协议:

下载


Stoichiometry Toolkit

An interactive toolkit to analyze chemical formulas and perform stoichiometric conversions.

Usage

ruby main.rb

Requires: a relatively new version of Ruby (>2.0.0)

Example session

  1. ┌────────────────────────────────────────────────────┐
  2. │░█▀▀░▀█▀░█▀█░▀█▀░█▀▀░█░█░▀█▀░█▀█░█▄█░█▀▀░▀█▀░█▀▄░█░█│
  3. │░▀▀█░░█░░█░█░░█░░█░░░█▀█░░█░░█░█░█░█░█▀▀░░█░░█▀▄░░█░│
  4. │░▀▀▀░░▀░░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░░▀░░▀░▀░░▀░│
  5. └────────────────────────────────────────────────────┘
  6. Hello, and welcome to the stoichiometry toolbox. Type `r` for a reaction or `f` for a single chemical formula, then strike `Return`.
  7. r
  8. Input the reactant(s), separated by a `+`. Note: do not add the coefficients. They will be automatically generated.
  9. MgCl2 + Al2(SO3)3
  10. Input the product(s), separated by a `+`.
  11. MgSO3 + AlCl3
  12. Original reaction:
  13. MgCl2 + Al2(SO3)3 MgSO3 + AlCl3
  14. Balanced reaction:
  15. 3MgCl2 + Al2(SO3)3 3MgSO3 + 2AlCl3
  16. What would you like to do with this reaction?
  17. Perform a stoichiometric (c)onversion
  18. Find the (l)imiting reactant
  19. (Q)uit to the main page
  20. c
  21. What unit are you asking for?
  22. (l): liters
  23. (mc): molecules
  24. (g): grams
  25. mc
  26. Of?
  27. Reactants:
  28. (0): MgCl2
  29. (1): Al2(SO3)3
  30. Products:
  31. (2): MgSO3
  32. (3): AlCl3
  33. 0
  34. What quantity are you given?
  35. 4.78e24
  36. What unit are you given?
  37. (l): liters
  38. (mc): molecules
  39. (g): grams
  40. mc
  41. Of?
  42. Reactants:
  43. (0): MgCl2
  44. (1): Al2(SO3)3
  45. Products:
  46. (2): MgSO3
  47. (3): AlCl3
  48. 1
  49. 4.78e+24 mc Al2(SO3)3 | 1 mol | 3 mol MgCl2 | 6.022e+23 mc
  50. --------------------------------------------------------------------- = 1.434e+25 mc MgCl2
  51. | 6.022e+23 mc | 1 mol Al2(SO3)3 | 1 mol
  52. What would you like to do with this reaction?
  53. Perform a stoichiometric (c)onversion
  54. Find the (l)imiting reactant
  55. (Q)uit to the main page
  56. q

About

Please submit a pull request or an issue if something doesn’t work right. I’m a one man team, so I’m not going to be able to get to every issue ASAP. Expect flaws, etc, etc. Message me on https://twitter.com/aearnus or on Discord: @Aearnus#7521 for something urgent.

Shoot me a message if you’d be willing to donate for this. I’ll set up a donation box.

License

GNU GPLv3

Provided as-is, with no guarantee for updates and support (unless you pay me :) ).