numerical solutions to laplace’s and schrodinger’s equation

59
Numerical Solutions to Laplace’s and Schrodinger’s Equation Shangyu Jiang

Upload: others

Post on 19-May-2022

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Numerical Solutions to Laplace’s and Schrodinger’s

EquationShangyu Jiang

Page 2: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Numerical Solutions to Laplace’s and Schrodinger’s

EquationShang

Page 3: Numerical Solutions to Laplace’s and Schrodinger’s Equation

IntroductionPDE’s are very hard to solve analytically. How do we solve them on a computer?

Page 4: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Gauss’s Law

Also,

Page 5: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Poisson’s Equation

Page 6: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Laplace’s Equation

Page 7: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 8: Numerical Solutions to Laplace’s and Schrodinger’s Equation

How to compute this numerically?Recall the Taylor expansion of V(x+h) around x:

Similarly,

Page 9: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Combining and adding, we get

Page 10: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 11: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 12: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Method of Relaxation(Jacobi)

Page 13: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Example: Griffiths Ex. 3.4• V = 0, y = 0

• V = 0, y = a

• V = V_0, x = b

• V = V_0, x = -b

Page 14: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 15: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 16: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 17: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 18: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Now that we have potential, we can calculate the electric field:

Page 19: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 20: Numerical Solutions to Laplace’s and Schrodinger’s Equation

But how do we know this is right?Analytical solution:

Pretty hard to solve!

Page 21: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Analytical Solution

Page 22: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Analytical Calculated

Page 23: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Analytical Calculated

Page 24: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 25: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Another: Griffiths 3.3• V = 0, y = 0

• V = 0, y = a

• V = V_0, x = 0

• V → 0, x → ∞

Analytical Solution: (also pretty hard!)

Page 26: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Analytical Calculated

Page 27: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Analytical Calculated

Page 28: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Cross-section of potential

Analytical Calculated

Page 29: Numerical Solutions to Laplace’s and Schrodinger’s Equation

We can also get crazy:

Page 30: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Another crazy function

Page 31: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 32: Numerical Solutions to Laplace’s and Schrodinger’s Equation

ImprovementsGauss-Seidel: Use updated values of nearest neighbors.

Page 33: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Overrelaxation

Page 34: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Multigrid

Page 35: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 36: Numerical Solutions to Laplace’s and Schrodinger’s Equation

This can be generalized to solve poisson’s equation:

Page 37: Numerical Solutions to Laplace’s and Schrodinger’s Equation

A single point charge

Page 38: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Cross-section of point charge potential

A plot of 1/r

Page 39: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 40: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Two positive charges close together

Page 41: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Two positive charges far apart

Page 42: Numerical Solutions to Laplace’s and Schrodinger’s Equation

A dipole

Page 43: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Dipole Electric Field

Page 44: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Schrodinger’s Equation

Page 45: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Schrodinger’s Equation

Let’s set m = ħ = 1:

Page 46: Numerical Solutions to Laplace’s and Schrodinger’s Equation

This is analogous to Poisson’s Equation:Compare

And

Page 47: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Suggests an analogous iterative method:

Page 48: Numerical Solutions to Laplace’s and Schrodinger’s Equation

We specify V. But what to do with E?We can use

By noting that

And

Page 49: Numerical Solutions to Laplace’s and Schrodinger’s Equation

The and are integrals that we can treat as sums.

Use the Taylor expansion we did before for the term:

d = 2

Page 50: Numerical Solutions to Laplace’s and Schrodinger’s Equation

An example: 2d infinite square well

Page 51: Numerical Solutions to Laplace’s and Schrodinger’s Equation
Page 52: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Calculated vs. Analytical

Page 53: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Some excited states

First excited, Nx = 1, Ny = 2

Nx = 2, Ny = 3

Page 54: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Other examples?https://ide.c9.io/fordhamdining/seminar-presentation

Page 55: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Differences between Laplace and Schrodinger Laplace

• V is known on boundaries

• Want to find V(x,y)

• Convergence to a single, unique solution

• Initial guess does not matter (for convergence)

Schrodinger

• V is known everywhere

• Want to find ψ and E

• Multiple solutions (excited states)

• Initial guess matters

Page 56: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Summary• The Laplace, Poisson, and Schrödinger equations can be discretized using a

Taylor Expansion

• This discretization suggests an iterative numerical method that can find solutions to these equations.

• Computation time scales quickly with number of grid points, so it is important to find optimization techniques.

Page 57: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Look at my code (optional)https://github.com/shangprograms

More about me: (also optional)

http://www.columbia.edu/~sj2850/

Page 58: Numerical Solutions to Laplace’s and Schrodinger’s Equation

Thank you for watching!

Page 59: Numerical Solutions to Laplace’s and Schrodinger’s Equation

SourcesD. Griffiths. Introduction to Electrodynamics. 2013.

V. Igorevich. Lectures on partial differential equations. 2004.

D. Robertson. Relaxation Methods for Partial Differential Equations: Applications to Electrostatics. 2010.

D. Schroeder. The variational-relaxation algorithm for finding quantum bound states. 2017.