Scientific Computing Chad Sockwell Florida State University - - PowerPoint PPT Presentation

scientific computing
SMART_READER_LITE
LIVE PREVIEW

Scientific Computing Chad Sockwell Florida State University - - PowerPoint PPT Presentation

Scientific Computing Chad Sockwell Florida State University kcs12j@my.fsu.edu October 27, 2015 Chad Sockwell (FSU) Scientific Computing October 27, 2015 1 / 73 Main Points What is Scientific Computing (SC)? Agreement Between SC and


slide-1
SLIDE 1

Scientific Computing

Chad Sockwell

Florida State University kcs12j@my.fsu.edu

October 27, 2015

Chad Sockwell (FSU) Scientific Computing October 27, 2015 1 / 73

slide-2
SLIDE 2

Main Points

What is Scientific Computing (SC)? Agreement Between SC and Experiment SC complementing Experiments SC complementing Theory The SC department and program

Chad Sockwell (FSU) Scientific Computing October 27, 2015 2 / 73

slide-3
SLIDE 3

What is Scientific Computing?

Scientific Computing (SC) or Computational Science is an Interdisciplinary Science. Combining Mathematics, Computer Science, Engineering, and Natural Sciences to solve problems. Scientific Computing = Computer Science

Chad Sockwell (FSU) Scientific Computing October 27, 2015 3 / 73

slide-4
SLIDE 4

How is it used?

Typically Computational Scientist fall into two groups. Using algorithms and Improving / Implementing algorithms. The second group shares the true spirit of Scientific Computing. Scientific Computing is aimed at finding ways to improve problem solving and solving new problems

Chad Sockwell (FSU) Scientific Computing October 27, 2015 4 / 73

slide-5
SLIDE 5

How is it used? (Cont.)

Physical phenomena can be modeled by numerical algorithms to take advantage of what computers do best. Some of these advantages are seen in:

Complicated domains and non-linearities in PDE’s. Large statical analysis or Monte Carlo methods. Large matrix equations or eigenvalue problems

Chad Sockwell (FSU) Scientific Computing October 27, 2015 5 / 73

slide-6
SLIDE 6

Why Should You Care?

Computers are becoming more powerful. FSU’s RCC HPC has 403 nodes, 6464 CPU cores and 109.5 Tflops (1012 operations per second). Symbiotic relation with Science. Numerical simulations can complement experiments. Complementing complicated theories.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 6 / 73

slide-7
SLIDE 7

SC Agreeing With Experiment

Verification and Validation are critical Some may say nothing new was done. Some also are suspect of the numerical error associated with the algorithm, but this is were verification comes in. Experimental uncertainty and numerical error

Chad Sockwell (FSU) Scientific Computing October 27, 2015 7 / 73

slide-8
SLIDE 8

Some examples

Qiang Du, shows that his algorithm for the Gross-Pitaevskii

  • equations. This a BEC of an alkali-metal gas. The voctices are

nucleated by laser stirring and rotating magnetic traps. His results for the vortices in the substance are shown in (a). Experimental results from MIT are shown in (b).

Chad Sockwell (FSU) Scientific Computing October 27, 2015 8 / 73

slide-9
SLIDE 9

Gravitational Lensing

Bin Chen of FSU’s RCC uses his Linearized backward gravitational lensing code to reproduce a scene from a movie. All though the movie is pretty graphic art, Bin’s algorithm reproduces a similar realistic simulation.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 9 / 73

slide-10
SLIDE 10

Gravitational Lensing

Chad Sockwell (FSU) Scientific Computing October 27, 2015 10 / 73

slide-11
SLIDE 11

Omega Laser and Super Nova

The experiment (left) Simulates shock in a Super Nova. The simulation (right) tries to replicate it but is slightly off.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 11 / 73

slide-12
SLIDE 12

Omega Laser and Super Nova

Chad Sockwell (FSU) Scientific Computing October 27, 2015 12 / 73

slide-13
SLIDE 13

