Comparing to Other References

We provide some utilities for drawing figures with data from the above sources.

tdg.references.REFERENCES

The references parameters in the functions below expects a set of modules; each module represents a different reference.

This variable contains all available references.

Some references have data that has been superseded by works from the same author, or are far outside the typical parameter range. Pass a truthy include_all kwarg to include these in comparison figures. (For an example see PRL106110403.)

tdg.references.contact_comparison(ax, *, references=REFERENCES, **kwargs)[source]

Plots the values of \(c/k_F^4\) provided by different references for comparison with contact_by_kF4().

Parameters
  • ax (matplotlib axis) – Where to plot the references’ results.

  • alpha (torch.tensor) – If a reference provides a function (rather than just points), pass alpha to it. Also sets the limits for the x-axis of the plot.

#!/usr/bin/env python

import torch
import matplotlib.pyplot as plt
import tdg.references

fig, ax = plt.subplots(1,1, figsize=(8,6))

alpha = torch.linspace(-0.625, +0.625, 1000)
tdg.references.contact_comparison(ax, alpha=alpha)

ax.set_xlim([min(alpha), max(alpha)])
ax.legend()
fig.tight_layout()
plt.show()

(Source code, png, hires.png, pdf)

../_images/contact-comparison.png
tdg.references.energy_comparison(ax, *, references=REFERENCES, **kwargs)[source]

Plots the difference between the Fermi Liquid and Mean Field energies normalized by the energy of the free Fermi Gas, \((E_{FL}-E_{MF})/E_{FG}\).

Parameters
  • ax (matplotlib axis) – Where to plot the references’ results.

  • alpha (torch.tensor) – If a reference provides a function (rather than just points), pass alpha to it. Also sets the limits for the x-axis of the plot.

#!/usr/bin/env python

import torch
import matplotlib.pyplot as plt
import tdg.references

fig, ax = plt.subplots(1,1, figsize=(8,6))

alpha = torch.linspace(-1.0, +1.0, 1000)
tdg.references.energy_comparison(ax, alpha=alpha)

ax.set_xlim([min(alpha), max(alpha)])
ax.set_ylim([-0.08, 0.3])
ax.legend()
fig.tight_layout()
plt.show()

(Source code, png, hires.png, pdf)

../_images/energy-comparison.png

Some references provide equation of state information.