Skip to content

A python script I wrote to breeze through my university chemistry course.

Notifications You must be signed in to change notification settings

toastmod/avagadro-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

avagadro-calc

A python script i wrote to breeze through my university chemistry course.

Note: since I finished my chem course this repo is left in it's unfinished state.
So feel free to contribute if you find yourself adding to it!

installation

Please install periodictable before use.

pip install periodictable

This will require you to use python 3.7 or earlier as 3.8 dropped support for this library.

If you want to use the script with 3.8 you will have to delete the lines up to the comment that says # CUT HERE

This means you cant use periodic table features.

usage

While the interface is pretty straight forward, there are a few hidden tricks.

using *10^

When entering a number, you can end it with "e" to prompt a "*10^" entry.

This will (obviously) multiply the number by 10 to number entered.

example:

[#]: 3
===================================
atoms: 7e
*10^6
moles: 1.1624045167718366e-17

using periodic table data

Currently only mass and atomic number are available, but if you know how to use the periodictable you can add the other data to the dictionary generator in the header of the script.

You can enter a mass number like this (in this case Helium):

He:mass

or an atomic number like this:

He:num

in the 0 command, you can output the name of an element:

[$]>>He:name
helium

using STP data

STP data can be accessed the same format as periodic table entries.

# these are the entries...
{"STP":{"Pkpa":101.321,"Patm":1,"Tk":273.15,"Tf":32,"Tc":0,"molV":22.4,"molV1bar":22.7}}

# so for example...
[$]>>STP:Patm
1.0

About

A python script I wrote to breeze through my university chemistry course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages