Simulation of electromagnetic wave hitting an interface with a different medium.
Project description
em-waves
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()
Demo installation and usage
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0b1168fefed30a911dc4286dab18d6f2632ecd1197e37a9c27466e37400c12f |
|
MD5 | 42f74303c20862d69cbca590677f033c |
|
BLAKE2b-256 | b2229508fa6db232ff6547d49c9003affcf7c02c9ca81f19cb18d7ec2161d932 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf5bd229a744d22990fa4c970efe411b22431640281de4fb18b7bc41ba161aa |
|
MD5 | f0f59c5ce8a4b4e5c95c6c839ba0a8a2 |
|
BLAKE2b-256 | 0a1b4c43a460898ab0441bcdeb5eaaa59baf56472b1b62eefff1c208dedf4123 |