List of programs
We have built many programs in this book. The table below summarizes these programs and dependencies. Standard libraries such as Matplotlib (2D), NumPy, and SciPy are omitted. Library abbreviations are: fft – fast Fourier transform (fft.py , Chapter 5 ); fem – finite element method (fem.py , Chapter 9 ); fileio – file input/output (fileio.py , Chapter 9 ); itg – numerical integration (integral.py , Chapter 8 ); ode – ordinary differential equation (ode.py , Chapter 2 ); rtf – root finders (rootfinder.py , Chapter 3 ); and vpm – VPython Modules (vpm.py , Chapter 6 ). In addition, we also note the use of 3D and animation libraries: Axes3D – Matplotlib 3D plotting; am – Matplotlib animation; and vp – VPython.
Page numbers with the “S:” prefix are entries from the Digital Online Companion.
Program
Description
Dependence
3body, 206
Three-body motion
ode, rtf, vp
balltoss, 84
Ideal projectile motion
vp
baseball, 132
Flight of baseball
ode, vp
bdipole, 391
Magnetic dipole field
vp
bem, 522
Basis expansion method
itg
bisect, 130
Bisection root finder
boltzmann, 627
Boltzmann distribution
bouncing_ball, 40
Bouncing ball
vp
brownian, 559
Brownian motion
am
coupled, S:112
Quantum transitions
ode, vp, vpm
ctmc, S:263
Classical ion-atom collisions
ode, rtf. vp, vpm
deflect, 679
Deflection function
itg, rtf
dipole, 394
Dipole distribution
Axes3D
earth, 136
Planetary motion
ode, vp
edipole, 393
Electric dipole radiation
vp
eigh, 285
Eigenvalue problem
einsteinsolid, 566
Einstein solid class
entropy, 571
Entropy of an Einstein solid
equishare, 626
Thermal energy sharing
am
fem, 525
FEM library
fft, S:44
Fast Fourier transform
fractal, 269
Mandelbrot fractal
freefall_euler, 57
Free fall with modular Euler
freefall_plot, 44
Free fall with inline Euler
gauss_elim, S:57
Gauss elimination
gaussxw, 457
Gauss abscissa and weight
hockey, 381
Electric field hockey
ode, vp
hydrogen, 523
Atomic structure
rtg
integral, 456
Numerical integration
ising1d, 627
Ising model
lambertw, 101
Lambert W function
laplace, 382
Relaxation solutions
Axes3D, vp
laplacefem, 386
Laplace equation by FEM
Axes3D
laplacerbf, 389
Meshfree method for PDEs
leapfrog, 65
Leapfrog method
leapfrog_tt, 151
Time-transformed leapfrog
leapfrog_ttN, S:224
N -body transformed leapfrog
life, S:149
Game of life
logisdiff, 265
Difference of logistic map
logisticmap, 216
Logistic map iterates
longwire, 393
Magnetic fields of a long wire
vp
lyapunov, 265
Lyapunov exponent
mcint, 561
Monte Carlo integration
md, 629
Molecular dynamics
ode, vp, vpm
mdf2py, S:192
Molecular dynamics F2Py
ode, nbodyf
mercury, 200
Precession of Mercury
ode, vp
meshhex, 529
FEM meshes of a hexagon
fileio
metropolis2, 589
Ising model in 2D
motion, 10
1D motion and graphing
nbody, S:266
N -body Coulomb interaction
nbodyf, S:189
N -body interaction, Fortran
newton, 131
Newton's root finder
nns, S:135
Energy spectrum unfolding
nonlindro, 266
Nonlinear pendulum
ode
odewrap, 80
SciPy ODE wrapper
perioddbl, 222
Bifurcation diagram
plane, 395
Plane electromagnetic wave
vp, vpm
poincare, 267
Poincaré map
ode
projectile, 91
Motion with linear drag
qmdot, 526
Quantum dot
Axes3D, fem, fileio
qmfem, 519
Eigenenergies by FEM
qmplane, 450
Quantum plane wave
am
qmscatt, 681
Central field scattering
ode
qmshoot, 518
Quantum shooting method
ode, rtf
qmwaves2d, 454
Quantum waves in 2D
vp, vpm
r3body, 211
Restricted 3-body motion
ode, vp
r3body_veff, 209
Lagrange points
Axes3D
range, 97
Range with linear drag
rtf
relax, S:59
Relaxation of a string
Axes3D, ode
relaxtd, S:187
Thermal relaxation
rk2, 51
Runge-Kutta order 2
rk4, 53
Runge-Kutta order 4
rk45n, 79
Runge-Kutta-Felhberg
rk4n, 79
Nonvector RK4
rvfit, 202
Radial velocity modeling
sdlf, 451
Quantum wavepacket motion
ode, vp, vpm
sho, 272
Simple harmonic oscillator
vp
sho_lf, 66
Oscillator with leapfrog
ode
shoot, 120
Shooting method
ode, rtf
slinky, S:60
Motion of a slinky
ode, vp, vpm
splitop, 452
Quantum free fall
vp, vpm
squarewell, 516
Visualizing eigenstates
ode, vp, vpm
stringfdm, 290
Displacement of a string
stringfun, 326
Fundamental frequencies
tablecloth, 328
Falling tablecloth
ode, vp, vpm
transport, S:188
Particle transport
triatom, 326
Triatomic vibration
vp
tripwf, 528
Triangular mesh plots
fileio
vpm, S:61
VPython modules
vp
walk2d, 558
Random walk in 2D
waves, 305
Waves on a string
vp, vpm
waves2d, 327
Waves on a membrane
vp, vpm
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.