A command-line tool to parse chemical formulas, draw the periodic table, and display electron configurations.
- Parse chemical formulas and display relevant information, such as molecular mass, charge, and state.
- Draw the periodic table.
- Display electron configurations of the elements in the formula.
atomic [options] <formula>
-pt
: Draw the periodic table with the elements involved in the provided formula.-e
: Show electron configurations of the elements in the provided formula.
-
Parse a formula and show details:
atomic NaCl
Output:
Molecule : NaCl Simplify : NaCl Name : Sodium Chloride Mass : 58.443000 Charge : 0
-
Draw the periodic table and show the electron configurations:
atomic -pt -e C7H5N3O7
- Elements data is loaded from
data/elements.csv
. - Molecules data is loaded from
data/molecules.csv
.
- Go 1.16 or later
-
Clone the repository:
git clone https://github.com/mahdin-hc/atomic.git
-
Build the executable:
go build -o atomic.exe
-
Run the tool:
atomic.exe -e -pt NaCl