GithubHelp home page GithubHelp logo

natalidesanti / harmonic_oscillator Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21.16 MB

This repo contains some codes to work with quantum and classical harmonic oscillator

License: GNU General Public License v3.0

Fortran 66.66% Python 33.34%

harmonic_oscillator's Introduction

Harmonic Oscillator

This repo contains some codes to work with quantum and classical harmonic oscillator. Folders contain the main results and the programs are in the scope of the repo.

Code descriptions

  • analytical.f: computes the probability of finding a particle for the classical harmonic oscillator (analitically), together with the density probability of the quantum harmonic oscillator in order to compare each order and test the Correspondence Principle;
  • plot-analytical.py: plots the comparison: classical probability X quantum density of probability, using analytical results. Besides, this program moves the data files created in the main directory by analytical.f to the folder analytical/
  • energies.f: computes eigenvalues for the energy of the quantum harmonic oscillator using Numerov's method;
  • hermite.f: computes the Hermite polynomials until order 5;
  • plot_hermite.py: plots the Hermite polynomials until order 5. Besides, this program moves the data files created in the main directory by hermite.f to the folder hermite/;
  • numerov.f: computes the probability density for the quantum harmonic oscillator using Numerov's method; in order to prove the Correspondence Principle;
  • plot-numerov.py: plots the comparison Numerov's X analytical probability densities. Besides, this program moves the data files created in the main directory by numerov.f to the folder numerov/;

An interesting explanation about the theory and plots of this repo is available in my blog: natalidesanti.

harmonic_oscillator's People

Contributors

natalidesanti avatar

Watchers

James Cloos avatar  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.