Numerical analysis of metal targets in the terahertz and infrared