chemistry_paradise 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chemistry_paradise might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +522 -0
- data/bin/chemistry_paradise +7 -0
- data/bin/wetter +7 -0
- data/chemistry_paradise.gemspec +46 -0
- data/doc/README.gen +518 -0
- data/doc/bugs/BUGS.md +16 -0
- data/doc/formulas/biochemical_calculations.md +5 -0
- data/doc/todo/todo_for_the_chemistry_paradise_project.md +33 -0
- data/doc/todo/todo_for_the_wetter_project.md +7 -0
- data/lib/chemistry_paradise/base/base.rb +215 -0
- data/lib/chemistry_paradise/base/colours.rb +93 -0
- data/lib/chemistry_paradise/commandline/help.rb +40 -0
- data/lib/chemistry_paradise/commandline/menu.rb +88 -0
- data/lib/chemistry_paradise/commandline/parse_commandline.rb +94 -0
- data/lib/chemistry_paradise/constants/constants.rb +77 -0
- data/lib/chemistry_paradise/constants/file_constants.rb +33 -0
- data/lib/chemistry_paradise/constants/german_names_of_elements_to_element_symbol.rb +157 -0
- data/lib/chemistry_paradise/converters/celsius_to_fahrenheit.rb +143 -0
- data/lib/chemistry_paradise/converters/celsius_to_kelvin.rb +125 -0
- data/lib/chemistry_paradise/converters/fahrenheit_to_celsius.rb +132 -0
- data/lib/chemistry_paradise/converters/shared.rb +21 -0
- data/lib/chemistry_paradise/gui/gtk3/calculate_molecular_weight/calculate_molecular_weight.rb +34 -0
- data/lib/chemistry_paradise/gui/gtk3/show_periodic_table/show_periodic_table.rb +34 -0
- data/lib/chemistry_paradise/gui/gtk3/temperature_converter/temperature_converter.rb +112 -0
- data/lib/chemistry_paradise/gui/gtk3/wetter/wetter.rb +119 -0
- data/lib/chemistry_paradise/gui/libui/temperature_converter/temperature_converter.rb +100 -0
- data/lib/chemistry_paradise/gui/libui/wetter/wetter.rb +47 -0
- data/lib/chemistry_paradise/gui/shared_code/calculate_molecular_weight/calculate_molecular_weight_module.rb +171 -0
- data/lib/chemistry_paradise/gui/shared_code/show_periodic_table/show_periodic_table_module.rb +318 -0
- data/lib/chemistry_paradise/gui/shared_code/temperature_converter/temperature_converter_module.rb +192 -0
- data/lib/chemistry_paradise/gui/shared_code/wetter/wetter_module.rb +349 -0
- data/lib/chemistry_paradise/gui/swing/TemperatureConverter$1.class +0 -0
- data/lib/chemistry_paradise/gui/swing/TemperatureConverter.class +0 -0
- data/lib/chemistry_paradise/gui/swing/TemperatureConverter.java +133 -0
- data/lib/chemistry_paradise/gui/unified_widgets/wetter/wetter.rb +62 -0
- data/lib/chemistry_paradise/images/show_periodic_table.png +0 -0
- data/lib/chemistry_paradise/images/vienna_map.png +0 -0
- data/lib/chemistry_paradise/interactive_chemistry_shell.rb +246 -0
- data/lib/chemistry_paradise/project/project.rb +24 -0
- data/lib/chemistry_paradise/requires/common_external_requires.rb +17 -0
- data/lib/chemistry_paradise/requires/require_the_project.rb +21 -0
- data/lib/chemistry_paradise/requires/require_the_project_including_the_graphical_user_interface.rb +7 -0
- data/lib/chemistry_paradise/requires/require_the_project_including_the_web_interface.rb +4 -0
- data/lib/chemistry_paradise/shared.rb +130 -0
- data/lib/chemistry_paradise/show_electron_configuration.rb +250 -0
- data/lib/chemistry_paradise/show_element.rb +145 -0
- data/lib/chemistry_paradise/sinatra/sinatra.rb +131 -0
- data/lib/chemistry_paradise/sinatra/wetter/app.rb +68 -0
- data/lib/chemistry_paradise/sinatra/wetter/start_sinatra_interface.rb +31 -0
- data/lib/chemistry_paradise/split_molecule_names.rb +228 -0
- data/lib/chemistry_paradise/toplevel_methods/atomgewichte.rb +31 -0
- data/lib/chemistry_paradise/toplevel_methods/convert_parens.rb +64 -0
- data/lib/chemistry_paradise/toplevel_methods/display_where_the_molmasses_are_kept.rb +24 -0
- data/lib/chemistry_paradise/toplevel_methods/e.rb +16 -0
- data/lib/chemistry_paradise/toplevel_methods/kelvin.rb +34 -0
- data/lib/chemistry_paradise/toplevel_methods/language.rb +50 -0
- data/lib/chemistry_paradise/toplevel_methods/misc.rb +147 -0
- data/lib/chemistry_paradise/toplevel_methods/periodic_table.rb +16 -0
- data/lib/chemistry_paradise/toplevel_methods/remove_this_molecule_from.rb +63 -0
- data/lib/chemistry_paradise/toplevel_methods/roebe.rb +16 -0
- data/lib/chemistry_paradise/toplevel_methods/show_electron_negativity_chart.rb +26 -0
- data/lib/chemistry_paradise/utility_scripts/calculate_atomic_mass.rb +559 -0
- data/lib/chemistry_paradise/utility_scripts/combustion_analysis.rb +207 -0
- data/lib/chemistry_paradise/utility_scripts/electron_negativity_chart.rb +78 -0
- data/lib/chemistry_paradise/utility_scripts/equalize_chemical_formula.rb +84 -0
- data/lib/chemistry_paradise/utility_scripts/equation_solver.rb +130 -0
- data/lib/chemistry_paradise/utility_scripts/orbitals.rb +70 -0
- data/lib/chemistry_paradise/utility_scripts/show_electron_negativity_of_this_element.rb +103 -0
- data/lib/chemistry_paradise/verbose_chemical_calculation.rb +21 -0
- data/lib/chemistry_paradise/version/version.rb +19 -0
- data/lib/chemistry_paradise/wetter/wetter.rb +539 -0
- data/lib/chemistry_paradise/www/wetter/embeddable_interface.rb +78 -0
- data/lib/chemistry_paradise/www/wetter/wetter.cgi +28 -0
- data/lib/chemistry_paradise/yaml/atomgewichte.yml +113 -0
- data/lib/chemistry_paradise/yaml/colours_for_the_elements.yml +13 -0
- data/lib/chemistry_paradise/yaml/dichte.yml +21 -0
- data/lib/chemistry_paradise/yaml/electron_negativity_chart.yml +111 -0
- data/lib/chemistry_paradise/yaml/molecular_formula_of_different_molecules.yml +13 -0
- data/lib/chemistry_paradise/yaml/periodic_table_of_the_elements.yml +125 -0
- data/lib/chemistry_paradise.rb +1 -0
- data/test/testing_chemistry_paradise.rb +49 -0
- metadata +173 -0
@@ -0,0 +1,113 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === atomgewichte.yml
|
3
|
+
#
|
4
|
+
# Die Atommasse (frueher Atomgewicht) ist die Masse eines Atoms. In dieser
|
5
|
+
# Yaml Datei hier beziehen wir uns auf 12 C.
|
6
|
+
#
|
7
|
+
# Folgende URL wurde herangezogen um die Information zu speichern:
|
8
|
+
#
|
9
|
+
# http://old.iupac.org/reports/periodic_table/
|
10
|
+
#
|
11
|
+
# Genauere Information erhalten wir aber von hier:
|
12
|
+
#
|
13
|
+
# https://www.ciaaw.org/
|
14
|
+
#
|
15
|
+
# =========================================================================== #
|
16
|
+
# x = load_yaml(ChemistryParadise.file_atomgewichte)
|
17
|
+
# =========================================================================== #
|
18
|
+
|
19
|
+
# =========================================================================== #
|
20
|
+
# 1. Reihe / 1. row:
|
21
|
+
# =========================================================================== #
|
22
|
+
H: 1.0079 # In normalen Kalkulationen ist dies 1.008.
|
23
|
+
He: 4.0026
|
24
|
+
|
25
|
+
# =========================================================================== #
|
26
|
+
# 2. Reihe / 2. row:
|
27
|
+
# =========================================================================== #
|
28
|
+
Li: 6.941
|
29
|
+
Be: 9.0122
|
30
|
+
B: 10.811
|
31
|
+
C: 12.011
|
32
|
+
N: 14.007
|
33
|
+
O: 15.999
|
34
|
+
F: 18.998
|
35
|
+
Ne: 20.180
|
36
|
+
|
37
|
+
# =========================================================================== #
|
38
|
+
# 3. Reihe / 3. row:
|
39
|
+
# =========================================================================== #
|
40
|
+
Na: 22.990
|
41
|
+
Mg: 24.305
|
42
|
+
Al: 26.982
|
43
|
+
Si: 28.086
|
44
|
+
P: 30.974
|
45
|
+
S: 32.065
|
46
|
+
Cl: 35.453
|
47
|
+
Ar: 39.948
|
48
|
+
|
49
|
+
# =========================================================================== #
|
50
|
+
# 4. Reihe / 4. row:
|
51
|
+
# =========================================================================== #
|
52
|
+
K: 39.098
|
53
|
+
Ca: 40.078
|
54
|
+
Sc: 44.956
|
55
|
+
Ti: 47.867
|
56
|
+
V: 50.942
|
57
|
+
Cr: 51.996
|
58
|
+
Mn: 54.938
|
59
|
+
Fe: 55.845
|
60
|
+
Co: 58.933
|
61
|
+
Ni: 58.693
|
62
|
+
Cu: 63.546
|
63
|
+
Zn: 65.38 # This is Zink. This is valid in 2007, see: http://www.ciaaw.org/zinc.htm
|
64
|
+
Ga: 69.723
|
65
|
+
Ge: 72.64
|
66
|
+
As: 74.922
|
67
|
+
Se: 78.96
|
68
|
+
Br: 79.904
|
69
|
+
Kr: 83.798
|
70
|
+
|
71
|
+
# =========================================================================== #
|
72
|
+
# 5. Reihe / 5. row:
|
73
|
+
# =========================================================================== #
|
74
|
+
Rb: 85.468
|
75
|
+
Sr: 87.62
|
76
|
+
Y: 88.906
|
77
|
+
Zr: 91.224
|
78
|
+
Nb: 92.906
|
79
|
+
Mo: 95.96
|
80
|
+
Tc: 97.907 # Why doesn't this have anything in the IUPAC version?
|
81
|
+
Ru: 101.07
|
82
|
+
Rh: 102.91
|
83
|
+
Pd: 106.42
|
84
|
+
Ag: 107.87
|
85
|
+
Cd: 112.41
|
86
|
+
In: 114.82
|
87
|
+
Sn: 118.71
|
88
|
+
Sb: 121.76
|
89
|
+
Te: 127.60
|
90
|
+
I: 126.90
|
91
|
+
Xe: 131.29
|
92
|
+
|
93
|
+
# =========================================================================== #
|
94
|
+
# 6. Reihe / 6. row:
|
95
|
+
# =========================================================================== #
|
96
|
+
Cs: 132.91
|
97
|
+
Ba: 137.33
|
98
|
+
Hf: 178.49
|
99
|
+
Ta: 180.95
|
100
|
+
W: 183.84
|
101
|
+
Re: 186.21
|
102
|
+
Os: 190.23
|
103
|
+
Ir: 192.22
|
104
|
+
Pt: 195.08
|
105
|
+
Au: 196.97
|
106
|
+
Hg: 200.59
|
107
|
+
Tl: 204.38
|
108
|
+
Pb: 207.2
|
109
|
+
Bi: 208.98
|
110
|
+
# Po:
|
111
|
+
# At:
|
112
|
+
# Rn:
|
113
|
+
# ^^^ Da steht nix bei diesen 3 Elementen, wahrscheinlich weil sie instabil sind.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === colours_for_the_elements.yml
|
3
|
+
#
|
4
|
+
# This file will eventually contain colours for use to colourize all the
|
5
|
+
# elements in the periodic table.
|
6
|
+
#
|
7
|
+
# It is currently (in May 2021) not in use, though. Let's see.
|
8
|
+
# =========================================================================== #
|
9
|
+
C: darkgreen
|
10
|
+
O: red
|
11
|
+
N: purple
|
12
|
+
Na: royalblue
|
13
|
+
Mg: lightgreen
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === dichte.yml
|
3
|
+
#
|
4
|
+
# In dieser Datei hier werden Dichten von verschiedenen Werkstoffen
|
5
|
+
# gesammelt.
|
6
|
+
#
|
7
|
+
# x = YAML.load_file('dichte.yml') # => {"Stahl"=>7.85}
|
8
|
+
# =========================================================================== #
|
9
|
+
|
10
|
+
Luft: 0.001 # g/cm3 # Quelle: Chemie .pdf Dokument BOKU AW Chemie
|
11
|
+
Balsaholz: 0.16 # g/cm3 # Quelle: Chemie .pdf Dokument BOKU AW Chemie
|
12
|
+
Benzin: 0.70 # g/ml # Quelle: Buch Chemie. 2012.
|
13
|
+
Wasser: 0.998230 # g/cm3 bei 20°C (Bei 4 Grad Celsius hat Wasser die grösste Dichte, und zwar 0.999972)
|
14
|
+
Ethanol: 0.79 # g/cm3
|
15
|
+
Ethylenglycol: 1.09 # g/cm3
|
16
|
+
Graphit: 2.26 # g/cm3
|
17
|
+
Stahl: 7.85 # g/cm3 # Quelle: https://de.wikipedia.org/wiki/Stahl - Die Dichte von Stahl bzw. Eisen beträgt 7.85-7.87 g/cm3 (7850-787
|
18
|
+
Diamant: 3.514 # g/cm3
|
19
|
+
Kupfer: 8.92 # g/cm3. Quelle: https://de.wikipedia.org/wiki/Kupfer
|
20
|
+
Blei: 11.342 # g/cm3 (20 °C). Quelle: http://de.wikipedia.org/wiki/Blei
|
21
|
+
Gold: 19.32 # g/cm3. Quelle: Chemie .pdf Dokument BOKU AW Chemie
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === electron_negativity_chart.yml
|
3
|
+
#
|
4
|
+
# This here is the "Pauling electronegativity scale".
|
5
|
+
#
|
6
|
+
# There are other ways of measuring electronegativity, such as the
|
7
|
+
# Mulliken scale and the Allred-Rochow scale.
|
8
|
+
#
|
9
|
+
# Linus Pauling's electronegativity scale is the most common though.
|
10
|
+
#
|
11
|
+
# Taken from:
|
12
|
+
#
|
13
|
+
# http://www.tutor-homework.com/Chemistry_Help/electronegativity_table/electronegativity.html
|
14
|
+
#
|
15
|
+
# =========================================================================== #
|
16
|
+
|
17
|
+
# =========================================================================== #
|
18
|
+
# 1. Periode
|
19
|
+
# =========================================================================== #
|
20
|
+
H: 2.1
|
21
|
+
He: 0
|
22
|
+
|
23
|
+
# =========================================================================== #
|
24
|
+
# 2. Periode
|
25
|
+
# =========================================================================== #
|
26
|
+
Li: 0.98
|
27
|
+
Be: 1.57
|
28
|
+
B: 2.04
|
29
|
+
C: 2.55
|
30
|
+
N: 3.04
|
31
|
+
O: 3.44
|
32
|
+
F: 3.98
|
33
|
+
Ne: 0
|
34
|
+
|
35
|
+
# =========================================================================== #
|
36
|
+
# 3. Periode
|
37
|
+
# =========================================================================== #
|
38
|
+
Na: 0.93
|
39
|
+
Mg: 1.31
|
40
|
+
Al: 1.61
|
41
|
+
Si: 1.9
|
42
|
+
P: 2.19
|
43
|
+
S: 2.58
|
44
|
+
Cl: 3.16
|
45
|
+
Ar: 0
|
46
|
+
|
47
|
+
# =========================================================================== #
|
48
|
+
# 4. Periode
|
49
|
+
# =========================================================================== #
|
50
|
+
K: 0.82
|
51
|
+
Ca: 1
|
52
|
+
Sc: 1.36
|
53
|
+
Ti: 1.54
|
54
|
+
V: 1.63
|
55
|
+
Cr: 1.66
|
56
|
+
Mn: 1.55
|
57
|
+
Fe: 1.83
|
58
|
+
Co: 1.88
|
59
|
+
Ni: 1.91
|
60
|
+
Cu: 1.9
|
61
|
+
Zn: 1.65
|
62
|
+
Ga: 1.81
|
63
|
+
Ge: 2.01
|
64
|
+
As: 2.18
|
65
|
+
Se: 2.55
|
66
|
+
Br: 2.96
|
67
|
+
Kr: 0
|
68
|
+
|
69
|
+
# =========================================================================== #
|
70
|
+
# 5. Periode
|
71
|
+
# =========================================================================== #
|
72
|
+
Rb: 0.82
|
73
|
+
Sr: 0.95
|
74
|
+
Y: 1.22
|
75
|
+
Zr: 1.33
|
76
|
+
Nb: 1.6
|
77
|
+
Mo: 2.16
|
78
|
+
Tc: 1.9
|
79
|
+
Ru: 2.2
|
80
|
+
Rh: 2.28
|
81
|
+
Pd: 2.2
|
82
|
+
Ag: 1.93
|
83
|
+
Cd: 1.69
|
84
|
+
In: 1.78
|
85
|
+
Sn: 1.96
|
86
|
+
Sb: 2.05
|
87
|
+
Te: 2.1
|
88
|
+
I: 2.66
|
89
|
+
Xe: 2.6
|
90
|
+
|
91
|
+
# =========================================================================== #
|
92
|
+
# 6. Periode
|
93
|
+
# =========================================================================== #
|
94
|
+
Cs: 0.79
|
95
|
+
Ba: 0.89
|
96
|
+
La: 1.1
|
97
|
+
Hf: 1.3
|
98
|
+
Ta: 1.5
|
99
|
+
W: 2.36
|
100
|
+
Re: 1.9
|
101
|
+
Os: 2.2
|
102
|
+
Ir: 2.2
|
103
|
+
Pt: 2.28
|
104
|
+
Au: 2.54
|
105
|
+
Hg: 2
|
106
|
+
Tl: 2.04
|
107
|
+
Pb: 2.33
|
108
|
+
Bi: 2.02
|
109
|
+
Po: 2
|
110
|
+
At: 2.2
|
111
|
+
Rn: 0
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# This file contains the "molecular mass" of different
|
3
|
+
# molecules.
|
4
|
+
#
|
5
|
+
# x = YAML.load_file('molecular_formula_of_different_molecules.yml')
|
6
|
+
#
|
7
|
+
# =========================================================================== #
|
8
|
+
|
9
|
+
harnstoff: CH₄N₂O
|
10
|
+
pyruvate: C₃H₄O₃ # CH3-CO-CO-O
|
11
|
+
lactic acid: C₃H6O₃
|
12
|
+
acetyl: C₂H₃O
|
13
|
+
citric acid: C₆H₈O₇
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === periodic_table_of_the_elements.yml
|
3
|
+
#
|
4
|
+
# x = YAML.load_file('periodic_table_of_the_elements.yml')
|
5
|
+
#
|
6
|
+
# =========================================================================== #
|
7
|
+
|
8
|
+
H : 1
|
9
|
+
He : 2
|
10
|
+
Li : 3
|
11
|
+
Be : 4
|
12
|
+
B : 5
|
13
|
+
C : 6
|
14
|
+
N : 7
|
15
|
+
O : 8
|
16
|
+
F : 9
|
17
|
+
Ne : 10
|
18
|
+
Na : 11
|
19
|
+
Mg : 12
|
20
|
+
Al : 13
|
21
|
+
Si : 14
|
22
|
+
P : 15
|
23
|
+
S : 16
|
24
|
+
Cl : 17
|
25
|
+
Ar : 18
|
26
|
+
K : 19
|
27
|
+
Ca : 20
|
28
|
+
Sc : 21
|
29
|
+
Ti : 22
|
30
|
+
V : 23
|
31
|
+
Cr : 24
|
32
|
+
Mn : 25
|
33
|
+
Fe : 26
|
34
|
+
Co : 27
|
35
|
+
Ni : 28
|
36
|
+
Cu : 29
|
37
|
+
Zn : 30
|
38
|
+
Ga : 31
|
39
|
+
Ge : 32
|
40
|
+
As : 33
|
41
|
+
Se : 34
|
42
|
+
Br : 35
|
43
|
+
Kr : 36
|
44
|
+
Rb : 37
|
45
|
+
Sr : 38
|
46
|
+
Y : 39
|
47
|
+
Zr : 40
|
48
|
+
Nb : 41
|
49
|
+
Mo : 42
|
50
|
+
Tc : 43
|
51
|
+
Ru : 44
|
52
|
+
Rh : 45
|
53
|
+
Pd : 46
|
54
|
+
Ag : 47
|
55
|
+
Cd : 48
|
56
|
+
In : 49
|
57
|
+
Sn : 50
|
58
|
+
Sb : 51
|
59
|
+
Te : 52
|
60
|
+
I : 53
|
61
|
+
Xe : 54
|
62
|
+
Cs : 55
|
63
|
+
Ba : 56
|
64
|
+
La : 57
|
65
|
+
Ce : 58
|
66
|
+
Pr : 59
|
67
|
+
Nd : 60
|
68
|
+
Pm : 61
|
69
|
+
Sm : 62
|
70
|
+
Eu : 63
|
71
|
+
Gd : 64
|
72
|
+
Tb : 65
|
73
|
+
Dy : 66
|
74
|
+
Ho : 67
|
75
|
+
Er : 68
|
76
|
+
Tm : 69
|
77
|
+
Yb : 70
|
78
|
+
Lu : 71
|
79
|
+
Hf : 72
|
80
|
+
Ta : 73
|
81
|
+
W : 74
|
82
|
+
Re : 75
|
83
|
+
Os : 76
|
84
|
+
Ir : 77
|
85
|
+
Pt : 78
|
86
|
+
Au : 79
|
87
|
+
Hg : 80
|
88
|
+
Tl : 81
|
89
|
+
Pb : 82
|
90
|
+
Bi : 83
|
91
|
+
Po : 84
|
92
|
+
At : 85
|
93
|
+
Rn : 86
|
94
|
+
Fr : 87
|
95
|
+
Ra : 88
|
96
|
+
Ac : 89
|
97
|
+
Th : 90
|
98
|
+
Pa : 91
|
99
|
+
U : 92
|
100
|
+
Np : 93
|
101
|
+
# Pu :
|
102
|
+
# Am :
|
103
|
+
# Cm :
|
104
|
+
# Bk :
|
105
|
+
# Cf :
|
106
|
+
# Es :
|
107
|
+
# Fm :
|
108
|
+
# Md :
|
109
|
+
# No :
|
110
|
+
# Lr :
|
111
|
+
# Rf :
|
112
|
+
# Db :
|
113
|
+
# Sg :
|
114
|
+
# Bh :
|
115
|
+
# Hs :
|
116
|
+
# Mt :
|
117
|
+
# Ds :
|
118
|
+
# Rg :
|
119
|
+
# Uub :
|
120
|
+
# Uut :
|
121
|
+
# Uuq :
|
122
|
+
# Uup :
|
123
|
+
# Uuh :
|
124
|
+
# Uus :
|
125
|
+
# Uuo :
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'chemistry_paradise/requires/require_the_project.rb'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'chemistry_paradise/shared.rb'
|
6
|
+
require 'chemistry_paradise/chemistry_controller.rb'
|
7
|
+
require 'chemistry_paradise/utility_scripts/calculate_atomic_mass.rb'
|
8
|
+
|
9
|
+
require 'colours/colours_e_autoinclude.rb'
|
10
|
+
|
11
|
+
# =========================================================================== #
|
12
|
+
# === s
|
13
|
+
# =========================================================================== #
|
14
|
+
def s(i)
|
15
|
+
opn; e i
|
16
|
+
end
|
17
|
+
s 'This file will run some tests to ensure that the'
|
18
|
+
s 'ChemistryParadise-Project works as intended.'
|
19
|
+
e
|
20
|
+
s 'Next testing '+Colours.slateblue('ChemistryController.berechne_atomgewicht()')
|
21
|
+
# ChemistryController.berechne_atomgewicht(:test_default_molecules)
|
22
|
+
# $RSRC/chemistry_paradise/test/testing_chemistry_paradise.rb
|
23
|
+
_ = 'C16H12N2'
|
24
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
25
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
26
|
+
e
|
27
|
+
|
28
|
+
_ = 'C2H2'
|
29
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
30
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
31
|
+
|
32
|
+
_ = ChemistryParadise::CalculateAtomicMass::DEFAULT_INPUT
|
33
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
34
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
35
|
+
|
36
|
+
_ = 'Ca(OH)2'
|
37
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
38
|
+
s ChemistryParadise::CalculateAtomicMass[_]
|
39
|
+
|
40
|
+
# =========================================================================== #
|
41
|
+
# We will report in the german language next.
|
42
|
+
# =========================================================================== #
|
43
|
+
ChemistryParadise::CalculateAtomicMass.new(_)
|
44
|
+
e
|
45
|
+
e 'And next, we will report the result in english again.'
|
46
|
+
ChemistryParadise.do_use_english
|
47
|
+
_ = 'Ca(OH)2'
|
48
|
+
e; e 'The formula that we will text next is: '+simp(_); e
|
49
|
+
ChemistryParadise::CalculateAtomicMass.new(_)
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chemistry_paradise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert A. Heiler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: opn
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cliner
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colours
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: "\n Chemistry-related tasks are gathered in this project.\n \n The
|
56
|
+
classes in this project may allow you to translate\n between celsius and fahrenheit
|
57
|
+
(and vice versa), show the\n mass of elements or compounds and several similar
|
58
|
+
things\n somewhat related to chemistry.\n\n For more extensive documentation,
|
59
|
+
see the link at the\n bottom right side of this webpage, called \"Documentation\".\n\n"
|
60
|
+
email: shevy@inbox.lt
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- README.md
|
66
|
+
- bin/chemistry_paradise
|
67
|
+
- bin/wetter
|
68
|
+
- chemistry_paradise.gemspec
|
69
|
+
- doc/README.gen
|
70
|
+
- doc/bugs/BUGS.md
|
71
|
+
- doc/formulas/biochemical_calculations.md
|
72
|
+
- doc/todo/todo_for_the_chemistry_paradise_project.md
|
73
|
+
- doc/todo/todo_for_the_wetter_project.md
|
74
|
+
- lib/chemistry_paradise.rb
|
75
|
+
- lib/chemistry_paradise/base/base.rb
|
76
|
+
- lib/chemistry_paradise/base/colours.rb
|
77
|
+
- lib/chemistry_paradise/commandline/help.rb
|
78
|
+
- lib/chemistry_paradise/commandline/menu.rb
|
79
|
+
- lib/chemistry_paradise/commandline/parse_commandline.rb
|
80
|
+
- lib/chemistry_paradise/constants/constants.rb
|
81
|
+
- lib/chemistry_paradise/constants/file_constants.rb
|
82
|
+
- lib/chemistry_paradise/constants/german_names_of_elements_to_element_symbol.rb
|
83
|
+
- lib/chemistry_paradise/converters/celsius_to_fahrenheit.rb
|
84
|
+
- lib/chemistry_paradise/converters/celsius_to_kelvin.rb
|
85
|
+
- lib/chemistry_paradise/converters/fahrenheit_to_celsius.rb
|
86
|
+
- lib/chemistry_paradise/converters/shared.rb
|
87
|
+
- lib/chemistry_paradise/gui/gtk3/calculate_molecular_weight/calculate_molecular_weight.rb
|
88
|
+
- lib/chemistry_paradise/gui/gtk3/show_periodic_table/show_periodic_table.rb
|
89
|
+
- lib/chemistry_paradise/gui/gtk3/temperature_converter/temperature_converter.rb
|
90
|
+
- lib/chemistry_paradise/gui/gtk3/wetter/wetter.rb
|
91
|
+
- lib/chemistry_paradise/gui/libui/temperature_converter/temperature_converter.rb
|
92
|
+
- lib/chemistry_paradise/gui/libui/wetter/wetter.rb
|
93
|
+
- lib/chemistry_paradise/gui/shared_code/calculate_molecular_weight/calculate_molecular_weight_module.rb
|
94
|
+
- lib/chemistry_paradise/gui/shared_code/show_periodic_table/show_periodic_table_module.rb
|
95
|
+
- lib/chemistry_paradise/gui/shared_code/temperature_converter/temperature_converter_module.rb
|
96
|
+
- lib/chemistry_paradise/gui/shared_code/wetter/wetter_module.rb
|
97
|
+
- lib/chemistry_paradise/gui/swing/TemperatureConverter$1.class
|
98
|
+
- lib/chemistry_paradise/gui/swing/TemperatureConverter.class
|
99
|
+
- lib/chemistry_paradise/gui/swing/TemperatureConverter.java
|
100
|
+
- lib/chemistry_paradise/gui/unified_widgets/wetter/wetter.rb
|
101
|
+
- lib/chemistry_paradise/images/show_periodic_table.png
|
102
|
+
- lib/chemistry_paradise/images/vienna_map.png
|
103
|
+
- lib/chemistry_paradise/interactive_chemistry_shell.rb
|
104
|
+
- lib/chemistry_paradise/project/project.rb
|
105
|
+
- lib/chemistry_paradise/requires/common_external_requires.rb
|
106
|
+
- lib/chemistry_paradise/requires/require_the_project.rb
|
107
|
+
- lib/chemistry_paradise/requires/require_the_project_including_the_graphical_user_interface.rb
|
108
|
+
- lib/chemistry_paradise/requires/require_the_project_including_the_web_interface.rb
|
109
|
+
- lib/chemistry_paradise/shared.rb
|
110
|
+
- lib/chemistry_paradise/show_electron_configuration.rb
|
111
|
+
- lib/chemistry_paradise/show_element.rb
|
112
|
+
- lib/chemistry_paradise/sinatra/sinatra.rb
|
113
|
+
- lib/chemistry_paradise/sinatra/wetter/app.rb
|
114
|
+
- lib/chemistry_paradise/sinatra/wetter/start_sinatra_interface.rb
|
115
|
+
- lib/chemistry_paradise/split_molecule_names.rb
|
116
|
+
- lib/chemistry_paradise/toplevel_methods/atomgewichte.rb
|
117
|
+
- lib/chemistry_paradise/toplevel_methods/convert_parens.rb
|
118
|
+
- lib/chemistry_paradise/toplevel_methods/display_where_the_molmasses_are_kept.rb
|
119
|
+
- lib/chemistry_paradise/toplevel_methods/e.rb
|
120
|
+
- lib/chemistry_paradise/toplevel_methods/kelvin.rb
|
121
|
+
- lib/chemistry_paradise/toplevel_methods/language.rb
|
122
|
+
- lib/chemistry_paradise/toplevel_methods/misc.rb
|
123
|
+
- lib/chemistry_paradise/toplevel_methods/periodic_table.rb
|
124
|
+
- lib/chemistry_paradise/toplevel_methods/remove_this_molecule_from.rb
|
125
|
+
- lib/chemistry_paradise/toplevel_methods/roebe.rb
|
126
|
+
- lib/chemistry_paradise/toplevel_methods/show_electron_negativity_chart.rb
|
127
|
+
- lib/chemistry_paradise/utility_scripts/calculate_atomic_mass.rb
|
128
|
+
- lib/chemistry_paradise/utility_scripts/combustion_analysis.rb
|
129
|
+
- lib/chemistry_paradise/utility_scripts/electron_negativity_chart.rb
|
130
|
+
- lib/chemistry_paradise/utility_scripts/equalize_chemical_formula.rb
|
131
|
+
- lib/chemistry_paradise/utility_scripts/equation_solver.rb
|
132
|
+
- lib/chemistry_paradise/utility_scripts/orbitals.rb
|
133
|
+
- lib/chemistry_paradise/utility_scripts/show_electron_negativity_of_this_element.rb
|
134
|
+
- lib/chemistry_paradise/verbose_chemical_calculation.rb
|
135
|
+
- lib/chemistry_paradise/version/version.rb
|
136
|
+
- lib/chemistry_paradise/wetter/wetter.rb
|
137
|
+
- lib/chemistry_paradise/www/wetter/embeddable_interface.rb
|
138
|
+
- lib/chemistry_paradise/www/wetter/wetter.cgi
|
139
|
+
- lib/chemistry_paradise/yaml/atomgewichte.yml
|
140
|
+
- lib/chemistry_paradise/yaml/colours_for_the_elements.yml
|
141
|
+
- lib/chemistry_paradise/yaml/dichte.yml
|
142
|
+
- lib/chemistry_paradise/yaml/electron_negativity_chart.yml
|
143
|
+
- lib/chemistry_paradise/yaml/molecular_formula_of_different_molecules.yml
|
144
|
+
- lib/chemistry_paradise/yaml/periodic_table_of_the_elements.yml
|
145
|
+
- test/testing_chemistry_paradise.rb
|
146
|
+
homepage: https://rubygems.org/gems/chemistry_paradise
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata: {}
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 2.7.6
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: 3.4.8
|
164
|
+
requirements: []
|
165
|
+
rubygems_version: 3.4.8
|
166
|
+
signing_key:
|
167
|
+
specification_version: 4
|
168
|
+
summary: Chemistry-related tasks are gathered in this project. The classes in this
|
169
|
+
project may allow you to translate between celsius and fahrenheit (and vice versa),
|
170
|
+
show the mass of elements or compounds and several similar things somewhat related
|
171
|
+
to chemistry. For more extensive documentation, see the link at the bottom right
|
172
|
+
side of this webpage, called "Documentation".
|
173
|
+
test_files: []
|