Giter Site home page Giter Site logo

simonp0420 / metalsurfaceimpedance.jl Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 8 KB

Rapid, accurate calculation of rough metal surface impedance and effective conductivity in the Julia programming language

License: MIT License

Julia 100.00%
antennas computational-electromagnetics electromagnetics microwave-engineering

metalsurfaceimpedance.jl's Introduction

MetalSurfaceImpedance

Tests CodeCov
CI codecov.io

A small Julia package to calculate the surface impedance of rough metallic surfaces, useful in microwave engineering and computational electromagnetics. The complex surface impedance (assuming $e^{j\omega t}$ time variation) is computed using a fast rational function-like approximation of the Gradient model. The approximation is taken from 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.

Installation

You can obtain MetalSurfaceImpedance using Julia's Pkg REPL-mode (hitting ] as the first character of the command prompt):

(@v1.8) pkg> add MetalSurfaceImpedance

or with using Pkg; Pkg.add("MetalSurfaceImpedance").

Exported Functions

The package exports two functions: Zsurface and effective_conductivity:

Zsurface(f, σ₀, Rq, disttype=:normal)

Returns the complex surface impedance [Ω/□] for a rough (or smooth) metallic surface that is many skin depths thick. The input arguments are:

  • f: The frequency [Hz].
  • σ₀: The DC bulk conductivity of the metal [S/m].
  • Rq: The RMS surface roughness [m].
  • disttype: The type of probability distribution used to model the roughness. Choices are :normal (the default, used for the "oxide" side of printed conductors) and :rayleigh (used for the "foil" side of printed conductors).

effective_conductivity(f, σ₀, Rq, disttype=:normal)

Returns the effective conductivity [S/m] due to surface roughness. Input arguments are the same as those of Zsurface.

Usage examples

julia> using MetalSurfaceImpedance

julia> σ₀ = 58e6 # 58 MS/m (pure Copper)
5.8e7

julia> Zsurface(10e9, σ₀, 0, :rayleigh) # Smooth copper surface
0.02608950694933611 + 0.02608950694933611im

julia> Zsurface(10e9, σ₀, 1e-6, :rayleigh) # 1 μm RMS roughness copper surface
0.07482375631106834 + 0.3177602251933982im

julia> effective_conductivity(10e9, σ₀, 0.5e-6)
2.276056215432205e7

julia> ans/σ₀
0.3924234854193457

metalsurfaceimpedance.jl's People

Contributors

simonp0420 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

metalsurfaceimpedance.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.