andersle.no#
I'm an associate professor at the Department of Chemistry and Biomedical Science, NTNU, and on this page, I write about things that interest me (work-related and other personal projects). I like programming and visualising data (especially in the context of chemistry), so many of the posts are focused on that!
Recent updates#
Calculating the pH and titration curves of polyprotic acids
Calculating the pH of a polyprotic acid means solving a polynomial equation of a high degree. It is easier to select the pH and calculate the concentration (or the volume of base in a titration) that gives this pH.
Calculating the pH in weak acids
I recently had to go over some details on pH-calculations in weak acids. How can we calculate the pH exactly (with concentrations) and when can we not rely on the "standard" solution method we learn in general chemistry? Let us find out.
Predicting solubilities with molecular descriptors
This is an example of using gradient boosting (CatBoost) for predicting solubilities of molecules using molecular descriptors from RDKit.
Visualising molecular orbitals
This is an example of how one can calculate molecular orbitals (with pyscf) and visualise them.
Highlighting fingerprints with RDKit
RDKit can calculate molecular fingerprints and depict the active bits. Here is an example that extends the bit-drawing by RDKit to also show the full molecule.
Visualising molecules with RDKit and py3Dmol
RDKit and py3Dmol are very useful for working with molecules. Here is a short example of how these libraries can be used to visualise the 3D structure of molecules.