Coder Social home page Coder Social logo

1d-se-solver's Introduction

Controls:

  • Draw while holding down the mouse button to draw a potential
  • Q calculates the bound states for the potential (and also fixes the potential so that its a valid function)
  • C clears everything (except energy scaling)
  • J and K increases / decreases the energy scaling respectively, effectively increasing / decreasing the depth of the potential. They also automatically trigger a recalculation of the bound states.
  • Up / Down arrows show the above / below wavefunction

Problem: The algorithm is unstable. When you draw something resembeling a double well and increase the energy scaling, eventually the algorithm fails. This is because near the places where the nodes change, the log-diff diverges do infinity very very very close to this place. Like $10^{-30}$ from it. I've tried moar precision but that strategy barely even delayed the problems. I think what is needed is a new solution. One that isn't integration. I think that finding a better integration scheme won't help because the integration is supposed to diverge for energies that are not exactly the right energies. So better integration schemes will probably just make sure even more that the energy needs to be EXACTLY correct to get a normalizable wavefunction.

Solution? Maybe completely rethink how I do the computation. For example, do exact diagonalization and have the potential be an infinite potential well, with the infinite walls being hidden out of sight. How bad could it be? If I cut it off at the point where the screen contains 1000 wavelengths, I'd need to diagonalize a 1000 x 1000 matrix. How hard is that? Probably doable.

1d-se-solver's People

Contributors

hamdav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.