Experimental setup

Channel has dimensions 5.2mm × 45mm × 0.1mm Water injected at 0.01mm3/s Re = 0.005 Particle Image Velocimetry (PIV) applied to 8 million neutrally buoyant spherical particles (diameter = 1µm)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 13 / 73

slide-14
SLIDE 14

Velocity Field

Chad Sockwell (FSU) Scientific Computing October 27, 2015 14 / 73

slide-15
SLIDE 15

PDF of v

  • 0.05

0.05 0.1 0.15 0.2 10−2 10−1 100 101 102 Longitudinal Velocity PDF Numerical Experimental

Chad Sockwell (FSU) Scientific Computing October 27, 2015 15 / 73

slide-16
SLIDE 16

PDF of v

  • 0.15
  • 0.1
  • 0.05

0.05 0.1 0.15 10−2 10−1 100 101 102 Transverse Velocity PDF Numerical Experimental

Chad Sockwell (FSU) Scientific Computing October 27, 2015 16 / 73

slide-17
SLIDE 17

Mixing

Chad Sockwell (FSU) Scientific Computing October 27, 2015 17 / 73

slide-18
SLIDE 18

SC Complementing Experiment

After verification and validation, we can simulate experiments SC be can used where experiments are too expensive or not feasible. Simulations can used to filter through experiential situations

Chad Sockwell (FSU) Scientific Computing October 27, 2015 18 / 73

slide-19
SLIDE 19

Projectile Impact

FSU’s Dr. Shanbhag and Steve Henke, developed a simulation of a projectile crashing into a brittle material. The aim of the study was to show how the setup of the numerical grid affects the results.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 19 / 73

slide-20
SLIDE 20

Projectile Impact

This Simulation could used to test materials ballistic strength without destroying precious materials

Chad Sockwell (FSU) Scientific Computing October 27, 2015 20 / 73

slide-21
SLIDE 21

Projectile impact

Chad Sockwell (FSU) Scientific Computing October 27, 2015 21 / 73

slide-22
SLIDE 22

Jet crash

Another example of precious materials is a billion dollar fighter jet.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 22 / 73

slide-23
SLIDE 23

SC Complementing Theory.

Solving theories analytically can call for crafty approximations Simple domains, dimensional reduction, and asymptotic behavior Numerical methods on computers can crank out complicated calculations SC aims at improving algorithms that can handle complicated models These algorithms can used to make through theoretical predictions.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 23 / 73

slide-24
SLIDE 24

Ginzburg Landau Equations for Superconductivity

Γ

∂ψ

∂t + i(Jy σ )κψ

  • +
  • |ψ|2 − 1
  • ψ + ( i

κ∇ − A)2ψ = 0 ∇ × H + J = σ∂A ∂t + ∇ × ∇ × A + i 2κ (ψ∗∇ψ − ψ∇ψ∗) + A|ψ|2 where σ∇φ = J A · n = 0 , i κµ ∇ψµ · n = 0 , (∇ × A) × n = (He − HJ) × n on ∂Ω

Chad Sockwell (FSU) Scientific Computing October 27, 2015 24 / 73

slide-25
SLIDE 25

GL

Chad Sockwell (FSU) Scientific Computing October 27, 2015 25 / 73

slide-26
SLIDE 26

Faraday Rotation

Bin also reproduced the results of another research group They are looking for Gravitational Faraday rotation from a Galaxy This can seen in the X-ray polarization. This simulation can tell astronomers what to look for.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 26 / 73

slide-27
SLIDE 27

The Scientific Computing Department

Located on the 4th floor of Dirac (Secret Elevator) We specialize in implementing and improving algorithms www.sc.fsu.edu Advisor: Mark Howard, 403, mlhoward@fsu.edu Double Major (47 Credits) or Minor? Skills are valuable for research and grad school. TEA AND COOKIES, Wednesdays at 3:00

Chad Sockwell (FSU) Scientific Computing October 27, 2015 27 / 73

