Directionally Controlled Thermal And Wave Transport By Phonons And Photons In Nanoporous Structures