Skip to content

braketcodes/electromagnetic_wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electromagnetic_wave

Simulation of an electromagnetic wave. Example animation

Required packages

  1. Numpy:
python -m pip install numpy
  1. matplotlib:
python -m pip install matplotlib
  1. tqdm
python -m pip install tqdm

Usage

  • Choose e.g.
k = 0.07 #abs(wave vector)
omega = 0.2 #angular frequency = 2*pi/T
dt = 0.1 #time step
max = 100 #maximum length of axis
amp = 100 #(scaled) amplitude of the waves

and let the script to the rest

Execution

The python script em_wave.py has to be executed in the main directory like

python -m em_wave

About

Simulation of an electromagnetic wave

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages