Skip to main content

Simulation of electromagnetic wave hitting an interface with a different medium.

Project description

em-waves

Downloads

Installation

pip install em_waves

Usage

from em_waves import Medium, Sine, Gaussian, Rect

f_0     = 1.8e9 # [Hz]
E_0     = 10.0  # [V/m]

free_space = Medium(ε_r=1, μ_r=1, σ=0)
medium2 =    Medium(ε_r=5, μ_r=3, σ=.04)

wave = Sine(f=f_0, A=E_0)
# wave = Gaussian(rms=1.3)
# wave = Rect(width=4)

wave.add_mediums(medium1=free_space, medium2=medium2)
wave.print_data()
wave.show()

Alt Text

Alt Text

Alt Text

Demo installation and usage

asciicast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

em_waves-0.0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

em_waves-0.0.2-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page