Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import numpy as np

import matplotlib.pyplot as plt


x = np.arange(0., 50., 0.01)
plt.ylim(0.,0.4)
def fop(x): return 1/(2*x-1)
def f(x,k): return (k*(x-1)-1)/(x*k*(x-1))
plt.plot(x, fop(x), 'r--', x, f(x,0.2), 'y-', x, f(x,0.5), 'm-', x, f(x,1), 'c-'
, x, f(x, 2), 'k-', x, f(x, 4), 'g-')
plt.grid(True)
plt.xlabel(r'$\frac{\Phi}{\alpha T}$')
plt.ylabel(r'$\eta_r\left(\frac{\Phi}{\alpha T}\right)$')
plt.annotate(r'$\eta_r=\frac{1}{2\frac{\Phi_op}{\alpha T}-1}$', xy=(2, 0.35), xy
text=(7, 0.37), arrowprops=dict(facecolor='black', shrink=0.005),)
plt.show()

You might also like