Density function theory calculations