PlasmaProperties.jl

Documentation for PlasmaProperties.jl

PlasmaPropertiesModule

PlasmaProperties, a simple plasma calculator module in Julia

The module contains basic functions to compute common plasma properties, such as characteristic frequencies and lengths.

It builds on Unitful, which provides a simple unit system for physical quantities.

source

Module Index

Detailed API

PlasmaProperties.QuasineutralPlasmaType
P = Plasma()

Mutable type holding plasma properties like density, temperature, etc. The plasma is quasineutral, cold-ion. The show() method prints a table of the properties and derived quantities.

A name can be specified to quickly select the ion mass and charge. If units are not given, the default is mi in kg, n in 1/m^3, Te in eV, B in Gauss.

source
PlasmaProperties.c_sMethod
c_s(mi,Zi,Te)
c_s(P::QuasineutralPlasma)

Compute the sound speed of ions in m/s. This ignores numerical factors and gammae.

source
PlasmaProperties.c_thMethod
cth(m,Z,T)

Compute the thermal speed of a charged species in m/s. This ignores numerical factors and gammae.

source
PlasmaProperties.c_theMethod
c_the(Te)
c_the(P::QuasineutralPlasma)

Compute the thermal speed of electrons in km/s. This ignores numerical factors and gammae.

source
PlasmaProperties.f_cMethod
f_c(m,Z,B)

Compute the (unsigned) cyclotron frequency of a charged species in MHz. If m does not have units, it is assumed to be in kg. If B does not have Unitful units, it is assumed to be in Tesla.

source
PlasmaProperties.f_ceMethod
f_ce(B)
f_ce(P::QuasineutralPlasma)

Compute the (unsigned) cyclotron frequency of electrons in GHz. If B does not have Unitful units, it is assumed to be in Tesla.

source
PlasmaProperties.f_ciMethod
f_ci(mi,Zi,B)
f_ci(P::QuasineutralPlasma)

Compute the (unsigned) cyclotron frequency of ions of mass mi in kHz. If B does not have Unitful units, it is assumed to be in Tesla.

source
PlasmaProperties.f_pMethod
f_pe(m,Z,n)

Compute the plasma frequency of a charged species in MHz. If m does not have units, it is assumed to be in kg. If n does not have Unitful units, it is assumed to be in m^-3.

source
PlasmaProperties.f_peMethod
f_pe(ne)
f_pe(P::QuasineutralPlasma)

Compute the plasma frequency of electrons in GHz. If ne does not have Unitful units, it is assumed to be in m^-3.

source
PlasmaProperties.f_piMethod
f_pi(mi,Z,ni)
f_pi(P::QuasineutralPlasma)

Compute the plasma frequency of ions of mass mi in MHz. If ni does not have Unitful units, it is assumed to be in m^-3.

source
PlasmaProperties.r_LMethod
rL(m,Z,B,vperp)

Compute the gyro radius of a charged species in m. If m does not have units, it is assumed to be in kg. If B does not have Unitful units, it is assumed to be in Tesla. If vperp does not have Unitful units, it is assumed to be in m/s.

source
PlasmaProperties.r_LeMethod
r_Le(B,vperpe)
r_Le(P::QuasineutralPlasma)

Compute the electron gyro radius in mm. If B does not have Unitful units, it is assumed to be in Tesla. If vperpe does not have Unitful units, it is assumed to be in m/s.

source
PlasmaProperties.r_LsiMethod
r_Lsi(mi,Z,B,Te)
r_Lsi(P::QuasineutralPlasma)

Compute the sonic ion gyro radius based on the sound speed, in cm. If mi does not have units, it is assumed to be in kg. If B does not have Unitful units, it is assumed to be in Tesla. If Te does not have Unitful units, it is assumed to be in eV.

source
PlasmaProperties.λ_DeMethod
λ_De(ne,Te)
λ_De(P::QuasineutralPlasma)

Compute the Debye length of the plasm in mm. If ne does not have Unitful units, it is assumed to be in m^-3. If Te does not have Unitful units, it is assumed to be in eV.

source
PlasmaProperties.χMethod
χ(Zi,np,Te,B)
χ(P::QuasineutralPlasma)

Hall parameter based on the electron-ion collision frequency only.

source