Added the core function to assign new power densities