From b92c40eeabe2f5a5ba9a33bf854541ab0264a99a Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Sun, 13 Feb 2022 23:47:10 +0100 Subject: [PATCH] Add first version of assignment 1 --- references.bib | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ sc_elements.py | 49 +++++++++++++++++++++++++++++++++++++++ sc_elements.tex | 37 ++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 references.bib create mode 100755 sc_elements.py create mode 100644 sc_elements.tex diff --git a/references.bib b/references.bib new file mode 100644 index 0000000..b95d414 --- /dev/null +++ b/references.bib @@ -0,0 +1,61 @@ +@article{webb, + title = {Superconductivity in the elements, alloys and simple compounds}, + volume = {514}, + issn = {09214534}, + url = {https://linkinghub.elsevier.com/retrieve/pii/S0921453415000647}, + doi = {10.1016/j.physc.2015.02.037}, + language = {en}, + urldate = {2022-02-13}, + journal = {Physica C: Superconductivity and its Applications}, + author = {Webb, G.W. and Marsiglio, F. and Hirsch, J.E.}, + month = jul, + year = {2015}, + pages = {17--27}, +} + +@book{smidt, + address = {Berlin}, + title = {The {Physics} of superconductors: introduction to fundamentals and applications}, + isbn = {9783642082511}, + shorttitle = {The {Physics} of superconductors}, + language = {eng}, + publisher = {Springer}, + author = {Šmidt, Vadim V. and Müller, Paul}, + year = {2010}, +} + +@book{waldram, + address = {Bristol ; Philadelphia, Pa}, + title = {Superconductivity of metals and cuprates}, + isbn = {9780852743355 9780852743379}, + publisher = {Institute of Physics Pub}, + author = {Waldram, J. R.}, + year = {1996}, + keywords = {Superconductivity}, +} + +@misc{rhowiki, + title = {Electrical resistivity and conductivity}, + copyright = {Creative Commons Attribution-ShareAlike License}, + url = {https://en.wikipedia.org/w/index.php?title=Electrical_resistivity_and_conductivity&oldid=1070466789}, + abstract = {Electrical resistivity (also called specific electrical resistance or volume resistivity) is a fundamental property of a material that measures how strongly it resists electric current. A low resistivity indicates a material that readily allows electric current. Resistivity is commonly represented by the Greek letter ρ (rho). The SI unit of electrical resistivity is the ohm-meter (Ω⋅m). For example, if a 1 m3 solid cube of material has sheet contacts on two opposite faces, and the resistance between these contacts is 1 Ω, then the resistivity of the material is 1 Ω⋅m. +Electrical conductivity or specific conductance is the reciprocal of electrical resistivity. It represents a material's ability to conduct electric current. It is commonly signified by the Greek letter σ (sigma), but κ (kappa) (especially in electrical engineering) and γ (gamma) are sometimes used. The SI unit of electrical conductivity is siemens per metre (S/m).}, + language = {en}, + urldate = {2022-02-13}, + journal = {Wikipedia}, + month = feb, + year = {2022}, + note = {Page Version ID: 1070466789}, +} + +@book{crc, + address = {Boca Raton}, + edition = {84. ed., 2003/2004}, + title = {{CRC} handbook of chemistry and physics: a ready-reference book of chemical and physical data}, + isbn = {9780849304842}, + shorttitle = {{CRC} handbook of chemistry and physics}, + publisher = {CRC Press}, + author = {{Chemical Rubber Company}}, + editor = {Lide, David R.}, + year = {2003}, +} diff --git a/sc_elements.py b/sc_elements.py new file mode 100755 index 0000000..1a08219 --- /dev/null +++ b/sc_elements.py @@ -0,0 +1,49 @@ +#!/bin/env python3 +import pandas as pd +import re + +df = pd.DataFrame( + [ + ['Nb', 9.25, 152., '[webb]', 'at 273 K [crc]'], + ['Tc', 8.2, 200., '[webb]', '[rhowiki]'], + ['Pb', 7.2, 213., '[webb]', '[crc]'], + ['La', 6, 615., '[webb]', '[crc]'], + ['V', 5.4, 202., '[webb]', '[crc]'], + ['Ta', 4.4, 135., '[webb]', '[crc]'], + ['Hg', 4.15, 961., '[webb]', 'at 298 K [crc]'], + ['Sn', 3.7, 115., '[webb]', 'at 273 K [crc]'], + ['In', 3.4, 80., '[webb]', 'at 273 K [crc]'], + ['Tl', 2.4, 150., '[webb]', 'at 273 K [crc]'], + ['Re', 1.7, 172., '[webb]', 'at 273 K [crc]'], + ['Th', 1.4, 147., '[webb]', 'at 273 K [crc]'], + ['Pa', 1.4, 108.0, '[webb]', '[crc]' ], + ['U', 1.3, 280., '[webb]', 'at 273 K [crc]'], + ['Al', 1.18, 27.33, '[webb]', '[crc]'], + ['Ga', 1.08, 136., '[webb]', 'at 273 K [crc]'], + ['Am', 1, 689., '[webb]', '[rhowiki]'], + ['Mo', .92, 55.2, '[webb]', '[crc]'], + ['Zn', .85, 60.6, '[webb]', '[crc]'], + ['Os', .7, 81., '[webb]', 'at 273 K [crc]'], + ['Zr', .6, 433., '[webb]', '[crc]'], + ['Cd', .52, 68., '[webb]', 'at 273 K [crc]'], + ['Ru', .5, 71., '[webb]', 'at 273 K [crc]'], + ['Ti', .5, 390., '[webb]', 'at 273 K [crc]'], + ['Hf', .38, 340., '[webb]', '[crc]'], + ['Ir', .1, 47., '[webb]', 'at 273 K [crc]'], + ['Lu', .1, 582., '[webb]', '[crc]'], + ['Be', 1440, 37.6, '[webb]', '[crc]'], + ['W', .01, 54.4, '[webb]', '[crc]'], + ['Li', .0004, 95.5, '[webb]', '[crc]'], + ['Rh', .0003, 43., '[webb]', 'at 273 K [crc]'], + ], + columns = ['element', 'T_c', 'rho_300', 'T_c source', 'rho_300 source'] +) +table = df.to_latex(index = False, header = ['Element', 'tctex', 'rhotex', 'Tcsource', 'rhosource']) +table = table.replace('tctex', '$T_c (\\si{\\kelvin})$') +table = table.replace('rhotex', '$\\rho_{300 K} (\\si{\\nano\\ohm\\meter})$') +table = table.replace('Tcsource', 'Source $T_c$') +table = table.replace('rhosource', 'Source $\\rho_{300 K}$') +table = re.sub(r'\[(\w+)\]', r'\\cite{\1}', table) + +with open('sc_elements.tex', 'w') as table_file: + table_file.write(table) diff --git a/sc_elements.tex b/sc_elements.tex new file mode 100644 index 0000000..0497ad7 --- /dev/null +++ b/sc_elements.tex @@ -0,0 +1,37 @@ +\begin{tabular}{lrrll} +\toprule +Element & $T_c (\si{\kelvin})$ & $\rho_{300 K} (\si{\nano\ohm\meter})$ & Source $T_c$ & Source $\rho_{300 K}$ \\ +\midrule + Nb & 9.2500 & 152.00 & \cite{webb} & at 273 K \cite{crc} \\ + Tc & 8.2000 & 200.00 & \cite{webb} & \cite{rhowiki} \\ + Pb & 7.2000 & 213.00 & \cite{webb} & \cite{crc} \\ + La & 6.0000 & 615.00 & \cite{webb} & \cite{crc} \\ + V & 5.4000 & 202.00 & \cite{webb} & \cite{crc} \\ + Ta & 4.4000 & 135.00 & \cite{webb} & \cite{crc} \\ + Hg & 4.1500 & 961.00 & \cite{webb} & at 298 K \cite{crc} \\ + Sn & 3.7000 & 115.00 & \cite{webb} & at 273 K \cite{crc} \\ + In & 3.4000 & 80.00 & \cite{webb} & at 273 K \cite{crc} \\ + Tl & 2.4000 & 150.00 & \cite{webb} & at 273 K \cite{crc} \\ + Re & 1.7000 & 172.00 & \cite{webb} & at 273 K \cite{crc} \\ + Th & 1.4000 & 147.00 & \cite{webb} & at 273 K \cite{crc} \\ + Pa & 1.4000 & 108.00 & \cite{webb} & \cite{crc} \\ + U & 1.3000 & 280.00 & \cite{webb} & at 273 K \cite{crc} \\ + Al & 1.1800 & 27.33 & \cite{webb} & \cite{crc} \\ + Ga & 1.0800 & 136.00 & \cite{webb} & at 273 K \cite{crc} \\ + Am & 1.0000 & 689.00 & \cite{webb} & \cite{rhowiki} \\ + Mo & 0.9200 & 55.20 & \cite{webb} & \cite{crc} \\ + Zn & 0.8500 & 60.60 & \cite{webb} & \cite{crc} \\ + Os & 0.7000 & 81.00 & \cite{webb} & at 273 K \cite{crc} \\ + Zr & 0.6000 & 433.00 & \cite{webb} & \cite{crc} \\ + Cd & 0.5200 & 68.00 & \cite{webb} & at 273 K \cite{crc} \\ + Ru & 0.5000 & 71.00 & \cite{webb} & at 273 K \cite{crc} \\ + Ti & 0.5000 & 390.00 & \cite{webb} & at 273 K \cite{crc} \\ + Hf & 0.3800 & 340.00 & \cite{webb} & \cite{crc} \\ + Ir & 0.1000 & 47.00 & \cite{webb} & at 273 K \cite{crc} \\ + Lu & 0.1000 & 582.00 & \cite{webb} & \cite{crc} \\ + Be & 1440.0000 & 37.60 & \cite{webb} & \cite{crc} \\ + W & 0.0100 & 54.40 & \cite{webb} & \cite{crc} \\ + Li & 0.0004 & 95.50 & \cite{webb} & \cite{crc} \\ + Rh & 0.0003 & 43.00 & \cite{webb} & at 273 K \cite{crc} \\ +\bottomrule +\end{tabular}