Temperature dependence of the microscopic structure and density