andersle.no#

logo

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#

November 29, 2026 /

Calculating the pH and titration curves of polyprotic acids

Category: chemistry

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 and titration curves of polyprotic acids
August 02, 2022 /

Calculating the pH in weak acids

Category: chemistry

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.

Calculating the pH in weak acids
July 28, 2022 /

Predicting solubilities with molecular descriptors

Category: chemometrics

This is an example of using gradient boosting (CatBoost) for predicting solubilities of molecules using molecular descriptors from RDKit.

Predicting solubilities with molecular descriptors
July 21, 2022 /

Visualising molecular orbitals

Category: chemistry

This is an example of how one can calculate molecular orbitals (with pyscf) and visualise them.

Visualising molecular orbitals
July 21, 2022 /

Highlighting fingerprints with RDKit

Category: chemistry

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.

Highlighting fingerprints with RDKit
July 18, 2022 /

Visualising molecules with RDKit and py3Dmol

Category: chemistry

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.

Visualising molecules with RDKit and py3Dmol

All posts →