« home

Harmonic Oscillator Energy vs Angular Frequency

Tags

physics

Harmonic oscillator energy E/kBT\langle E\rangle/k_\text{B} T vs angular frequency ω=k/m\omega = \sqrt{k/m}


Harmonic Oscillator Energy vs Angular Frequency

  Edit

Overleaf Logo Open in Overleaf

  Download

PNG PNG (HD) PDF SVG TeX

  Code

harm-osc-energy-freq.tex (25 lines)

\documentclass{standalone}

\usepackage{pgfplots,mathtools}
\pgfplotsset{compat=newest}

\begin{document}
\begin{tikzpicture}
  \begin{axis}[
      xlabel = $\omega = \sqrt{k/m}$,
      ylabel = $\langle E\rangle/k_\text{B} T$,
      domain = 0.01:11,
      ymin = 0,
      smooth,thick,
      axis lines = center,
      every tick/.style = thick]

    \def\h{1}
    \def\b{1}
    \def\eev{1/2*\h*x*(1 + 4/(e^(\b*\h*x) - 1))}
    \addplot[color=blue]{\eev};

  \end{axis}
\end{tikzpicture}
\end{document}