-
Notifications
You must be signed in to change notification settings - Fork 2
/
PeriodicElements.h
4194 lines (4053 loc) · 194 KB
/
PeriodicElements.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// Created by Ryan.Zurrin001 on 12/16/2021.
//
#ifndef PHYSICSFORMULA_PERIODICELEMENTS_H
#define PHYSICSFORMULA_PERIODICELEMENTS_H
#pragma once
/**
* @struct Elements
* @details structure holding data on all the periodic elements
* @author Ryan Zurrin
* @date 1/1/2021
*/
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <cmath>
#include <iomanip>
const int screenSize_X = 640;
const int screenSize_Y = 480;
static struct AtomicMass
{
const long double kg = 1.66053906660 * 50 * pow(10, -27);
const long double Mu = 1.0;
const long double Me = 1822.888486209 * 53;
} am;
/// <summary>
/// The periodic table, also known as the periodic table of elements, is a
/// tabular display of the chemical elements, which are arranged by atomic
/// number, electron configuration, and recurring chemical properties.
/// The structure of the table shows periodic trends.\n\n
/// atomic_weight: The atomic mass is the mass of an atom. Although the SI unit
/// of mass is kilogram, the atomic mass is often expressed in the non-SI unit
/// dalton where 1 dalton is defined as 1⁄12 of the mass of a single
/// carbon-12 atom, at rest.\n\n
/// atomic_number: The atomic number or proton number (symbol Z_) of a chemical
/// element is the number of protons found in the nucleus of every atom of
/// that element. The atomic number uniquely identifies a chemical element.
/// It is identical to the charge number of the nucleus. In an uncharged atom,
/// the atomic number is also equal to the number of electrons.\n\n
/// density_STP: Density is a measure of an element's mass per unit volume.\n\n
/// melting_point: Melting point, temperature at which the solid and liquid forms
/// of a pure substance can exist in equilibrium. ... As heat is applied to a
/// solid, its temperature will increase until the melting point is reached.
/// More heat then will convert the solid into a liquid with no temperature change.\n\n
/// boiling_point: The boiling point of a substance is the temperature at which
/// the vapor pressure of a liquid equals the pressure surrounding the liquid
/// and the liquid changes into a vapor. ... The standard boiling point has
/// been defined by IUPAC since 1982 as the temperature at which boiling
/// occurs under a pressure of one bar.\n\n
/// thermal_conductivity: The heat transfer characteristics of a solid material
/// are measured by a property called the thermal conductivity, k (or λ),
/// measured in W/m.K. It is a measure of a substance's ability to transfer
/// heat through a material by conduction.\n\n
/// electric_conductivity: in metals is a result of the movement of electrically
/// charged particles. The atoms of metal elements are characterized by the
/// presence of valence electrons, which are electrons in the outer shell of
/// an atom that are free to move about.\n\n
/// resistivity_VIlg: (also called specific electrical resistance or volume resistivity_ldR)
/// is a fundamental property of a material that measures how strongly it resists
/// electric current. Its inverse, called electrical conductivity, quantifies
/// how well a material conducts electricity.\n\n
/// heat_specific: the quantity of heat required to raise the temperature of one
/// gram of a substance by one Celsius degree. The units of specific heat are
/// usually calories or joules per gram per Celsius degree.\n\n
/// heat_vaporization: The enthalpy of vaporization, also known as the heat of
/// vaporization or heat of evaporation, is the amount of energy that must
/// be added to a liquid substance to transform a quantity of that substance
/// into a gas. The enthalpy of vaporization is a function of the pressure at
/// which that transformation takes place.\n\n
/// heat_fusion: The enthalpy of fusion of a substance, also known as heat of
/// fusion is the change in its enthalpy resulting from providing energy, typically
/// heat, to a specific quantity of the substance to change its state from a
/// solid to a liquid, at constant pressure.\n\n
/// ionization_1st: Ionization energy is the minimum amount of energy required
/// to remove the most loosely bound electron of a neutral atom.
/// </summary>
static struct Elements
{
Elements() { //cout << "testing Element" << endl;
};
/// <summary>
///
/// </summary>
const struct NEUTRON
{
const long double atomic_weight = 1.008665;
const long double halfLife = 622.2;
const int atomic_number = 0;
} n;
/// <summary>
/// Hydrogen is the chemical element with the symbol H and atomic number 1.
/// With a standard atomic weight of 1.008, hydrogen is the lightest element
/// in the periodic table. Hydrogen is the most abundant chemical substance
/// in the universe, constituting roughly 75% of all baryonic mass
/// </summary>
const struct HYDROGEN
{
const int group = 1;
const string type = "Reactive Nonmetal";
const string crystal_type = "Hexagonal";
const string electron_configuration = "1s1";
const long double atomic_weight = 1.007825; // 1.007825 u (g/mol)
const int atomic_number = 1; // Z_ = 1
const vector<long double> energy_levels = {1};
const long double density_STP = .0899; // .0899 kg/m^3
const long double melting_point = -259.3; // -259.3 C
const long double boiling_point = -252.9; // -252.9 C
const long double thermal_conductivity = .18; // .18 W/mK
const long double electric_conductivity = FP_NAN; // FP_NAN
const long double resistivity = FP_NAN; //FP_NAN
const long double heat_specific = 14300.0; // 14300.0 J/kgK
const long double heat_vaporization = .452; // 452 kJ/mol
const long double heat_fusion = .0585; // .558 kJ/mol
const long double ionization_1st = 13.598;
static void display()
{
displayElementImg(getFileName(1)); }
} H;
/// <summary>
/// Helium is a chemical element with the symbol He and atomic number 2.
/// It is a colorless, odorless, tasteless, non-toxic, inert, monatomic gas,
/// the first in the noble gas group in the periodic table. Its boiling point
/// is the lowest among all the elements
/// </summary>
const struct HELIUM
{
const int group = 18;
const string type = "Noble Gas";
const string crystal_type = "Hexagonal";
const string electron_configuration = "1s2";
const long double atomic_weight = 4.002602; // 4.002602 u (g/mol)
const int atomic_number = 2; // Z_ = 2
const vector<long double> energy_levels = {2};
const long double density_STP = 0.1785; // 0.1785 kg/m^3
const long double melting_point = FP_NAN; // C
const long double boiling_point = -268.9; // -269 C
const long double thermal_conductivity = 0.1513; // 0.1513 W/mK
const long double electric_conductivity = FP_NAN; // FP_NAN
const long double resistivity = FP_NAN; // FP_NAN
const long double heat_specific = 5193.1; // 5193.1 J/kgK
const long double heat_vaporization = .083; // .083 kJ/mol
const long double heat_fusion = .02; // .02 kJ/mol
const long double ionization_1st = 24.587; // eV
static void display()
{
displayElementImg(getFileName(2));
}
} He;
/// <summary>
/// Lithium is a chemical element with the symbol LinearMomentum and atomic number 3.
/// It is a soft, silvery-white alkali metal. Under standard conditions,
/// it is the lightest metal and the lightest solid element.
/// </summary>
const struct LITHIUM
{
const int group = 1;
const string type = "Alkali Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[He]2s1";
const long double atomic_weight = 6.941; // 6.94 u (g/mol)
const int atomic_number = 3; // Z_ = 3
const vector<long double> energy_levels = {2, 1};
const long double density_STP = 535.0; // 535.0 kg/m^3
const long double melting_point = 180.54; // 180.54 C
const long double boiling_point = 1342.0; // 1342.0 C
const long double thermal_conductivity = 85.0; // 85.0 W/mK
const long double electric_conductivity = 11.0; // 11.0 MS/m
const long double resistivity = 9.40 * pow(10, -8); // 9.4e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 3570.0; // 3570.0 J/kgK
const long double heat_vaporization = 147.0; // 147.0 kJ/mol
const long double heat_fusion = 3.0; // 3.0 kJ/mol
const long double ionization_1st = 5.391; // eV
static void display()
{
displayElementImg(getFileName(3));
}
} Li;
/// <summary>
/// Beryllium is a chemical element with the symbol Be and atomic number 4.
/// It is a relatively rare element in the universe, usually occurring as a
/// product of the spallation of larger atomic nuclei that have collided
/// with cosmic rays. Within the cores of stars, beryllium is depleted as
/// it is fused into heavier elements.
/// </summary>
const struct BERYLLIUM
{
const int group = 2;
const string type = "Alkaline Earth Metal";
const string crystal_type = "Hexagonal";
const string electron_configuration = "[He]2s2";
const long double atomic_weight = 9.0121831; // 9.0121831 u (g/mol)
const int atomic_number = 4; //4
const vector<long double> energy_levels = {2, 2};
const long double density_STP = 1848.0; // 1848.0 kg/m^3
const long double melting_point = 1287; // 1287 C
const long double boiling_point = 2470; // 2470 C
const long double thermal_conductivity = 190; // 190 W/mK
const long double electric_conductivity = 25; // 25 MS/m
const long double resistivity = 3.999999999998 * pow(10, -8); // 4e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 1820.0; // 1820.0 J/kgK
const long double heat_vaporization = 297.0; // 297.0 kJ/mol
const long double heat_fusion = 7.95; // 7.95 kJ/mol
const long double ionization_1st = 9.323; // eV
static void display()
{
displayElementImg(getFileName(4));
}
} Be;
/// <summary>
/// Boron is a chemical element with the symbol B and atomic number 5.
/// Produced entirely by cosmic ray spallation and supernovae and not by
/// stellar nucleosynthesis, it is a low-abundance element in the Solar
/// System and in the Earth's crust. It constitutes about 0.001 percent
/// by weight of Earth's crust.
/// </summary>
const struct BORON
{
const int group = 13;
const string type = "Metalloid";
const string crystal_type = "Rhombohedral";
const string electron_configuration = "[He]2s2 2p1";
const long double atomic_weight = 10.81; // 10.81 u (g/mol)
const int atomic_number = 5; // 5
const vector<long double> energy_levels = {2, 3}; //add u (g/mol)p to atomic number
const long double density_STP = 2460.0; // 2460.0 kg/m^3
const long double melting_point = 2075; // 2075 C
const long double boiling_point = 4000; // 4000 C
const long double thermal_conductivity = 27.0; // 27.0W/mK
const long double electric_conductivity = 1; // MS/m
const long double resistivity = 10000.0; // 10000 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 1030.0; // J/kgK
const long double heat_vaporization = 507.0; // kJ/mol
const long double heat_fusion = 50.0; // kJ/mol
const long double ionization_1st = 8.298; // eV
static void display()
{
displayElementImg(getFileName(5));
}
} B;
/// <summary>
/// Carbon is a chemical element with the symbol C and atomic number 6.
/// It is nonmetallic and tetravalent—making four electrons available to
/// form covalent chemical bonds. It belongs to group 14 of the periodic
/// table. Carbon makes up only about 0.025 percent of Earth's crust.
/// </summary>
const struct CARBON
{
const int group = 14;
const string type = "Reactive Nonmetal";
const string crystal_type = "Diamond";
const string electron_configuration = "[He]2s2 2p2";
const long double atomic_weight = 12.011; // u (g/mol)
const int atomic_number = 6;
const vector<long double> energy_levels = {2, 4};
const long double density_STP = 2260.0; // kg/m^3
const long double melting_point = 3550; // C
const long double boiling_point = 4027; // C
const long double thermal_conductivity = 140.0; // W/mK
const long double electric_conductivity = .10; // MS/m
const long double resistivity = 0.00001; // 0.00001 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 710.0; // J/kgK
const long double heat_vaporization = 715.0; // kJ/mol
const long double heat_fusion = 105; // kJ/mol
const long double ionization_1st = 11.261; // eV
static void display()
{
displayElementImg(getFileName(6));
}
} C;
/// <summary>
/// Nitrogen is the chemical element with the symbol N and atomic number 7.
/// It was first discovered and isolated by Scottish physician Daniel
/// Rutherford in 1772.
/// </summary>
const struct NITROGEN
{
const int group = 15;
const string type = "Reactive Nonmetal";
const string crystal_type = "Hexagonal";
const string electron_configuration = "[He]2s2 2p3";
const long double atomic_weight = 14.007; // u (g/mol)
const int atomic_number = 7;
const vector<long double> energy_levels = {2, 5};
const long double density_STP = 1.251; // kg/m^3
const long double melting_point = -210.1; // C
const long double boiling_point = -195.8; // C
const long double thermal_conductivity = .025; // W/mK
const long double electric_conductivity = FP_NAN; // MS/m
const long double resistivity = FP_NAN; //FP_NAN
const long double heat_specific = 1040; // J/kgK
const long double heat_vaporization = 2.79; // kJ/mol
const long double heat_fusion = .36; // kJ/mol
const long double ionization_1st = 14.534; // eV
static void display()
{
displayElementImg(getFileName(7));
}
} N;
/// <summary>
/// Oxygen is the chemical element with the symbol O and atomic number 8.
/// It is a member of the chalcogen group in the periodic table, a highly
/// reactive nonmetal, and an oxidizing agent that readily forms oxides with
/// most elements as well as with other compounds.
/// </summary>
const struct OXYGEN
{
const int group = 16;
const string type = "Reactive Nonmetal";
const string crystal_type = "Simple Cubic";
const string electron_configuration = "[He]2s2 2p4";
const long double atomic_weight = 15.999; // u (g/mol)
const int atomic_number = 8;
const vector<long double> energy_levels = {2, 6};
const long double density_STP = 1.251; // kg/m^3
const long double melting_point = -218.0; // C
const long double boiling_point = -183.0; // C
const long double thermal_conductivity = 0.02658; // W/mK
const long double electric_conductivity = FP_NAN; // MS/m
const long double resistivity = FP_NAN; // FP_NAN
const long double heat_specific = 919; // J/kgK
const long double heat_vaporization = 3.41; // kJ/mol
const long double heat_fusion = .222; // kJ/mol
const long double ionization_1st = 13.681; // eV
static void display()
{
displayElementImg(getFileName(8));
}
} O;
/// <summary>
/// Fluorine is a chemical element with the symbol F and atomic number 9.
/// It is the lightest halogen and exists at standard conditions as a highly
/// toxic, pale yellow diatomic gas. As the most electronegative element,
/// it is extremely reactive, as it reacts with all other elements, except
/// for argon, neon, and helium.
/// </summary>
const struct FLUORINE
{
const int group = 17;
const string type = "Reactive Nonmetal";
const string crystal_type = "Monoclinc";
const string electron_configuration = "[He]2s2 2p5";
const long double atomic_weight = 18.998403163; // u (g/mol)
const int atomic_number = 9;
const vector<long double> energy_levels = {2, 7};
const long double density_STP = 1.696; // kg/m^3
const long double melting_point = -220.0; // C
const long double boiling_point = -188.1; // C
const long double thermal_conductivity = .0277; // W/mK
const long double electric_conductivity = FP_NAN; // MS/m
const long double resistivity = FP_NAN; // FP_NAN
const long double heat_specific = 824; // J/kgK
const long double heat_vaporization = 3.27; // kJ/mol
const long double heat_fusion = .26; // kJ/mol
const long double ionization_1st = 17.422; // eV
static void display()
{
displayElementImg(getFileName(9));
}
} F;
/// <summary>
/// Neon is a chemical element with the symbol Ne and atomic number 10.
/// It is a noble gas. Neon is a colorless, odorless, inert monatomic gas
/// u (g/mol)nder standard conditions, with about two-thirds the density of air.
/// </summary>
const struct NEON
{
const int group = 18;
const string type = "Noble Gas";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[He]2s2 2p6";
const long double atomic_weight = 20.1797; // u (g/mol)
const int atomic_number = 10;
const vector<long double> energy_levels = {2, 8};
const long double density_STP = .900; // kg/m^3
const long double melting_point = -248.6; // C
const long double boiling_point = -246.1; // C
const long double thermal_conductivity = .0491; // W/mK
const long double electric_conductivity = FP_NAN; // MS/m
const long double resistivity = FP_NAN; // FP_NAN
const long double heat_specific = 1030; // J/kgK
const long double heat_vaporization = 1.75; // kJ/mol
const long double heat_fusion = 0.34; // kJ/mol
const long double ionization_1st = 21.565; // eV
static void display()
{
displayElementImg(getFileName(10));
}
} Ne;
/// <summary>
/// Sodium is a chemical element with the symbol Na and atomic number 11.
/// It is a soft, silvery-white, highly reactive metal. Sodium is an
/// alkali metal, being in group 1 of the periodic table. Its only stable
/// isotope is ²³Na. The free metal does not occur in nature, and must be
/// prepared from compounds.
/// </summary>
const struct SODIUM
{
const int group = 1;
const string type = "Alkali Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[Ne]3s1";
const long double atomic_weight = 22.98976928; // u (g/mol)
const int atomic_number = 11;
const vector<long double> energy_levels = {2, 8, 1};
const long double density_STP = 968; // kg/m^3
const long double melting_point = 97.720; // C
const long double boiling_point = 882.9; // C
const long double thermal_conductivity = 140.0; // W/mK
const long double electric_conductivity = 21.0; // MS/m
const long double resistivity = 4.69999999e-8; // 4.7e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 1230; // J/kgK
const long double heat_vaporization = 97.7; // kJ/mol
const long double heat_fusion = 2.60; // kJ/mol
const long double ionization_1st = 5.139; // eV
static void display()
{
displayElementImg(getFileName(11));
}
} Na;
/// <summary>
/// Magnesium is a chemical element with the symbol Mg and atomic number 12.
/// It is a shiny gray solid which bears a close physical resemblance to
/// the other five elements in the second column of the periodic
/// </summary>
const struct MAGNESIUM
{
const int group = 2;
const string type = "Alkaline Earth Metal";
const string crystal_type = "Hexagonal Close Packed";
const string electron_configuration = "[Ne]3s2";
const long double atomic_weight = 24.305; // u (g/mol)
const int atomic_number = 12;
const vector<long double> energy_levels = {2, 8, 2};
const long double density_STP = 1738.0; // kg/m^3
const long double melting_point = 650; // C
const long double boiling_point = 1090; // C
const long double thermal_conductivity = 160.0; // W/mK
const long double electric_conductivity = 23.0; // MS/m
const long double resistivity = 4.39999999e-8; // 4.4e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 1020; // J/kgK
const long double heat_vaporization = 128; // kJ/mol
const long double heat_fusion = 8.7; // kJ/mol
const long double ionization_1st = 7.646; // eV
static void display()
{
displayElementImg(getFileName(12));
}
} Mg;
/// <summary>
/// Aluminium is a chemical element with the symbol Al and atomic number 13.
/// Aluminium has a density lower than those of other common metals, at
/// approximately one third that of steel. It has a great affinity towards
/// oxygen, and forms a protective layer of oxide on the surface when
/// exposed to air.
/// </summary>
const struct ALUMINIUM
{
const int group = 13;
const string type = "Post-Transition Metal";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ne]3s2 3p1";
const long double atomic_weight = 26.9815385; // 26.9815385 u (g/mol)
const int atomic_number = 13; // 13
const vector<long double> energy_levels = {2, 8, 3};
const long double density_STP = 2700; // 2700 kg/m^3
const long double melting_point = 660.32; // 660.32 C
const long double boiling_point = 2519.0; // 2519C
const long double thermal_conductivity = 235; // 235 W/mK
const long double electric_conductivity = 38.0; // 38 MS/m
const long double resistivity = 2.6e-8; // 2.6e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 904.0; // 904 J/kgK
const long double heat_vaporization = 293.0; // 293 kJ/mol
const long double heat_fusion = 10.7; // 10.7 kJ/mol
const long double ionization_1st = 5.985; // eV
static void display()
{
displayElementImg(getFileName(13));
}
} Al;
/// <summary>
/// Silicon is a chemical element with the symbol Si and atomic number 14.
/// It is a hard, brittle crystalline solid with a blue-grey metallic lustre,
/// and is a tetravalent metalloid and semiconductor. It is a member of group
/// 14 in the periodic table: carbon is above it; and germanium, tin, lead
/// and flerovium, are below it
/// </summary>
const struct SILICON
{
const int group = 14;
const string type = "Metalloid";
const string crystal_type = "Diamond Cubic";
const string electron_configuration = "[Ne]3s2 3p2";
const long double atomic_weight = 28.085; // 28.085 u (g/mol)
const int atomic_number = 14; //14
const vector<long double> energy_levels = {2, 8, 4};
const long double density_STP = 2330.0; // 2330 kg/m^3
const long double melting_point = 1414.0; // 1414 C
const long double boiling_point = 2900.0; // 2000 C
const long double thermal_conductivity = 150.0; // 150 W/mK
const long double electric_conductivity = .0010; // .0010 MS/m
const long double resistivity = .001; // .001 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 710.0; // 710 J/kgK
const long double heat_vaporization = 359.0; // 359 kJ/mol
const long double heat_fusion = 50.2; // 50.2 kJ/mol
const long double ionization_1st = 8.151; // eV
static void display()
{
displayElementImg(getFileName(14));
}
} Si;
/// <summary>
/// Phosphorus is a chemical element with the symbol P and atomic number 15.
/// Elemental phosphorus exists in two major forms, white phosphorus and
/// red phosphorus, but because it is highly reactive, phosphorus is never
/// found as a free element on Earth.
/// </summary>
const struct PHOSPHORUS
{
const int group = 15;
const string type = "Reactive Nonmetal";
const string crystal_type = "Orthorhombic";
const string electron_configuration = "[Ne]3s2 3p3";
const long double atomic_weight = 30.973761998; // 30.973761998 u (g/mol)
const int atomic_number = 15; //15
const vector<long double> energy_levels = {2, 8, 5};
const long double density_STP = 1823.0; // 1823 kg/m^3
const long double melting_point = 44.15; // 44.15 C
const long double boiling_point = 280.5; // 280.5 C
const long double thermal_conductivity = .236; // .236 W/mK
const long double electric_conductivity = 10.0; // 10 MS/m
const long double resistivity = 1e-7; // 1e-7 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 769.7; // 769.7 J/kgK
const long double heat_vaporization = 12.4; // 12.4 kJ/mol
const long double heat_fusion = .64; // .64 kJ/mol
const long double ionization_1st = 10.487; // eV
static void display()
{
displayElementImg(getFileName(15));
}
} P;
/// <summary>
/// Sulfur is a chemical element with the symbol S and atomic number 16.
/// It is abundant, multivalent and nonmetallic. Under normal conditions,
/// sulfur atoms form cyclic octatomic molecules with a chemical formula S₈.
/// Elemental sulfur is a bright yellow, crystalline solid at room temperature
/// </summary>
const struct SULFUR
{
const int group = 16;
const string type = "Reactive Nonmetal";
const string crystal_type = "Orthorhombic";
const string electron_configuration = "[Ne]3s2 3p4";
const long double atomic_weight = 32.06; // 32.06 u (g/mol)
const int atomic_number = 16; // 16
const vector<long double> energy_levels = {2, 8, 6};
const long double density_STP = 1960.0; // 1960.0 kg/m^3
const long double melting_point = 115.21; // 115.21 C
const long double boiling_point = 444.72; // 444.72 C
const long double thermal_conductivity = .205; // .205 W/mK
const long double electric_conductivity = pow(1.0, -21); // 1e-21 MS/m
const long double resistivity = 1e15; // 1e15 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 705.0; // 705 J/kgK
const long double heat_vaporization = 9.8; // 9.8 kJ/mol
const long double heat_fusion = 1.73; // 1.73 kJ/mol
const long double ionization_1st = 10.36; // eV
static void display()
{
displayElementImg(getFileName(16));
}
} S;
/// <summary>
/// Chlorine is a chemical element with the symbol Cl and atomic number 17.
/// The second-lightest of the halogens, it appears between fluorine and
/// bromine in the periodic table and its properties are mostly intermediate
/// between them. Chlorine is a yellow-green gas at room temperature.
/// </summary>
const struct CHLORINE
{
const int group = 17;
const string type = "Reactive Nonmetal";
const string crystal_type = "Orthorhombic";
const string electron_configuration = "[Ne]3s2 3p5";
const long double atomic_weight = 35.45; // 35.45 u (g/mol)
const int atomic_number = 17; //17
const vector<long double> energy_levels = {2, 8, 7};
const long double density_STP = 3.214; // 3.214 kg/m^3
const long double melting_point = -101.5; // -101.5 C
const long double boiling_point = -34.040; // -34.040 C
const long double thermal_conductivity = .0089; // .0089 W/mK
const long double electric_conductivity = pow(1.0, -8.0); // 1e-8 MS/m
const long double resistivity = 100; // 100 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 478.2; // 478.2 J/kgK
const long double heat_vaporization = 10.2; // 10.2 kJ/mol
const long double heat_fusion = 3.2; // 3.2 kJ/mol
const long double ionization_1st = 12.968; // eV
static void display()
{
displayElementImg(getFileName(17));
}
} Cl;
/// <summary>
/// Argon is a chemical element with the symbol Ar and atomic number 18.
/// It is in group 18 of the periodic table and is a noble gas. Argon is
/// the third-most abundant gas in the Earth's atmosphere, at 0.934%
/// </summary>
const struct ARGON
{
const int group = 18;
const string type = "Noble Gas";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ne]3s2 3p6";
const long double atomic_weight = 39.948; // 39.948 u (g/mol)
const int atomic_number = 18; //18
const vector<long double> energy_levels = {2, 8, 8};
const long double density_STP = 1784.0; // 1784 kg/m^3
const long double melting_point = -189; // -189 C
const long double boiling_point = -186; // -186 C
const long double thermal_conductivity = .01772; // .01772 W/mK
const long double electric_conductivity = FP_NAN; // FP_NAN
const long double resistivity = FP_NAN; // FP_NAN
const long double heat_specific = 520.33; // 520.33 J/kgK
const long double heat_vaporization = 6.5; // 6.5 kJ/mol
const long double heat_fusion = 1.18; // 1.18 kJ/mol
const long double ionization_1st = 15.760; // eV
static void display()
{
displayElementImg(getFileName(18));
}
} Ar;
/// <summary>
/// Potassium is a chemical element with the symbol K and atomic number 19.
/// Potassium is a silvery-white metal that is soft enough to be cut with a
/// knife with little force. Potassium metal reacts rapidly with atmospheric
/// oxygen to form flaky white potassium peroxide in only seconds of exposure.
/// </summary>
const struct POTASSIUM
{
const int group = 1;
const string type = "Alkali Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[Ar]4s1";
const long double atomic_weight = 39.0983; // 39.0983 u (g/mol)
const int atomic_number = 19; // 19
const vector<long double> energy_levels = {2, 8, 8, 1};
const long double density_STP = 856; // 856 kg/m^3
const long double melting_point = 63.380; // 63.38C
const long double boiling_point = 758.9; // 758.9C
const long double thermal_conductivity = 100.0; // 100 W/mK
const long double electric_conductivity = 14.0; // 14 MS/m
const long double resistivity = 7.000000000002e-8; // 7.0e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 757; // 757 J/kgK
const long double heat_vaporization = 76.9; // 76.9 kJ/mol
const long double heat_fusion = 2.33; // 2.33kJ/mol
const long double ionization_1st = 4.341; // eV
static void display()
{
displayElementImg(getFileName(19));
}
} K;
/// <summary>
/// Calcium is a chemical element with the symbol Ca and atomic number 20.
/// As an alkaline earth metal, calcium is a reactive metal that forms a
/// dark oxide-nitride layer when exposed to air. ... It is the fifth most
/// abundant element in Earth's crust, and the third most abundant metal,
/// after iron and aluminium
/// </summary>
const struct CALCIUM
{
const int group = 2;
const string type = "Alkaline Earth Metal";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ar]4s2";
const long double atomic_weight = 40.078; // 40.078 u (g/mol)
const int atomic_number = 20; // 20
const vector<long double> energy_levels = {2, 8, 8, 2};
const long double density_STP = 1550.0; // 1550kg/m^3
const long double melting_point = 841.9; // 841.9C
const long double boiling_point = 1484; // 1484 C
const long double thermal_conductivity = 200.0; //200 W/mK
const long double electric_conductivity = 29; // 29 MS/m
const long double resistivity = 3.39999999e-8; // 3.4e-8 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 631; // 631 J/kgK
const long double heat_vaporization = 155.0; // 155 kJ/mol
const long double heat_fusion = 8.54; // 8.54 kJ/mol
const long double ionization_1st = 6.113; // eV
static void display()
{
displayElementImg(getFileName(20));
}
} Ca;
/// <summary>
/// Scandium is a chemical element with the symbol Sc and atomic number 21.
/// A silvery-white metallic d-block element, it has historically been
/// classified as a rare-earth element, together with yttrium and the
/// lanthanide.
/// </summary>
const struct SCANDIUM
{
const int group = 3;
const string type = "Transition Metal";
const string crystal_type = "Hexagonal Close Packed";
const string electron_configuration = "[Ar]3d1 4s2";
const long double atomic_weight = 44.955908; // 44.955908 u (g/mol)
const int atomic_number = 21; // 21
const vector<long double> energy_levels = {2, 8, 9, 2};
const long double density_STP = 2985.0; // 2985 kg/m^3
const long double melting_point = 1541.0; // 1541 C
const long double boiling_point = 2830.0; // 2830 C
const long double thermal_conductivity = 16; // 16W/mK
const long double electric_conductivity = 1.8; // 1.8 MS/m
const long double resistivity = 5.5e-7; // 5.5e-7 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 567.0; // 567 J/kgK
const long double heat_vaporization = 318.0; // 318 kJ/mol
const long double heat_fusion = 16.0; // 16 kJ/mol
const long double ionization_1st = 6.562; // eV
static void display()
{
displayElementImg(getFileName(21));
}
} Sc;
/// <summary>
/// Titanium is a chemical element with the symbol Ti and atomic number 22.
/// Its atomic weight is 47.867 measured in daltons. It is a lustrous
/// transition metal with a silver color, low density, and high strength.
/// Titanium is resistant to corrosion in sea water, aqua regia, and chlorine.
/// </summary>
const struct TITANIUM
{
const int group = 4;
const string type = "Transition Metal";
const string crystal_type = "Hexagonal Close Packed";
const string electron_configuration = "[Ar]3d2 4s2";
const long double atomic_weight = 47.867; // 47.867 u (g/mol)
const int atomic_number = 22; //22
// energy_levels must add u (g/mol)p to atomic_number
const vector<long double> energy_levels = {2, 8, 10, 2};
const long double density_STP = 4507.0; // 4507 kg/m^3
const long double melting_point = 1668.0; // 1668 C
const long double boiling_point = 3287.0; // 3287 C
const long double thermal_conductivity = 22.0; // 22.0 W/mK
const long double electric_conductivity = 2.5; // 2.5 MS/m
const long double resistivity = 4e-7; // 4e-7 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 520.0; // 525 J/kgK
const long double heat_vaporization = 425.0; // 425 kJ/mol
const long double heat_fusion = 18.7; // 18.7 kJ/mol
const long double ionization_1st = 6.828; // eV
static void display()
{
displayElementImg(getFileName(22));
}
} Ti;
/// <summary>
/// Vanadium is a chemical element with the symbol V and atomic number 23.
/// It is a hard, silvery-grey, malleable transition metal. The elemental
/// metal is rarely found in nature, but once isolated artificially, the
/// formation of an oxide layer somewhat stabilizes the free metal against
/// further oxidation.
/// </summary>
const struct VANADIUM
{
const int group = 5;
const string type = "Transition Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[Ar]3d3 4s2";
const long double atomic_weight = 50.9415; // 50.9415 u (g/mol)
const int atomic_number = 23; // 23
const vector<long double> energy_levels = {2, 8, 11, 2};
const long double density_STP = 6110; // kg/m^3
const long double melting_point = 1910; // 1910 C
const long double boiling_point = 3407; // 3407 C
const long double thermal_conductivity = 31; // 31 W/mK
const long double electric_conductivity = 5; // MS/m
const long double resistivity = 2e-7; // 2e-7 m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 489; // J/kgK
const long double heat_vaporization = 453; // kJ/mol
const long double heat_fusion = 22.8; // kJ/mol
const long double ionization_1st = 6.746; // eV
static void display()
{
displayElementImg(getFileName(23));
}
} V;
/// <summary>
/// Chromium is a chemical element with the symbol Cr and atomic number 24.
/// It is the first element in group 6. It is a steely-grey, lustrous, hard,
/// and brittle transition metal. Chromium is the main additive in stainless
/// steel, to which it adds anti-corrosive properties.
/// </summary>
const struct CHROMIUM
{
const int group = 6;
const string type = "Transition Metal";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ar]3d5 4s1";
const long double atomic_weight = 51.996; // u (g/mol)
const int atomic_number = 24; // 24
const vector<long double> energy_levels = {2, 8, 13, 1};
const long double density_STP = 7190; // kg/m^3
const long double melting_point = 1907; // C
const long double boiling_point = 2671; // C
const long double thermal_conductivity = 94; // W/mK
const long double electric_conductivity = 7.9; // MS/m
const long double resistivity = 1.3e-7; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 448; // J/kgK
const long double heat_vaporization = 339; // kJ/mol
const long double heat_fusion = 20.5; // kJ/mol
const long double ionization_1st = 6.767; // eV
static void display()
{
displayElementImg(getFileName(24));
}
} Cr;
/// <summary>
/// Manganese is a chemical element with the symbol Mn and atomic number 25.
/// It is not found as a free element in nature; it is often found in minerals
/// in combination with iron. Manganese is a transition metal with a
/// multifaceted array of industrial alloy u (g/mol)ses, particularly in
/// stainless steels.
/// </summary>
const struct MANGANESE
{
const int group = 7;
const string type = "Transition Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[Ar]3d5 4s2";
const long double atomic_weight = 54.938; // u (g/mol)
const int atomic_number = 25;
const vector<long double> energy_levels = {2, 8, 13, 2};
const long double density_STP = 7470; // kg/m^3
const long double melting_point = 1246; // C
const long double boiling_point = 2061; // C
const long double thermal_conductivity = 7.8; // W/mK
const long double electric_conductivity = .62; // MS/m
const long double resistivity = 1.6e-6; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 479; // J/kgK
const long double heat_vaporization = 220; // kJ/mol
const long double heat_fusion = 13.2; // kJ/mol
const long double ionization_1st = 7.434; // eV
static void display()
{
displayElementImg(getFileName(25));
}
} Mn;
/// <summary>
/// Iron is a chemical element with symbol Fe and atomic number 26.
/// It is a metal that belongs to the first transition series and group
/// 8 of the periodic table. It is, by mass, the most common element on
/// Earth, right in front of oxygen, forming much of Earth's outer and
/// inner core.
/// </summary>
const struct IRON
{
const int group = 8;
const string type = "Transition Metal";
const string crystal_type = "Body-Centered Cubic";
const string electron_configuration = "[Ar]3d6 4s2";
const long double atomic_weight = 55.845; // u (g/mol)
const int atomic_number = 26;
const vector<long double> energy_levels = {2, 8, 14, 2};
const long double density_STP = 7874; // kg/m^3
const long double melting_point = 1538; // C
const long double boiling_point = 2861; // C
const long double thermal_conductivity = 80; // W/mK
const long double electric_conductivity = 10; // MS/m
const long double resistivity = 9.7e-8; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 449; // J/kgK
const long double heat_vaporization = 347; // kJ/mol
const long double heat_fusion = 13.8; // kJ/mol
const long double ionization_1st = 7.903; // eV
static void display()
{
displayElementImg(getFileName(26));
}
} Fe;
/// <summary>
/// Cobalt is a chemical element with the symbol Co and atomic number 27.
/// Like nickel, cobalt is found in the Earth's crust only in a chemically
/// combined form, save for small deposits found in alloys of natural meteoric
/// iron. The free element, produced by reductive smelting, is a hard,
/// lustrous, silver-gray metal.
/// </summary>
const struct COBALT
{
const int group = 9;
const string type = "Transition Metal";
const string crystal_type = "Hexagonal close-packed";
const string electron_configuration = "[Ar]3d7 4s2";
const long double atomic_weight = 58.933; // u (g/mol)
const int atomic_number = 27;
const vector<long double> energy_levels = {2, 8, 15, 2};
const long double density_STP = 8900; // kg/m^3
const long double melting_point = 1495; // C
const long double boiling_point = 2900; // C
const long double thermal_conductivity = 100; // W/mK
const long double electric_conductivity = 17; // MS/m
const long double resistivity = 6e-8; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 421; // J/kgK
const long double heat_vaporization = 375; // kJ/mol
const long double heat_fusion = 16.2; // kJ/mol
const long double ionization_1st = 7.881; // eV
static void display()
{
displayElementImg(getFileName(27));
}
} Co;
/// <summary>
/// Nickel is a chemical element with the symbol Ni and atomic number 28.
/// It is a silvery-white lustrous metal with a slight golden tinge.
/// Nickel belongs to the transition metals and is hard and ductile.
/// </summary>
const struct NICKEL
{
const int group = 10;
const string type = "Transition Metal";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ar]3d8 4s2";
const long double atomic_weight = 58.693; // u (g/mol)
const int atomic_number = 28;
const vector<long double> energy_levels = {2, 8, 16, 2};
const long double density_STP = 8908.0; // kg/m^3
const long double melting_point = 1455; // C
const long double boiling_point = 2913; // C
const long double thermal_conductivity = 91; // W/mK
const long double electric_conductivity = 14; // MS/m
const long double resistivity = 7e-8; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 445; // J/kgK
const long double heat_vaporization = 378; // kJ/mol
const long double heat_fusion = 17.2; // kJ/mol
const long double ionization_1st = 7.641; // eV
static void display()
{
displayElementImg(getFileName(28));
}
} Ni;
/// <summary>
/// Copper is a chemical element with the symbol Cu and atomic number 29.
/// It is a soft, malleable, and ductile metal with very high thermal and
/// electrical conductivity. A freshly exposed surface of pure copper has
/// a pinkish-orange color.
/// </summary>
const struct COPPER
{
const int group = 11;
const string type = "Transition Metal";
const string crystal_type = "Face-Centered Cubic";
const string electron_configuration = "[Ar]3d10 4s1";
const long double atomic_weight = 63.546; // u (g/mol)
const int atomic_number = 29;
const vector<long double> energy_levels = {2, 8, 18, 1};
const long double density_STP = 8940.0; // kg/m^3
const long double melting_point = 1084.62; // C
const long double boiling_point = 2562; // C
const long double thermal_conductivity = 400; // W/mK
const long double electric_conductivity = 59; // MS/m
const long double resistivity = 1.7e-8; // m Ohm (m * kg*m^2*s^-3*A^-2)
const long double heat_specific = 384.4; // J/kgK
const long double heat_vaporization = 300; // kJ/mol
const long double heat_fusion = 13.1; // kJ/mol
const long double ionization_1st = 7.727; // eV
static void display()
{
displayElementImg(getFileName(29));
}
} Cu;
/// <summary>