IonicLevel¶
-
class
plasmapy.particles.ionization_state.
IonicLevel
(ion: plasmapy.particles.particle_class.Particle, ionic_fraction=None, number_density=None)¶ Bases:
object
Representation of the ionic fraction for a single ion.
- Parameters
ion (
ParticleLike
) – The ion for the corresponding ionic fraction.ionic_fraction (real number between 0 and 1, optional) – The fraction of an element or isotope that is at this ionization level.
number_density (
Quantity
, optional) – The number density of this ion.
Examples
>>> alpha_fraction = IonicLevel("alpha", ionic_fraction=0.31) >>> alpha_fraction.ionic_symbol 'He-4 2+' >>> alpha_fraction.integer_charge 2 >>> alpha_fraction.ionic_fraction 0.31
Attributes Summary
The integer charge of the ion.
The fraction of particles of an element that are at this ionization level.
The symbol of the ion.
The number density of the ion.
Attributes Documentation
-
integer_charge
¶ The integer charge of the ion.
-
ionic_fraction
¶ The fraction of particles of an element that are at this ionization level.
Notes
An ionic fraction must be in the interval \([0, 1]\).
If no ionic fraction is specified, then this attribute will be assigned the value of
nan
.
-
ionic_symbol
¶ The symbol of the ion.
-
number_density
¶ The number density of the ion.