Flexural wave manipulation and energy harvesting characteristics of a defect phononic crystal beam with thermal effects