Theoretical formulas for space plasma physics
helpful in dataframes
default units are SI units for space plasma physics
- B : magnetic field, nT
- n : number density, cm^-3
- T : temperature, eV
Reference
- plasmapy.formulary provides theoretical formulas for calculation of physical quantities helpful for plasma physics.
df_beta
df_beta (df:polars.dataframe.frame.DataFrame, T:str='T', n:str='n', B:str='B', col_name:str='beta', T_unit:astropy.units.core.Unit=Unit("eV"), n_unit:astropy.units.core.Unit=Unit("1 / cm3"), B_unit:astropy.units.core.Unit=Unit("nT"))
Type | Default | Details | |
---|---|---|---|
df | DataFrame | ||
T | str | T | temperature of the plasma |
n | str | n | particle density of the plasma |
B | str | B | magnetic field in the plasma, |
col_name | str | beta | |
T_unit | Unit | eV | |
n_unit | Unit | 1 / cm3 | |
B_unit | Unit | nT | |
Returns | DataFrame |
ldf_Alfven_speed
ldf_Alfven_speed (ldf:polars.lazyframe.frame.LazyFrame, **kwargs)
df_Alfven_speed
df_Alfven_speed (df:polars.dataframe.frame.DataFrame, B:str='B', n:str='n', ion:Union[str,int,numpy.integer,plasmapy.part icles.particle_class.Particle,plasmapy.particles.particl e_class.CustomParticle,astropy.units.quantity.Quantity]= 'p+', col_name='Alfven_speed', sign=True, B_unit:astropy.units.core.Unit=Unit("nT"), n_unit:astropy.units.core.Unit=Unit("1 / cm3"), speed_unit:astropy.units.core.Unit=Unit("km / s"))
Type | Default | Details | |
---|---|---|---|
df | DataFrame | ||
B | str | B | magnetic field in the plasma, could be a component, as plasmapy will take abs of it |
n | str | n | particle density of the plasma |
ion | Union | p+ | |
col_name | str | Alfven_speed | |
sign | bool | True | |
B_unit | Unit | nT | |
n_unit | Unit | 1 / cm3 | |
speed_unit | Unit | km / s |
df_thermal_spd2temp
df_thermal_spd2temp (df:polars.lazyframe.frame.LazyFrame, speed_col, speed_unit=Unit("km / s"))
thermal_spd2temp
thermal_spd2temp (speed, speed_unit=Unit("km / s"))