slide-28
SLIDE 28

Courses

ISC 3313(0) Intro to SC ISC 3222 (3) Symbolic and Numerical Computations ISC 4304 (4) Programming for Scientific Applications ISC 4220 (4) Algorithms for Science Applications I ISC 4221 (4) Algorithms for Science Applications II ISC 4223 (4) Computational Methods for Discrete Problems ISC 4232 (4) Computational Methods for Continuous Problems ISC 4943 (3) Practicum in Computational Science

Chad Sockwell (FSU) Scientific Computing October 27, 2015 28 / 73

slide-29
SLIDE 29

Second Major

All core courses 3 seminars 6 hours of SC electives 12 hours of other electives

Chad Sockwell (FSU) Scientific Computing October 27, 2015 29 / 73

slide-30
SLIDE 30

Prerequisites

Calc I and II Basic programming: COP 3014 or ISC 3313 Science with lab Collateral: Linear algebra and Stats (3000 +) Double count electives

Chad Sockwell (FSU) Scientific Computing October 27, 2015 30 / 73

slide-31
SLIDE 31

Minor

Both

ISC 3222 (3) Symbolic and Numerical Computations ISC 4304 (4) Programming for Scientific Applications

and one of

ISC 4220 (4) Algorithms for Science Applications I ISC 4221 (4) Algorithms for Science Applications II

and 1 more elective (14 hours total)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 31 / 73

slide-32
SLIDE 32

Skills

Interpolation Approximation (Least Squares) Numerical Linear Algebra Numerical Differentiation and Integration (Quadrature) Non-Linearities and Optimization Game theory applications Statistics and Probabilities ODE’s and PDE’s

Chad Sockwell (FSU) Scientific Computing October 27, 2015 32 / 73

slide-33
SLIDE 33

Programming Languages

MATLAB Mathemitca Python Fortran C / C++ Java

Chad Sockwell (FSU) Scientific Computing October 27, 2015 33 / 73

slide-34
SLIDE 34

Why SC is Useful to a Physicist

Simulating experiments. SC can help explore problems deeper. Computing skills are valuable for grad school and industry. SC teaches how to implement math problems on computers.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 34 / 73

slide-35
SLIDE 35

Quadrature Example

A Riemann Sum is descried as

b

a

f (x) dx ≈

N

  • k=1

f (x∗

k )∆x

Chad Sockwell (FSU) Scientific Computing October 27, 2015 35 / 73

slide-36
SLIDE 36

Quadrature Example

Consider the integral that yields the area of the unit circle. A =

R 2π

r dθ dr We can throw darts instead, known as the Monte Carlo method.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 36 / 73

slide-37
SLIDE 37

Monte Carlo

For a given Nin and Ntotal. A ≈ Nin Ntotal Atotal 4*0.8 = 3.2 ≈ π. Why should you care? Error ∝ √Ntotal In the Riemann Sum (or any analytic quadrature), Error ∝ (∆x)n What happens as n grows? Monte Carlo wins.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 37 / 73

slide-38
SLIDE 38

Monte Carlo

Now consider a complicated domain.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 38 / 73

slide-39
SLIDE 39

My story

I do physics, math and SC Started with Superconductivity (physics) I wanted to understand vortex dynamics

Figure : A magnet floating on top of Superconductor.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 39 / 73

slide-40
SLIDE 40

Vortex Dynamics (Physics)

Figure : Vortex Dynamics with applied current and field (left), the set up (right).

Chad Sockwell (FSU) Scientific Computing October 27, 2015 40 / 73

slide-41
SLIDE 41

Ginzburg Landau Model (Physics and Math)

I had to understand the GL model (math) Gs =

  • fn + α(T)|ψ|2 + 1

