# \[ANN\] MetalSurfaceImpedance: Rapid, accurate calculation of rough metal surface impedance

**URL:** <https://discourse.julialang.org/t/ann-metalsurfaceimpedance-rapid-accurate-calculation-of-rough-metal-surface-impedance/90662>\
**Category:** Package Announcements\
**Tags:** package, electromagnetics, microwave\
**Created:** [November 22, 2022, 6:29pm UTC](https://discourse.julialang.org/t/ann-metalsurfaceimpedance-rapid-accurate-calculation-of-rough-metal-surface-impedance/90662 "2022-11-22T18:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterSimon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petersimon/32/25193_2.png) [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Post date:** [November 22, 2022, 6:29pm UTC](https://discourse.julialang.org/t/ann-metalsurfaceimpedance-rapid-accurate-calculation-of-rough-metal-surface-impedance/90662/1 "2022-11-22T18:29:19Z")

</div>

In computational electromagnetics, when modeling structures that include finitely conducting metal bodies that are more than several skin depths deep, one often uses a surface impedance boundary condition at the metal surface instead of trying to rigorously compute the rapidly decaying fields within the metal. This small package [MetalSurfaceImpedance](https://github.com/simonp0420/MetalSurfaceImpedance.jl) implements the approximate formulas from a recent paper: D. N. Grujić, “Simple and Accurate Approximation of Rough Conductor Surface Impedance,” IEEE Trans. Microwave Theory Tech., vol. 70, no. 4, pp. 2053-2059, April 2022, for computing surface impedance and effective conductivity. As reported in the reference, these formulas agree with rigorous solutions of the second order differential equation to a relative accuracy better than 0.001 from 10^{-8} Hz to 10^{12} Hz. The Julia implementation returns a result in about 500 nsec on my machine.
