Skip to content

A simple calculator of plasma properties like characteristic lengths and frequencies

License

Notifications You must be signed in to change notification settings

ep2lab/PlasmaProperties.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlasmaProperties.jl

A simple calculator of plasma properties like characteristic lengths and frequencies.

Build status (Github Actions)

Usage

Load the PlasmaProperties package and the Unitful package:

using PlasmaProperties, Unitful

Create a QuasineutralPlasma object. Use a name 'Xe' or 'Ar' to set the ion mass to the correct value for xenon and argon, respectively. Singly-charged ions are assumed. Other values of mass and charge state can be easily added to the package. You can give the values of the plasma density, neutral density, electron temperature, and the fields at creation time, or change them afterwards:

P = QuasineutralPlasma('Xe', 1e18u"m^-3", 3u"eV")
P.B = 200u"Gauss"

The units at creation time are optional; the usual ones are assumed if none are given.

The overloaded Base.show() method displays all the information of the plasma when printing P in the REPL. You can also use functions to compute a given quantity. E.g. for the electron cyclotron frequency in GHz,

f_ce(P)

About

A simple calculator of plasma properties like characteristic lengths and frequencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages