File: schottky_anomaly.py

package info (click to toggle)
pycode-browser 1%3A1.02%2Bgit20181006-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,088 kB
  • sloc: python: 2,779; xml: 152; makefile: 71
file content (14 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Plot Cv vs kBT/e  
# Def : phenomenon where the specific heat capacity of a solid at low temperature has a peak.
# It is called  anomalous because the heat capacity usually increases with temperature, or stays constant. 

import numpy as np
import pylab

T = np.linspace(0,4.,4000)  #  Create a temperature axis [0,4] with 4K equally spaced points
beta = 1./T  # Calculate the reciprocal (1/kBT) . kB=1
Cv = beta*beta*np.exp(beta)/((1+np.exp(beta))**2)  # Calculate Cv

pylab.plot(T, Cv ,'-r') # Plot kBT/e vs Cv
pylab.xlabel('T'); pylab.ylabel('Cv= B^2*exp(beta)/(1+exp(beta))^2')
pylab.show()