Skip to content

urbanij/em_waves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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