2β(T)|ψ|4 + 1 2ms |(−i∇ − es c A)ψ|2 +1 2 B · (B − He) 4π dΩ I learned Calculus of variations and how to rescale equations. −ψ + |ψ|2ψ + ( i κ∇ − A)2ψ = 0 = δG δψ in Ω Js = ∇ × (∇ × A − He) = − i 2κ(ψ∗∇ψ − ψ∇ψ2) − |ψ|2A in Ω ( i κ∇ − A)ψ · n = 0 on Γ ∇ × A × n = H × n on Γ

Chad Sockwell (FSU) Scientific Computing October 27, 2015 41 / 73

slide-42
SLIDE 42

Gauge invariance (Physics Math)

Including time demanded an understanding of gauge invariance. φ → φ − 1 c ∂f ∂t , A → A + ∇f , ψ → ψeif E = (−1 c ∂A ∂t − ∇φ), B = ∇ × A Now we disturb the system and account for the total current. Γ(∂ψ ∂t + iκφψ) = δG δψ J = Jn + Js = σE + Js

Chad Sockwell (FSU) Scientific Computing October 27, 2015 42 / 73

slide-43
SLIDE 43

GL equations ( Physic and Math)

Γ

∂ψ

∂t + i(Jy σ )κψ

  • +
  • |ψ|2 − 1
  • ψ + ( i

κ∇ − A)2ψ = 0 ∇ × H + J = σ∂A ∂t + ∇ × ∇ × A + i 2κ (ψ∗∇ψ − ψ∇ψ∗) + A|ψ|2 where σ∇φ = J A · n = 0 , i κµ ∇ψµ · n = 0 , (∇ × A) × n = (He − HJ) × n on ∂Ω

Chad Sockwell (FSU) Scientific Computing October 27, 2015 43 / 73

slide-44
SLIDE 44

Numerical Analysis (NA)

I have a system of non-linear, time dependent, PDE’s Now I had to learn how to solve PDE’s on a computer (NA) I used my skills to convert math to code The Finite element Method was used to solve the PDE.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 44 / 73

slide-45
SLIDE 45

Discretization of The Domain (NA)

Discretization was needed

Chad Sockwell (FSU) Scientific Computing October 27, 2015 45 / 73

slide-46
SLIDE 46

Numerical Analysis (NA)

Implementing derivatives, integrals, non-linearities, and the time

  • domain. (NA)

xn+1 = xn − f ′(xn) f (xn) → J(xn)(xn+1 − xn) = −F(xn)

Figure : Newton’s method (top), Euler’s method (left), Riemann sum (right)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 46 / 73

slide-47
SLIDE 47

Numerical Analysis (NA)

Now I’m ready solve my matrix equation! I run the code and....

Chad Sockwell (FSU) Scientific Computing October 27, 2015 47 / 73

slide-48
SLIDE 48

Compression (CS)

I ran out of space, so i quit storing 0’s. (CS)

Figure : The black dots are non zero values in the matrix

Chad Sockwell (FSU) Scientific Computing October 27, 2015 48 / 73

slide-49
SLIDE 49

Compression (CS)

Compressed Spare Row storage did the trick

Chad Sockwell (FSU) Scientific Computing October 27, 2015 49 / 73

slide-50
SLIDE 50

Parallel Computing (CS)

The I ran out out time... I need Parallel computing (HPC)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 50 / 73

slide-51
SLIDE 51

Parallel Computing Problems (CS)

I need a linear algebra solver, SuperLU I learned how to use make files and link libraries (CS) Lots of debugging.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 51 / 73

slide-52
SLIDE 52

Finally

I got my Data!!!! Then I had use plotting software (CS) to make my plots and poster

Chad Sockwell (FSU) Scientific Computing October 27, 2015 52 / 73

slide-53
SLIDE 53

Pinning Effects in Two-Band Superconductors

Chad Sockwell, Max Gunzburger, Janet Peterson

Scientific Computing, Florida State University, Email: kcs12j@my.fsu.edu Objectives

  • Numerically simulate the vortex dynamics in

the superconducting material MgB2.

  • Devise a way to raise the maximum amount of

