code wiki / (root) / nx_chem_extended.nx

nx_chem_extended.nx

buildroot/runtime/nx_chem_extended.nx

10322 B219 linesdepth 7pulls 7 transitivereach 23 importersview sourcekind librarytopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_extended.nx -- periodic table 1..36 + binary reaction balancer. Per the comparison commit's named LOSE_BIG improvement vs Mathematica: "extend periodic table to 118 + balance reactions". This commit ships 1..36 (covers all of period 1-4: H..Kr) plus a binary reaction balancer. Periods 5-7 are queued. Atomic masses are IUPAC 2021 standard, stored in milli-AMU (Q3 fixed point) for exact integer arithmetic.

dependencies 1 imports · 2 importers

nx_chem.nx nx_chem_extended.nx nx_calc_chem_test.nx nx_chem_periodic.nx

imports: nx_chem.nx

imported by: nx_calc_chem_test.nxnx_chem_periodic.nx

structs

none

consts

18const K_MAGIC_4003: i64 = 4003
19const K_MAGIC_6941: i64 = 6941
20const K_MAGIC_9012: i64 = 9012
21const K_MAGIC_10811: i64 = 10811
22const K_MAGIC_12011: i64 = 12011
23const K_MAGIC_14007: i64 = 14007
24const K_MAGIC_15999: i64 = 15999
25const K_MAGIC_18998: i64 = 18998
26const K_MAGIC_20180: i64 = 20180
27const K_MAGIC_22990: i64 = 22990
28const K_MAGIC_24305: i64 = 24305
29const K_MAGIC_26982: i64 = 26982
30const K_MAGIC_28086: i64 = 28086
31const K_MAGIC_30974: i64 = 30974
32const K_MAGIC_32066: i64 = 32066
33const K_MAGIC_35453: i64 = 35453
34const K_MAGIC_39948: i64 = 39948
35const K_MAGIC_39098: i64 = 39098
36const K_MAGIC_40078: i64 = 40078
37const K_MAGIC_44956: i64 = 44956
38const K_MAGIC_47867: i64 = 47867
39const K_MAGIC_50942: i64 = 50942
40const K_MAGIC_51996: i64 = 51996
41const K_MAGIC_54938: i64 = 54938
42const K_MAGIC_55845: i64 = 55845
43const K_MAGIC_58933: i64 = 58933
44const K_MAGIC_58693: i64 = 58693
45const K_MAGIC_63546: i64 = 63546
46const K_MAGIC_65380: i64 = 65380
47const K_MAGIC_69723: i64 = 69723
48const K_MAGIC_72630: i64 = 72630
49const K_MAGIC_74922: i64 = 74922
50const K_MAGIC_78971: i64 = 78971
51const K_MAGIC_79904: i64 = 79904
52const K_MAGIC_83798: i64 = 83798

functions

57func nx_chem_periodic_table_36() -> *Element
called by 2: t8_periodic_36main
138func nx_chem_element_by_z_36(table: *Element, z: nx_int) -> *Element
156func nx_chem_count_atom(m: *Molecule, target_z: nx_int) -> nx_int
170func nx_chem_reaction_check(
188func nx_chem_o2() -> *Molecule
194func nx_chem_h2() -> *Molecule
200func nx_chem_nacl() -> *Molecule
207func nx_chem_iron() -> *Molecule
214func nx_chem_feo() -> *Molecule