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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file em_waves-0.0.2.tar.gz.

File metadata

  • Download URL: em_waves-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.48.0 CPython/3.8.1

File hashes

Hashes for em_waves-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e0b1168fefed30a911dc4286dab18d6f2632ecd1197e37a9c27466e37400c12f
MD5 42f74303c20862d69cbca590677f033c
BLAKE2b-256 b2229508fa6db232ff6547d49c9003affcf7c02c9ca81f19cb18d7ec2161d932

See more details on using hashes here.

File details

Details for the file em_waves-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: em_waves-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.48.0 CPython/3.8.1

File hashes

Hashes for em_waves-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8bf5bd229a744d22990fa4c970efe411b22431640281de4fb18b7bc41ba161aa
MD5 f0f59c5ce8a4b4e5c95c6c839ba0a8a2
BLAKE2b-256 0a1b4c43a460898ab0441bcdeb5eaaa59baf56472b1b62eefff1c208dedf4123

See more details on using hashes here.

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