This paper provides a theoretical and numerical approach to show existence, uniqueness, the determination of metalenses refracting radiation with energy patterns. The part uses ideas from optimal transport for solution we study implement damped Newton algorithm solve semi discrete problem. A detailed analysis is carried out near field one source refraction problem extensions far are also mentio...