The calculation of lattice thermal conductivity: an alternative method