current carried in the superconductor.

  • Simulate how impurities raise the maximal

current in MgB2.

Introduction

Most are familiar with the waste heat produced by resistance in an electrical wire. This wasted energy can be avoided by using resistance free superconduc-

  • tors. However superconductors posses critical (max-

iumum) values for their temperature, magnetic field, and current, only below which they operate as re- sistance free. Introducing impurities can raise the critical current by preventing flux flow. Practical superconducting devices could revolutionize technol-

  • gy but numerical simulations are needed to give

insight.

MgB2

  • Magnesium Diboride (MgB2) is a two band

superconductor that can carry resistance free current under a temperature of 39K (-389.47 ◦ F).

  • The bands act as pathways for electrons, each

possessing their own properties seen in Table 1 .

  • The bands interact to give composite direction

and temperature dependent magnetic properties. λ1=47.8 nm λ2= 36.6 nm ξ1=13 nm ξ2=51 nm κ1=3.61 κ2=0.658 ν = 2.757 η = −0.1701

Table 1: The material parameters for MgB2.

Flux Flow

  • In the presence of a external magnetic field,

normal materials are completely penetrated by the field. However superconductors such as MgB2 are only penetrated by small magnetic flux vortices.

  • The flux vortices interact with the applied

current, J to produce a Lorentz force, F, perpendicular to J.

  • The movement of the vortices, known as flux flow,

induces an electric field, E, parallel to the applied current, creating an effective resistance.

  • Figure 3 shows how the force moves the vortices

( red ) as time increases.

Figure 1: The vortices can be seen where ψ1 is at is smallest (red). They are pushed to the right by the Lorentz force. At later times (t_3) the vortices rearrange themselves.

Methods

The finite element, Euler, and Newton methods were used together to solve the model equations. Super- computers were used at F.S.U.’s R.C.C. for calcula- tions.

Figure 2: The set up for the numerical simulations. The mag- netic field penetrates the sample as flux vortices and an applied current is transported across the sample.

Mathematical Model

The Modified 2B-TDGL model describes supercon- ductivity and contains ψ1 and ψ2, the density func- tions for the current carriers, the magnetic vector potential, A, and takes the parameters from Table 1 as input. The vortices can be seen where ψ1 is at its

  • smallest. Numerical simulations of vortex dynamics

from the model are seen in Figures 1, 4

Results

Figure 3: The critical current for different numbers of impurity

  • sites. This under a temperature of 30 K and magnetic field of

0.106 Tesla.

Impurities were successfully modeled in the mate-

  • rial. The pinning effects are shown in Figure 4. The

impurity sites are outlined by the open black cir-

  • cles. A raise in the critical current Jc was found

by increasing the normals N (Figure 3). However too many impurities degraded the superconducting material and lower Jc, as seen where N=25.

Conclusion

MgB2 was successfully modeled using the simula-

  • tion. Figure 5 shows directional dependence on the

critical magnetic fields, comparable to experiments. An algorithm to model impurities in the sample was successful in raising the critical current.

Figure 4: From top left to bottom right, vortices (red) are gener- ated from a magnetic field. They become pinned to the normal site (black circles). When a current J is applied, the vortices remained pinned, unlike Figure 2. Figure 5: Magnetic properties comparable to experiment, γH = Hab

c2/Hc c2.

Acknowledgements: I would like to acknowledge and graciously thank The Center for Undergraduate Research and Academic Engagement at F.S.U. and their private donors for the M.R.C.E. award that supported this research.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 53 / 73

slide-54
SLIDE 54

Put It All Together

Physics + Math+ NA+ CS =SC I didn’t know I could do it. The SC and Physics departments prepared me well!

Chad Sockwell (FSU) Scientific Computing October 27, 2015 54 / 73

slide-55
SLIDE 55

Why You Should SC

Now we see how SC is useful You can expand your research Computer’s play a huge role today and you can do it too! www.sc.fsu.edu Advisor: Mark Howard, 403, mlhoward@fsu.edu Tea and cookies Wednesday 3:00 (colloquium after)!

