views:

77

answers:

4

I am wondering if there is an open source scientific library for chemistry and/or physics for C++ (or maybe C)?

I am NOT looking for simulation models, visualization, 3-d modeling.

I am just looking for a basic toolbox that would have, for example: various constants such as Ideal Gas Constant, Avogadro constant, periodic table of the elements values; molecular weight calculation; maybe basic functions implementing equations for stoichiometry, gas laws, thermal dynamics, kinetics.

Chemistry/Physics 101 kind of stuff.

I have found on SourceForge:

  • Christoph Steinbeck's The Chemical Development Kit (Java) on SourceForge.
  • NIST-const
A: 

I really like this book for it:

http://www.amazon.com/Physics-Game-Programmers-Grant-Palmer/dp/159059472X

I has the physics formulas in there and the source code is available online:

http://apress.com/book/view/159059472X

I haven't seen much in the way of chemistry. Physics is more popular because it has direct affect on gaming, of course. :-)

Update: a few on chemistry:

eruciform
He is really asking more for the Chemistry stuff though
BlueRaja - Danny Pflughoeft
found a few chem ones
eruciform
+2  A: 

I would take a look at the GNU Scientific Library:

http://www.gnu.org/software/gsl/

It should have most of the physical constants you're looking for. As far as the chemistry related stuff, I don't know of any basic packages that do all of those calculations right out of the box.

Update: I forgot about another project that would have all of the periodic table stuff (and probably more):

http://openbabel.org

specifically check out:

http://openbabel.org/api/2.2.0/classOpenBabel_1_1OBElementTable.shtml#_details

Josh
A: 

Since you excluded simulations, PyQuante probably isn't what you're looking for, but you might find kinpy and thermopy interesting.

Klaus Warzecha
A: 

Kalzium, part of the KDE tools. Periodic table plus (based on the screenshots) an equation solver and more.

Andrew Dalke