solarwindpy.core.alfvenic_turbulence.AlfvenicTurbulenceο
- class AlfvenicTurbulence(velocity, bfield, rho, species, raffaella_version=False, sc_vector=None, **kwargs)[source]ο
Bases:
CoreAlfv'enic turbulence diagnostics using Elsasser variables.
- Parameters:
velocity (
pandas.DataFrame) β Plasma velocity in the same basis asbfield.bfield (
pandas.DataFrame) β Magnetic field in the same basis asvelocity.rho (
pandas.Series) β Mass density used for normalisingbfield.species (str) β Species string used when converting to Alfv'en units.
Notes
Implementation follows the formalism of Bruno & Carbone (2013).
- __init__(velocity, bfield, rho, species, raffaella_version=False, sc_vector=None, **kwargs)[source]ο
Initialize an
AlfvenicTurbulenceobject.- Parameters:
velocity (pd.DataFrame) β Vector velocity measurments.
bfield (pd.DataFrame) β Vector mangetic field measurements.
rho (pd.Series) β Mass density measurments, used to put bfield into Alfven units.
kwargs β Passed to rolling method when mean-subtracing in set_data.
- property dataο
Mean-subtracted quantities used to calculated Elsasser variables.
- property averaging_infoο
Averaging window and minimum number of measurements / average used.
In calculating background component in \(\delta B\) and \(\delta v\).
- property measurementsο
Measurements used to calcualte mean-subtracted data.
- property velocityο
Velocity fluctuations (\(\delta v\)) in Plasmaβs v-units.
- property bfieldο
B field fluctuations (\(\delta b\)) in Alfven units.
- property polarityο
Magnetic field polarity.
- property speciesο
Species used to create
AlfvenicTurbulence.Defines mass density in Alfven units.
- property z_plusο
\(z^+\) Elsasser variable.
- property z_minusο
\(z^-\) Elsasser variable.
- property e_plusο
Energy contained in \(z^+\).
- property e_minusο
Energy contained in \(z^-\).
- property kinetic_energyο
Energy contained in velocity fluctuations \(\frac{1}{2}v^2\).
- property evο
Shortcut for
E_v = kinetic_energy.
- property magnetic_energyο
Energy contained in magnetic field fluctuations
\(E_b = \frac{1}{2}b^2\).
- property ebο
Shortcut for
magnetic_energy.
- property total_energyο
Total energy \(E_T = E_v + E_b\).
- property etotο
Shortcut for
total_energy.
- property residual_energyο
Residual energy \(E_R = E_v - E_b\).
- property eresο
Shortcut for
residual_energy.
- property normalized_residual_energyο
Normalized residual energy
E_R/E_T.
- property eres_normο
Shortcut for
normalized_residual_energy.
- property sigma_rο
Shortcut for
normalized_residual_energy.
- property cross_helicityο
Cross helicity \(\frac{1}{2} \delta v \cdot \delta b\).
- property normalized_cross_helicityο
Normalized cross helicity \(\frac{e^+ - e^-}{e^+ + e^-}\).
- property sigma_cο
Shortcut to
normalized_cross_helicity.
- property alfven_ratioο
Alfv'en ratio \(E_v/E_b\).
- property rAο
Shortcut to
alfven_ratio.
- property elsasser_ratioο
Elsasser ratio \(e^-/e^+\).
- property rEο
Shortcut to
elsasser_ratio.
- set_data(v_in, b_in, rho, species, raffaella_version=False, sc_vector=None, **kwargs)[source]ο
Set data for the class, performing routine formatting checks.
The auto_reindex kwarg can be set to False for batch analysis. So that, if running a large batch of analysis on the same data, one can reindex once outside of this class and avoid many unnecessary reindexing cases within it. Be sure to carefully check your reindexing so as to not introduce lots of NaNs. I ran into that bug when first writing this class.
- property constants: Constantsο
Physical constants.
- Returns:
Physical constants instance.
- Return type:
uc.Constants