Chad Sockwell (FSU) Scientific Computing October 27, 2015 55 / 73

slide-56
SLIDE 56

References

Max Gunzburger for his insightful comments on the subject. Qiang Du, Penn State Sachin Shanbahg, FSU, Department of Scientific Computing Bin Chen, FSU Research Computing Center https://www.youtube.com/watch?v=bPvQ48gIa6U

Chad Sockwell (FSU) Scientific Computing October 27, 2015 56 / 73

slide-57
SLIDE 57

References

Bryan Quaife for his Fluid dynamics examples. Tomasz Plewa, Tim Handy and Dr. Plewa’s post docs for their Omega laser examples.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 57 / 73

slide-58
SLIDE 58

Finite Elements

FEM is a method used to solve PDE’s Discretization and Basis Functions Consider a surface plot from a function u(x,y)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 58 / 73

slide-59
SLIDE 59

Finite Elements

Now the Domain is discretized.

Chad Sockwell (FSU) Scientific Computing October 27, 2015 59 / 73

slide-60
SLIDE 60

Finite Elements

Basis Functions

Chad Sockwell (FSU) Scientific Computing October 27, 2015 60 / 73

slide-61
SLIDE 61

Finite Elements

Basis Functions

ϕ1 ϕ2 ϕ3 ϕ4 ϕ5 ϕ6

Chad Sockwell (FSU) Scientific Computing October 27, 2015 61 / 73

slide-62
SLIDE 62

Finite Elements

Consider Poisson’s equation −∆u = f (x, y) in Ω; u=0 on Γx and ∇u · n = g(x) on Γy Multiply by a smooth bound test function, φ, and IBP −

  • (∆u)φ dΩ = −
  • ∇u · nφ dΓy +
  • ∇u · ∇φ dΩ =
  • f (x, y)φ dΩ

Derivative BC

  • ∇u · ∇φ dΩ =
  • f (x, y)φ dΩ +
  • g(x)φ dΓy

Chad Sockwell (FSU) Scientific Computing October 27, 2015 62 / 73

slide-63
SLIDE 63

Finite Elements

Now test for ALL basis function in our set, φi

  • ∇u · ∇φi dΩ =
  • f (x, y)φi dΩ +
  • g(x)φi dΓy

Expand u in terms of φi since it is a complete basis. u(x, y) =

N

  • j

cjφj(x, y) Now we have a matrix equation cj

  • ∇φj · ∇φi dΩ =
  • f (x, y)φi dΩ +
  • g(x)φi dΓy

if φi is Γx node, set ij term to 1 and RHS i term to 0

Chad Sockwell (FSU) Scientific Computing October 27, 2015 63 / 73

slide-64
SLIDE 64

Non-dimensionalization ND

We can rescale with familiar quantities. We can close the magnitude gap. Let’s introduce ˜ x = λx, ˜ ψ = ψ

  • −α

β , ˜ A = √ 2Hcλ, ˜ H = √ 2HcH λ(T) =

  • − msβ(T)c2

4πα(T)e2∗ , ξ(T) =

2 2msα(T), κ = λ ξ

Chad Sockwell (FSU) Scientific Computing October 27, 2015 64 / 73

slide-65
SLIDE 65

ND

Inserting ˜ x, ˜ ψ, ˜ A, ˜ H and forming λ and ξ. We divide through by the common term. The ND gives us a much cleaner form (with the tilde’s dropped). gs = fn+|ψ|2+ 1 2|ψ|4+ 1 2ms |(−i∇− es c A)ψ|2+ 1 2 (∇ × A) · (∇ × A − He) 4π (Several lines of algebra) gs = fn − |ψ|2 + 1 2|ψ|4 + |( i κ∇ − A)ψ|2 + 1 2(∇ × A) · (∇ × A − He)

Chad Sockwell (FSU) Scientific Computing October 27, 2015 65 / 73

