Solving Differential Equation numerically

Click For Summary

Homework Help Overview

The original poster attempts to solve the Schrödinger equation numerically using a script on a nonuniform grid. The problem involves applying a finite element approximation to the second derivative, with specific attention to the grid spacing and potential function.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the construction of the matrix D used in the finite element method and question the implications of using a nonuniform mesh for the second derivative approximation. There are concerns about the validity of the eigenvalue equation in this context.

Discussion Status

Some participants are seeking clarification on the construction of the matrix D and its relation to the eigenvalue problem. There is an ongoing exploration of the potential issues arising from the nonuniform grid and its impact on the results.

Contextual Notes

The original poster has specified the grid configuration and potential function, but there may be underlying assumptions about the continuity and behavior of the eigenfunctions that are being questioned.

aaaa202
Messages
1,144
Reaction score
2

Homework Statement


I am supposed to write a script that can solve the Schrödinger equation on a nonuniform grid.

Homework Equations


Finite element approximation to the second derivative as in:
https://www.physicsforums.com/threads/nonuniform-finite-element-method.857334/#post-5382329

The Attempt at a Solution


I have defined a grid x = [x1,x2,x3,...,x4] with nonuniform spacing and a potential V(x). Specifically the nonuniform spacing is such that the first 10 points have a spacing of 10-10 and the others have 10-9.
I have then solved the Schrödinger equation by finding eigenvectors of:
H = -ħ2/2m D + V

The problem is that these have some kind of weird oscillatory behaviour, which stems from the discontinuity in the distance between the grid points. Do anyone have an idea what I could be doing wrong?
 

Attachments

  • untitled.png
    untitled.png
    6.9 KB · Views: 403
Physics news on Phys.org
How did you construct D?
 
I think if you use an approximation for the second derivative based on a nonuniform mesh, will this create some problems for the eigenvalue equation? Is it still valid that the eigenfunctions of the second derivative is just the eigenvectors of the matrix that represents it?
 

Similar threads

Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K