Classical and Quantum Density Functional Theory for Materials Science