slide-66
SLIDE 66

What We Do with the Free Energy?

We want the Free energy minimized Functions ψ and A must minimize it. Calculus of Variations!!!

Chad Sockwell (FSU) Scientific Computing October 27, 2015 66 / 73

slide-67
SLIDE 67

Calculus of Variations

We want the path that minimizes

g(ψ, A) dΩ for ψ and A.

We vary these two variables instead of x and ˙ x. Starting with ψ∗ (the complex conjugate), lets take a functional derivative (not ψ). δgs δψ = lim

η→0

1 η

gs(ψ + ηφ) − gs(ψ) dΩ = 0

Chad Sockwell (FSU) Scientific Computing October 27, 2015 67 / 73

slide-68
SLIDE 68

Calculus of Variations

Now we’re only left with terms with a ψ factor δgs(ψ, ψ∗, A) δψ = lim

η→0

1 η

gs(ψ, ψ∗ + ηφ, A) − gs(ψ, ψ∗, A) dΩ = 0 = lim

η→0

1 η

  • −(ψ∗+ηφ)ψ+1

2((ψ∗+ηφ)ψ)2+(−i κ ∇−A)(ψ∗+ηφ)·( i κ∇−A)ψ −(|ψ|2 + 1 2|ψ|4 + |( i κ∇ − A)ψ|2) dΩ

Chad Sockwell (FSU) Scientific Computing October 27, 2015 68 / 73

slide-69
SLIDE 69

The Variational form

After some simplification, we have the Variational form. This coincides with the weak from of the Finite element method. To get the EL equations, we need Integration by parts. Gs =

  • −ψφ + |ψ|2ψφ + (−i

κ ∇ − A)φ · ( i κ∇ − A)ψ dΩ = 0 Gs =

  • −ψφ + |ψ|2ψφ + D∗φ · Dψ dΩ = 0

Chad Sockwell (FSU) Scientific Computing October 27, 2015 69 / 73

slide-70
SLIDE 70

IBP

We need to use IBP on the derivative term to get rid of φ The i’s change a few things

  • D∗φ · Dψ dΩ =
  • Dψφ · n ds +
  • (D2ψ)φ dΩ

A Boundary Condition can eliminate the surface integral Dψ · n = ( i κ∇ − A)ψ · n = 0

Chad Sockwell (FSU) Scientific Computing October 27, 2015 70 / 73

slide-71
SLIDE 71

The EL equation for ψ

Gs =

  • (−ψ + |ψ|2ψ + ( i

κ∇ − A)ψ)2φ dΩ = 0 The Integrand must be zero, The EL equation for ψ is, with the boundary condition −ψ + |ψ|2ψ + ( i κ∇ − A)2ψ = 0 ( i κ∇ − A)ψ · n = 0

Chad Sockwell (FSU) Scientific Computing October 27, 2015 71 / 73

slide-72
SLIDE 72

The EL equation for A

Using the same process and a lot few vector calculus identities. δgs δA = lim

η→0

1 η

gs(A + ηφ) − gs(A) dΩ = 0 The EL equation of A is found to be, with a boundary condition to cancel the surface integrals. Js = ∇ × (∇ × A − H) = − i 2κ(ψ∗∇ψ − ψ∇ψ2) − |ψ|2A ∇ × A × n = H × n

Chad Sockwell (FSU) Scientific Computing October 27, 2015 72 / 73

slide-73
SLIDE 73

The ND GL equations

Putting everything together, we have a nonlinear system of PDE’s −ψ + |ψ|2ψ + ( i κ∇ − A)2ψ = 0 in Ω ∇ × ∇ × A + i 2κ(ψ∗∇ψ − ψ∇ψ2) + |ψ|2A = ∇ × H in Ω ( i κ∇ − A)ψ · n = 0 on Γ ∇ × A × n = H × n on Γ

Chad Sockwell (FSU) Scientific Computing October 27, 2015 73 / 73