GithubHelp home page GithubHelp logo

plasmadisp's Introduction

What does this do?

This package calculates the roots to the electrostatic dispersion relation given by

where g(u) is the 1D distribution function, here assumed to be a Maxwell-Boltzmann.

Installation & Usage

To install, after activating your environment, run

pip3 install -e git+https://github.com/ergodicio/plasmadisp.git#egg=plasmadisp

Then, you can get the complex root to the dispersion relation by

from plasmadisp import electrostatic
kk = 0.3
answer = electrostatic.get_roots_to_electrostatic_dispersion(wp_e=1.0, vth_e=1.0, k0=kk)
print(answer)

where the temperature and density of the plasma can be inserted by varying the plasma frequency and thermal velocity.

This will print a complex number where the real part is the frequency of the least damped resonant mode and the imaginary part is the Landau damping rate of that mode.

For more on all of this, please refer to an introductory plasma physics textbook like Chen [2] or Bellan [3].

Tests

The results of this solver are tested against the values published in Canosa1973 [1]

Solver

This uses scipy's optimize functionality as well as it's Fadeeva special function to represent the plasma dispersion.

Contribute/Questions

Please start an issue if you have any questions or would like to make contributions. At the moment, this package is intentionally limited in scope.

[1]: Canosa, José. “Numerical Solution of Landau’s Dispersion Equation.” Journal of Computational Physics 13, no. 1 (September 1973): 158–60. https://doi.org/10.1016/0021-9991(73)90131-9.

[2]: Chen, Francis F. Introduction to Plasma Physics and Controlled Fusion. Boston, MA: Springer US, 1984. https://doi.org/10.1007/978-1-4757-5595-4.

[3]: Bellan, P. M. Fundamentals of Plasma Physics. Vol. 173, n.d. https://doi.org/10.2277/0521821169.

plasmadisp's People

Contributors

joglekara 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.