Skip to content

Simple animations of photon scattering processes (not a model).

License

Notifications You must be signed in to change notification settings

pjasimoes/scattering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scattering

Animations of photon scattering: Thomson, Rayleight and Resonant scattering processes. Note: this is not a simulation code!

Version 0.1: written. P. Simoes, 14 Feb 2018 Version 0.2: Python 3 version, fixed get_colormap() indexing P. Simoes, 18 May 2022 paulo@craam.mackenzie.br

Written in Python. Requires matplotlib, scipy, numpy.

Call it via terminal: python scat.py

usage: scat.py [-h] [-d DENSITY] [-c CHOICE] [-s SCALE] [-l LENGTH] [-t TIME] [-p PSIZE] [-v VIDEO] [-r RATE]

optional arguments: -h, --help show this help message and exit -d DENSITY, --density DENSITY number of particles (default=400) -c CHOICE, --choice CHOICE Scattering process: CHOICE = 0 Resonant, CHOICE = 1 Rayleight, CHOICE = 2 Thomson (default: 0) -s SCALE, --scale SCALE scale factor for the cross-section radius (default=1) -l LENGTH, --length LENGTH length of the scattering region (0 < L < 1) (default=0.7) -t TIME, --time TIME time duration of the animation, in seconds (default=16) -p PSIZE, --psize PSIZE scale factor for display photon size (default=1) -v VIDEO, --video VIDEO set filename of mp4 video -r RATE, --rate RATE rate of new photons per frame (default=5)

About

Simple animations of photon scattering processes (not a model).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages