Added nanoparticle volume fraction calculation.