instability_theory_tools
File Purpose: helpful tools for analyzing results of instability theory
E.g. “get growth rate maxxed across k”, “plot growth vs k”
Functions
|
return arr.imag, with name='imag_{arr.name}'. |
|
return arr.real, with name='real_{arr.name}'. |
|
return arr but in linear space, not log10 space. |
|
returns array where growth rate is maxxed across k dims from array. |
|
returns boolean array telling where input growth rate (maxxed across k) > 0. |
|
returns growth rate, maxxed across k dims. |
|
like array.pc.image, but with default kwargs from kw_growthplot. |
|
like array.pc.subplots, but with default kwargs from kw_growthplot. |
|
returns wavevector as a vector in the x-y plane. |
|
returns k (vector) where growth rate is maxxes across k. |
|
returns kang where growth rate is maxxed across k. |
|
returns dataset of kmod & kang, where growth rate is maxxed across k. |
|
returns unit vector in the kang direction. |
|
returns khat for kang where growth rate is maxxed across k. |
|
return copy of dataset, but also having the physical values limiting k. |
|
draw lines representing mean free path, and debye length, on a plot with a |k| axis. |
|
returns kmod where growth rate is maxxed across k. |
|
returns kwargs to use for a growth rate plot (using imshow-style kwargs). |
|
returns magnitude of phase velocity: mod_vphase = |real(omega)| / |k|. |
|
returns signed magnitude of phase velocity: smod_vphase = real(omega) / |k|. |
|
return target stacked along nonk dims. |
|
returns phase velocity (vector): vphase = (real(omega) / |k|) * khat. |
|
return target where growth > 0. |
|
return target where growth <= 0. |