Analyze machinery and structures involved in crimes or accidents is called

Forensic engineering.