https://github.com/urbanij/em_waves
em waves simulations
https://github.com/urbanij/em_waves
electromagnetic-simulation electromagnetic-wave physics waves
Last synced: 5 months ago
JSON representation
em waves simulations
- Host: GitHub
- URL: https://github.com/urbanij/em_waves
- Owner: urbanij
- License: mit
- Created: 2020-10-17T10:47:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T10:34:33.000Z (over 5 years ago)
- Last Synced: 2025-12-25T01:00:12.064Z (6 months ago)
- Topics: electromagnetic-simulation, electromagnetic-wave, physics, waves
- Language: Python
- Homepage: https://pypi.org/project/em-waves/
- Size: 7.81 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
## em-waves
[](https://pepy.tech/project/em-waves)
### Installation
`pip install em_waves`
### Usage
```python
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
[](https://asciinema.org/a/0nIiOrAbAfusd1GOhGW1ZSTuO)