Jump to content

File:MHD wave mode 1.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 535 × 380 pixels, file size: 42 KB)

Summary

Description
English: MHD wave mode phase velocity diagram for .
Date
Source Own work
Author Krishnavedala
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
import matplotlib.pyplot as plt
import numpy as np
plt.rc('font', family='serif', size=15)
plt.rc('text', usetex=0)

dt = 1e-2
t = np.arange(0, .5*np.pi, dt)
va = 1.25
vs = 1.0
vavs = (va**2) + (vs**2)
v_fast = np.sqrt(0.5*vavs + 0.5 * np.sqrt(vavs*vavs - 4*(va**2)*(vs**2)*((np.cos(t))**2)))
v_shear = np.sqrt(0.5*vavs - 0.5 * np.sqrt(vavs*vavs - 4*(va**2)*(vs**2)*((np.cos(t))**2)))
v_slow = va * np.cos(t)

fig = plt.figure(figsize=(6,4))
ax = fig.add_subplot(111)
ax.plot(t, v_fast, label='$v_{fast}$')
ax.plot(t, v_slow, label='$v_{slow}$')
ax.plot(t, v_shear, label='$v_{shear}$')
ax.legend(loc='right')
ax.set_xticks([0,np.pi*.25,np.pi*.5])
ax.set_xticklabels(['$0$\n$\mathbf{k}\parallel\mathbf{B}_0$', '$\\frac{\\pi}{4}$', '$\\frac{\\pi}{2}$\n$\mathbf{k}\perp\mathbf{B}_0$'])
ax.set_xlim([0,np.pi/2])
ax.set_ylim([0,np.sqrt(vavs)])
ax.set_yticks([va, vs, np.sqrt(vavs)])
ax.set_yticklabels(['$v_A$', '$v_s$', '$\\sqrt{v_A^2+v_s^2}$'])
ax.set_xlabel('$\\theta$', fontdict={'size':20})
ax.set_ylabel('$\\frac{\\omega}{k}$', rotation=0, fontdict={'size':20})
ax.set_title('Phase velocity $v_{ph}=\\frac{\\omega}{k}$ with respect to $\\theta$, $v_A>v_s$')
fig.savefig('mhdvph.svg', bbox_inches='tight')

Licensing

Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

25 April 2018

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:05, 25 April 2018Thumbnail for version as of 21:05, 25 April 2018535 × 380 (42 KB)Krishnavedalatitle corrected
21:04, 25 April 2018Thumbnail for version as of 21:04, 25 April 2018535 × 380 (42 KB)KrishnavedalaUser created page with UploadWizard

The following page uses this file:

Metadata