Docsity

Python Sim of Waves in 1D Arrays: Propagation, Reflection, Transmission, Lab Reports of Physics

Partial preview of the text

Download Python Sim of Waves in 1D Arrays: Propagation, Reflection, Transmission and more Lab Reports Physics in PDF only on Docsity!

Lec

  • More waves - array based python simula- tion
  • Propagation
  • Reflection and transmission at boundaries
  • Wave equation in 1D
  • General wave equations

Summary of lab 4

  • Seen that a string of masses (eg atoms/molecules etc) arranged in a regular lattice undergoes coupled (approx) harmonic oscillations.
  • These manifest themselves as waves. Non- local, collective motions of constituents which transport energy from place to place.
  • Waves occur in very many places in physics
    • elastic media, acoustics, fluids, optics and light, quantum mechanics ...
  • Fundamental quantum particles represented by waves or fields rather than localized par- ticles

Change in mass

  • Suppose masses on RHS are 4 times as heavy as those to left.
  • Simulates propagation of wave between two different media
  • See reflection and transmission at interface
  • Wave on right travels at different speed. See lab 4 also.

Simple solutions - normal

modes

Can find simple non-propagating solutions also

  • standing waves or normal modes. Find by looking for harmonic variation each mass i with same frequency

displacement ∼ sin (ωt)

Also assume displacement ∼ sin (ki) Find that

ω^2 = 4 k m

sin^2 (kn/2)

and

kn = πn N − 1

, n = 1,... N − 2

Periodic Boundary Conditions

  • Popular choice. “No boundary conditions”. In 1D just place masses on circle not a straight line.
  • No atom preferred. No edge effects.
  • In code need to handle eg. x[i+1]=? for i=N-1. On circle this should be 0. Can accomplish this if: i+1-> (i+1)%N
  • Similarly: i-1-> (i-1+N)%N
  • Now pulses propagate without reflection.

Wave equation

Equation of motion of mass i:

mi dvi dt

= k(yi+1 + yi− 1 − 2 yi)

RHS can be rewritten:

(ka^2 )

a

 

( yi+1 − yi

)

a

( yi − yi− 1 )

a

 

a is separation between masses. Recognize RHS is change in discrete derivative at x i.e

mi d^2 y dt^2

∼ ka^2 d^2 y dx^2 Letting mi/a = ρ(x) density of mass per unit length and ka the tension T in the medium we find an equation

∂^2 y ∂t^2

T

ρ

∂^2 y ∂x^2

1D Wave equation. Partial differential equa- tion

Why two pulses?

Consider gaussian pulse: Guess solution

y = Ae−

(x−vt)^2 σ^2

describe pulse travelling to right. But is this compatible with initial v = 0? no. Need pulse to be represented by two equal pulses travelling in opposite directions with same speed. For t > 0 separate as we see and propagate independently.

More waves

  • We can have waves propagating in 2 or 3 dimensions. Equation similar eg in 2D 1 v^2

∂^2 y ∂t^2

∂^2 y ∂x^2

∂^2 y ∂z^2

  • Damping effects may be included using a γ ∂y ∂t term
  • Nonlinear effects and stiffening effects may also be important
  • In these cases numerical solution is still ef- fective.