Nanoscale thermal transport: Theoretical method and application