Lugovtsov/solid-dva-vaha/plots.ipynb

448 lines
352 KiB
Plaintext
Raw Normal View History

2024-03-21 10:29:16 +03:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "34e0daa0-210c-47fc-a373-361c6b45e6a3",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# %load /home/glebi/git/experiment-automation/processing_tools.py\n",
"import numpy as np\n",
"from scipy.optimize import curve_fit\n",
"import pandas as pd\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib\n",
"import scienceplots\n",
"\n",
"plt.style.use(['science', 'russian-font'])\n",
"\n",
"matplotlib.rcParams.update({\n",
" 'figure.figsize': [6, 3],\n",
" 'savefig.facecolor': 'white',\n",
" 'savefig.dpi': 300,\n",
" 'figure.dpi': 150.0,\n",
" 'font.size': 12.0,\n",
"})\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "fb4617fd-a533-4ed7-81be-6cb7adcfa815",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"data_glass = np.loadtxt(\"glass_diode.csv\", delimiter=\"\\t\", skiprows=1)\n",
"data_glass = np.sort(data_glass, axis=0)\n",
"\n",
"data_semi = np.loadtxt(\"semi_diode.csv\", delimiter=\"\\t\", skiprows=1)\n",
"data_semi = np.sort(data_semi, axis=0)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "23b64abd-1939-4fb0-9f47-56edf24941d4",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxIAAAGlCAYAAABulMAvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAACRFklEQVR4nOzde3xT9f0/8FeSthQKNG2530kRRFEgLXi/QeIN55wm1F10m0qi383tt4uJnXPq2Aapbu6uKc5tOp2QyqabOkhQwTslAW8gQg5QuRRom7Sl1z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WiyWsG0bNmyI+v5E96uveiYxsahUKrS3t0OtVoeVl45hdXV1zDp6+x4NVqk4R16vt8/HS6lU9uu8DBapvhaIKLMIrcege381Rslz8eLih3DihIirf+nAkYZWnDk1H6/8RIOphaPSHWbc2CKR4WrXrYy67fTR/MKfbopaVt6j6Ixxo2N+5unTilWvWYFoI/Jlp/2+9cGropYdCCqVKuQppqSysjK4PdpTxIaGhmCrRqwngQ6HI2o9kT47Xl6vN3hD3HPMRc84o/Whjva61GLhcDgiJhsSad/1en2vcZaXl6OkpAQulytmnT1jS3S/pGPeU6RWk96mA+7p9CTI5XJBEIRgvbH6qSfah/30/SgtLY35VLuv+93fz5H05xzF0tDQENfT+54TIsRzXpJ1vBJ9X7qPMxFlpqauFly/82fw+E7hP4t/DtGTj2vWOlDX3IGzpyvxH/OyXteOyFRskchweSOyov7k5ij6XHZkzhc5462XqaCQn54
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_glass[9:-4].T[0]*1e-3\n",
"I = data_glass[9:-4].T[1]*1e-6\n",
"\n",
"I_eq = lambda U, a, b, c: a * (np.exp(b * (U - c)) - 1)\n",
"popt, pcov = curve_fit(I_eq, U, I, p0=[.003, .1, .1])\n",
"\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(U*1e3, I_eq(U, *popt)*1e6, lw=.8, label=r\"Аппроксимация $I = I_s [e^{\\alpha(U-\\beta)} - 1]$\")\n",
"plt.text(40, 360, r\"$\\phi_T \\simeq \\alpha^{-1} = \\frac{kT}{e}\" + fr\" = {1/popt[1]*1e3:.0f}$ мВ\")\n",
"# plt.text(40, 300, fr\"$I_s = {popt[0]*1e6:.1f}$ мкА\")\n",
"# plt.yscale(\"log\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"Экспоненциальный участок ВАХ стеклянного диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"glass-exp.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "6391e854-4f40-4cc6-8e01-25e1bceadd7c",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAx4AAAGlCAYAAAB0qCChAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAABtKElEQVR4nO3de3xT9f0/8FeSJlwCNG1B7ggpeJ0X0uKcc6g0RZ06nSTtd3PupiToxvb9bjOxbkz8dhum0+9vGzpNYW6TbV+hhYkO/UoCKnNz0iYw7056wIKIStu0UC5Nk/P7ozuxae5p0pOkr+fjkYck551z3klO43nnc1OIoiiCiIiIiIgoi5RyJ0BERERERIWPhQcREREREWUdCw8iIiIiIso6Fh5ERERERJR1LDyIiIiIiCjriuROYDQKBoM4deoUioqKoFAo5E6HiIiIiGjYRFFEf38/xo4dC6Uysn2DhYcMTp06Ba1WK3caREREREQZ19vbi/Hjx0c8zsJDBkVFA297b28v1Gp1wni/3w+tVpt0fKbIcVy+1sI87mg5plzH5WstzOOOlmPKdVy+1sI87mg5plzHTXRMabt0rTsUCw8ZSN2r1Gp1SidKqvGZIsdx+VoL87ij5ZhyHZevtTCPO1qOKddx+VoL87ij5ZhyHTfRMWMNJeDgcopJqVTi3nvvjdpHr5COKddx5XqtchhN7+9oeq1y4OdaeMeUC8+lwj3uSBtN7+9wj6kQRVHMcE6UgN/vh0ajQV9fX9JdrVKJJ4qH5xNlCs8lyhSeS5QpPJfklej9L+wSlIiIiIiIcgILjzwwWpoqaWTwfKJM4blEmcJziTKF51JuY1crGbAZkIiIiIgKTaJrXM5qJSO/3w9goDpXqVQyZ0NERERElLpAIIBgMBi6to2F7VAy0mq10Gg0qK+vlzsVIiIiIqK01NfXQ6P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UDW7ovlN9Xam+d52dnaFudYPzHfp6rFYrfv/734daPZqamkLbHA5HqIUr3uQF0WZSSxSbbEtdOudMOseJJtXPKFnJvl8+ny/lzyUb71e+vs9ElJ/++/UtwBkBLC26EuPHyH85v2rVKvzwhz+E3++HVquNGceuVjJSq9VQq9VQqVRypxJX+9Hjcbf39QdHKJPhs9lsMBqN0Ol0sNlsaGtrg8lkgs/ng9VqxfLly9HR0YF169aFnjO4wIjG7XaHpuKNdmEhXdjW1NSEPa7T6WAymSIufNOxfPly6PX6qONYjEYjNm2KXpAOLToG5+V2uyO6PA3l8/ngcrlgNBrjxkn7dDgcEds2bdoU8/npvq5kDS564tHr9Th16hQMBkNEvPQetrS0xN1HovMoX2XjM/L5fEm/XzqdblifS77I9t8CEeWP9zqO4VXtK1CcHIefXXqT3OkAAFQqVei6Nh75SyTKqCPramJuUw1ZVEZ4eFnMWOWg0DmTJ8Q95q2Lw/9H2LLmOkRvHwGGLmvz4uqrY8aOBL1eH/YrqaSxsTG0PdavlJ2dnaFWk3i/NLrd7pj7iXbsVPl8vtAF9OAxI4PzjNUHPNbjUouI2+2OWpxIpNduNpsT5llXV4eKigp4vd64+xycW7qvS3rPB4vWKpNoeuXBhhZNXq8XgiCE9huvn326ffCHvo7Kysq4v5on+7qHexzJcD6jeDo7O1NqHfB4PKF/p/K5ZOr9Svd5cr/PRJSffvi3pyFqe1H+/mW4cPZkudNJCVs8Cox2TFHM21iNKunYcZpPatKvXqGHShl9JUyVUoFvXDU/7LHxcfY7tDkwVmymJXNRMJjUxSjehandbg91k7JarVGPIV0MDKeLRSLScUtLS0O/iA6+ORyOiO4ZiUgXR/GeJw36TZb0q/TgbmxutzuiJUgynNdVWloa9TZcPp8PZrMZ5eXlaG1thcF
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_glass[6:].T[0]*1e-3\n",
"I = data_glass[6:].T[1]*1e-6\n",
"\n",
"line = lambda x, k, b: k * x + b\n",
"popt, pcov = curve_fit(line, U[-3:], I[-3:])\n",
"\n",
"plt.axhline(0, color='black', linewidth=.5)\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(U[18:]*1e3, line(U, *popt)[18:]*1e6, lw=.8)\n",
"plt.text(330, -250, fr\"$\\phi_K = {-popt[1]/popt[0]*1e3:.0f}$ мВ\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"ВАХ стеклянного диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"glass-vah.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "492671c1-3783-4fb4-be74-4e0e1f59ef45",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAGlCAYAAAACkpIqAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAAB5R0lEQVR4nO3deXhb5Zk3/q/sSFmUxLKzsmU5TgiB0iaSQ1iTFkuhnW5TkOxZGmbaEglmpvObmRYJty9NMp5pkKHTmWlniBSmfQt9p3Vk0mVKO0QKkFAoxJaAFhIC0cnCls3ysYmzWLbO7w9zDpa1WJK12t/PdekCn/Po0a3zyM659WwaWZZlEBERERERFUFVqQMgIiIiIqLJgwkIEREREREVDRMQIiIiIiIqGiYgRERERERUNExAiIiIiIioaKaUOoDJLBaL4cKFC5gyZQo0Gk2pwyEiIiIiGjdZljE4OIhp06ahqiqxv4MJSAlduHABer2+1GEQEREREeVdX18fZs2alXCcCUgJTZkyfPn7+/uh1WrjzkWjUej1+qTnxqtQdbPewtfNegtfN+stfN2st7D1FrJu1lv4ullv4etmvYWv+9y5czAYDEl7PwAmICWlDLvSarUpGz3dufEqV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blJind85TJwZlSvqUeObwtEAgk9AwpxvO+6urqkj7GS5Ik2Gw21NfXo6urC0ajEU6nc8znKZtgZmtk7KIoYunSpbDZbClvNnN939m+zsj3pTw/X589IPOeqZHlc2mXfFyvSr7ORFR5vIE38MqxHvy883ipQ4nT2toKnU4HvV6
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_glass[:9].T[0]*1e-3\n",
"I = data_glass[:9].T[1]*1e-6\n",
"\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.text(-5800, -1.3, r\"Видно, что $|I_\\text{обр}| \\sim \\sqrt{\\phi_K - U}$\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"ВАХ стеклянного диода (обратный ход)\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"glass-back.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "ea41a79c-bbb1-4e73-ba01-3fdc3cd4fabc",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAvoAAAGoCAYAAAA3sUG0AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAACJ8UlEQVR4nOzdeVxU1/3/8dfMACqoDLjvMKjZowJmabZGIUmzRwGNabokEUybtr82EUKi3yTVRCFpun8jmKbfJo0bmKVJs8ho9lVBsycqA+47DCiKwMz9/UGZiuzDMgO8n4+Hj8R7z5z7ufce4TPnnnuOyTAMAxERERER6VHMvg5AREREREQ6nhJ9EREREZEeSIm+iIiIiEgPpERfRERERKQHUqIvIiIiItIDBfg6gM7mdruprKwkICAAk8nk63BERERERDqEYRjU1NTQt29fzOaG/fc9PtG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3ONt+Xzrhe3fU6i0jn+HjbIV7fvIdHkiYDMMzaj3+nT+f8sWEEBtQOYHEbbl459DGLHSvYVL4VgD7mQO4a9QNSI5IY22+or8LvNN1u6E5BQQFr1jSdXPcEOw8fa3Z/VY27iyJpv9TUVOLi4rBaraSmplJYWEhCQgJOp5OUlBTmzp3LkSNHWL58ueczpyb0jbHb7WRlZZGTk9PoL/K6RDIpKanedqvVSkJCQoNE0xtz587FZrM1+rJxXFxck2309CT/1LjsdnuDITSnczqd5OXlERcX12y5ujozMjIa7FuzZk2Tn/f2vFrr1C8ZzbHZbFRWVhIdHd2gfN013LhxY7N1tNSOuqvOuEdOp7PV18tqtbb
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_glass[10:15].T[0]*1e-3\n",
"I = data_glass[10:15].T[1]*1e-6\n",
"\n",
"R = np.diff(U) / np.diff(I)\n",
"revI = 1/I[:-1]\n",
"\n",
"line = lambda x, k, b: k * x + b\n",
"popt, pcov = curve_fit(line, revI, R)\n",
"\n",
"plt.plot(revI, R*1e-3, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(revI, line(revI, *popt)*1e-3)\n",
"plt.text(3.5e4, 3.5, r\"$r_\\text{Б} = \" + fr\"{popt[1]:.0f} \" + r\"\\text{ }\\Omega$\")\n",
"plt.xlabel(r\"$1/I$, усл. ед. 1/А\")\n",
"plt.ylabel(r\"Сопротивление, $\\text{к}\\Omega$\")\n",
"# plt.title(r\"Зависимость $R = dU/dI$ от $1/I$ стеклянного диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"glass-R.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "98c9fc8d-4d88-4616-ba64-a052183a3820",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"array([0.061, 0.082, 0.105, 0.117, 0.136])"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"U"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "1979b1b8-9744-418f-b6e6-e7dcad82a584",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxIAAAGlCAYAAABulMAvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAACBlklEQVR4nO3de3xb9X0//pckS7koiY/tBMItJMeBAoWSSAbK2oaVSNAVdgMp6damXUsjlW18v1tXJLyWAvP2Dcdtf91W2iGFsrbZ2joS6WWlHUiBEmgpsSVCKVAgOrkAIQmxfeLEuViWzu8P5xwk62JJli3Jfj0fD0Gs89E573N0nHze53MzqKqqgoiIiIiIqAzGWgdARERERESNh4kEERERERGVjYkEERERERGVjYkEERERERGVjYkEERERERGVranWAcwE6XQap06dQlNTEwwGQ63DISIiIiKaNFVVMTo6irlz58JozG1/YCJRBadOnYLVaq11GEREREREVTc8PIz58+fnvM9EogqamsYu4/DwMMxmc872ZDIJq9VacPtUmo3Hno3nPFuPPRvPuZbHno3nPFuPPRvPuZbHno3nPFuP3WjnrH1Gq+uOx0SiCrTuTGazuegXM9H2qTQbjz0bz3m2Hns2nnMtjz0bz3m2Hns2nnMtjz0bz3m2HrvRzrlQ130Otp4GRqMR99xzT96+ZTz2zDlurfG7nl6z8T6brdd7th67Vmbj9Z6N51xr/K6rw6Cqqlq1vU2BYDCIWCwGABgYGIAsy/B6vfB4PHnLy7IMSZIgCIL+c2dnJ2w2W1XK55NMJmGxWDAyMlKz7JLqA+8Fmg68z2iq8R6j6cD7rP5N9B3Vddcmv9+P9evXZyUN8XgcdrsdoVAIkUgkq3w8Hofb7UYkEoEoigAARVFgt9shSRJcLtekyhMRERER0Zi6bceSZRnd3d0IBAJZ79tsNjgcDkSjUUSj0axtbrcbXq9XTwoAQBAESJKEjRs3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QRDUSCSSs79AIKAKgqDGYrGs930+nxoKhfLuf3xZVVVVh8OhFvo19Hg8qs1my3vcwcHBrPddLpcKQHW5XDnHcTgcqs1my/lMsbhsNlvBuAKBQNG4M+P0eDyTOq9yr10sFlNdLlfOuQiCkPWez+dTA4GA6nK5cr53h8OhOhyOguemqmP3hiRJE8ZTynmUW75ax9HumXzK+Y5KUe71Kvd7mYrr1YjXmYhmhv4Tx1Xz43+k3hT7Uq1DmbCOy+lf69zSjVsLbrvhynPxyD/8of6z+DeP4MRIKm/ZD15yFn7xjw4AwPeekpFK51/QPJVW8afdT2L3N27R37uq81HsPzKct/wl5zWjd9NN+s/X3fsYfv/W0Zxyx773lwXPYzKi0Sj8fj86OjoQDAbh9/sRj8cRDAYhSRI6OjoQjUaLdmnSWjdaW1v192RZht/vx549e3JaP7SnkoFAQG/pAMae2Hd3d8Nms2UNAtc+n68VpVDLSjgcRjAYRCKR3ULk8XggSRL8fj8CgYD+vtPpRDgc1tfWyBQKhdDS0gK3241IJDJhXNFoFLIs540LGLtOWutLMBiEx+PJ2q4oit7tbPy+yz2vcq/dwMCA3o0tM97x5+P1evHd735Xb5UIhUL6NkmS9BaoYoP5880UNlHZUlvSKrlnKjlOPuV+R6Uq9XopilL29zIV16tRrzMRNb5/+MVjSC4YBQ4trnUoE2LXpipKJpNIJpNIpfJX5uvF/iPHi24fGU1PUyST5/P54HA4IAgCfD4fEokEXC4XFEWB1+vFxo0b0d/fj82bN+ufyUwY8olGo/rUsfkqClpFdd26dVnvC4IAl8uVU5GtxMaNGyGKYt5xIA6HA1u35k8wxycRmXFFo9GcLkb
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_semi[12:-8].T[0]*1e-3\n",
"I = data_semi[12:-8].T[1]*1e-6\n",
"\n",
"I_eq = lambda U, a, b, c: a * (np.exp(b * (U - c)) - 1)\n",
"popt, pcov = curve_fit(I_eq, U, I, p0=[1e-6, 20, .1])\n",
"\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(U*1e3, I_eq(U, *popt)*1e6, lw=.8, label=r\"Аппроксимация $I = I_s [e^{\\alpha(U-\\beta)} - 1]$\")\n",
"plt.text(150, 180, r\"$\\phi_T \\simeq \\alpha^{-1} = \\frac{kT}{e}\" + fr\" = {1/popt[1]*1e3:.0f}$ мВ\")\n",
"# plt.text(40, 300, fr\"$I_s = {popt[0]*1e6:.1f}$ мкА\")\n",
"# plt.yscale(\"log\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"Экспоненциальный участок ВАХ полупроводникового диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"semi-exp.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "05da42ad-1b57-445f-8435-e9ede4520057",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAx4AAAGlCAYAAAB0qCChAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAABwNklEQVR4nO3de3wb5Z0v/o8kS7koiceXQEJCSOSEAqWQyA7QloZCJKCEXpZIdndbesUW7Gn31+0WCbdLW9Z7TpDbbttte4oUytlCd7exTLq3hBIpUOg1sSXCpVzjSQgJCcSXiRMnsWVpfn84o0jWxZIseST58369/Eo88+jRd+Zx4vnquWlkWZZBRERERERURFq1AyAiIiIiosrHxIOIiIiIiIqOiQcRERERERUdEw8iIiIiIio6Jh5ERERERFR0VWoHMBtFo1GcPXsWVVVV0Gg0aodDRERERDRtsixjfHwcc+fOhVab3L/BxEMFZ8+ehdFoVDsMIiIiIqKCGxkZwfz585OOM/FQQVXVxG0fGRmBXq9HOByG0WiMfV9o5Vx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qrWSnY41FhjHOq0n7NNeiyLjvPcD4n/cwNJui0k1OGCTqtBp+/cXXCsfkZ6p0/pyqrsoWWzUNBPGWIUaYHU5fLFRsm5XA4Ur6H8jAwnSEWU1Het7a2NvaJaPyX2+1OGp4xFeXhKNPrlEm/2VI+lY4fxhYIBJJ6ghTTua7a2tqUX9MlSRLsdjsaGhrQ29sLs9mc1S73yuaVuYqPXRRFrFq1Cna7Pe1DZr7Xnev7xF+X8vpC/ewB2fdExZfPp10Kcb/
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_semi[11:].T[0]*1e-3\n",
"I = data_semi[11:].T[1]*1e-6\n",
"\n",
"line = lambda x, k, b: k * x + b\n",
"popt, pcov = curve_fit(line, U[-4:], I[-4:])\n",
"\n",
"plt.axhline(0, color='black', linewidth=.5)\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(U[-10:]*1e3, line(U, *popt)[-10:]*1e6, lw=.8)\n",
"plt.text(400, 220, fr\"$\\phi_K = {-popt[1]/popt[0]*1e3:.0f}$ мВ\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"ВАХ полупроводникового диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"semi-vah.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "5ff3346c-4be4-4790-92ad-34b14cf676eb",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAGlCAYAAAACkpIqAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAAB1FElEQVR4nO3deXwb5Z0/8I+kSDmUxLKTkHDlGIcr5Uhkh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bEhrcrmScDY1NeUqJCIiIqK0qFQqfOGqajx+Rx10k0pv24aySEAAwO12o6WlJarnIhgMQhRFbNu2LWYugNVqhdlsRktLy7jrmkg27gig9o7H8YPHX8XmFw7gB4+/ito7HsfGHYFCh5aSdNtGGU7n9/sjPVySJMFut6OyshIqlQo1NTVRvSperxcqlSry2OjeE7/fD7vdDqfTCbvdDrvdHpXsxqu/ubk58uV0OiP1m81mNDc3x8Td1tYW8xojhw36/X7U1NSguroaKpUKkiShra0tUr/Vao3pKRodV3V1daSM1+uF3W6PG9fIif0qlSppD9TIa2e32+H3+9M6r0xjlCQpqi1HXmPl9cxmM1QqVaQ9m5ubI49Zrda47TCSMqeourp6zLZMdh7xjOe8U32dZPWk00apUq5XZWUlnE5nyu/9VNolF9erVK8zEZWWt472o6d/IPK9SqVKUrqIyWUkEAjIFotFdjgcsiiKssVikT0eT9yyoijKBoNB9vl8464rkYGBARmAPDAwkPa5jOX4ycGEX++fGkq57IlTg5Fyb77XK1d88dfy9HW/ivmq+OKv5ZcPdEfV25+k3v6TgymVzRWfzyebTCbZYDDIAGSj0Sg7HI645QDIAORAIBD1mCiKcY8HAgHZYDDEfT+4XK647yuHwyG73e649cd7D5pMJjnRj6/NZpONRmPc1+3p6Yk6brFYZACyxWKJeR2TySQbjcaY5ySLy2g0JozL5XIljXtknDabbVznle618/l8ssViiTkXg8EQdczhcMgul0u2WCwx7W4ymWSTyZTw3GR5+L0hiuKY8aRyHumWz9brKO+ZeNJpo1Ske73SbZdcXK9SvM5EVBoGh0LyR+/+i3zu17fI7XuPFDqcpMa6xy2LZXgVgiDA7XanVNbhcCRdgjWdugph3vpNCR9bfckZ2Pytj0a+F/51M04MhOKW/cj5p+HP3zEBAB7bLiEUluOWC4VlfLL5aex98MbIseUNj+PA0f645c8/swLtTddFvr/qniex553emHLHHvtswvMYD6/XC6fTidraWrS0tMDpdMLv96OlpQWiKKK2thZerzfp0CulN2XkksuSJMHpdGLfvn0xvS3Kp6AulytqoYJgMIjm5mYYjcaoyfHK8+P12iTqyWlra0NLSwsCgegeKZvNBlEU4XQ64XK5IsfNZjPa2toie6OM5Ha7UVlZCavVCo/HM2ZcXq837twoRVVVVaS3p6WlJe6wR2V43Oi60z2vdK9dd3d3ZLjdyHhHn4/dbscvfvGLSC/IyN8BoihGerySLXIQb+W1scqm2nOXyXsmk9eJJ902SlWq1ysYDKbdLrm4XqV6nYmo+D3wp1fQIXXBME2L0yunFTqccSmbIVg0fgeOHk/6+MBQOE+RjJ/D4YDJZILBYIDD4UAgEIDFYkEwGITdbsf69evR1dWFDRs2RJ4z1t4uXq83soRvvBsM5Qa3vr4+6rjBYIDFYom5Ac7E+vXrIQhC3HkuJpMJmzbFT0zjrdymxOX1emOGQo0WDAbh8XhgMpmSllPqFEUx5rFNmzYlfH6m55WqkclPMoIg4OTJk5G5YCMp17C9vT1pHensEVRKctFGwWAw5etlMBjG1S6lItc/C0RUnHxSF+77/csAgP/54nKcWVXaCUhZ9YC
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_semi[:11].T[0]*1e-3\n",
"I = data_semi[:11].T[1]*1e-6\n",
"\n",
"plt.plot(U*1e3, I*1e6, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.text(-6000, -.5, r\"Видно, что $|I_\\text{обр}| \\sim \\sqrt{\\phi_K - U}$\")\n",
"plt.xlabel(\"Напряжение, мВ\")\n",
"plt.ylabel(\"Сила тока, мкА\")\n",
"# plt.title(\"ВАХ полупроводникового диода (обратный ход)\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"semi-back.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "d511fe53-0d37-41d2-9099-3951e333e5cf",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"array([4200. , 2555.55555556, 1714.28571429, 1461.53846154])"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"R"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "2e083a61-df4a-40f9-bafe-30cb8bfa5f33",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAxIAAAGoCAYAAADSCtPxAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABcSAAAXEgFnn9JSAACOd0lEQVR4nOzde1xTd54//lcCARSVcPdCVIJtpXcD9malUw32ijPTEm1npp2ZthAvOzO731ZSdna2dru/sWG6O7s7IzXY6cy005kKtJ0Re1FiL2qvQmpvaq0crcELKCGgILfk/P5Ic0okQBICIeH1fDx4tHzOJ+d8ThIP530+n/fnIxNFUQQREREREZEf5KFuABERERERhR8GEkRERERE5DcGEkRERERE5DcGEkRERERE5DcGEkRERERE5LfoUDcgEjidTnR1dSE6OhoymSzUzSEiIiIiGjFRFNHX14e4uDjI5QP7HxhIBEFXVxfi4+ND3QwiIiIioqDr6OjA5MmTB5QzkAiC6GjX29jR0QGFQuHz63p7exEfH+/36/w1FseJpHOJtONE0rlE2nEi6Vwi7TiRdC6RdpxIOpdIO04knUukHSfQY7hf577XvRADiSBwD2dSKBQBfQECfd14PE4knUukHSeSziXSjhNJ5xJpx4mkc4m040TSuUTacSLpXCLtOIEeY7Ch+0y2ngDkcjkee+wxr2PbwukYkXicsRBp71mkHWcsRNp7FknXtLHCz2b8Hmes8LMZv8cZC6N1LjJRFMWg7nEC6u3tRUxMDHp6evzuLgrkdRQ5+B2Y2Pj5E78DxO8AjefvwHBtC/8Qi4iIiIiIxhwDiRCKpC4zCgy/AxMbP3/id4D4HaBw/g5waFMQjOcuKSIiIiKiQHBoExERERERBR0DCSIiIiIi8hsDCSIiIiIi8hsDCSIiIiIi8hsDCSIiIiIi8hsDCSIiIiIi8hsDCSIiIiKicarX2QeH6Ah1M7xiIEFERERENM6c7G7B4w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NqDe2ed+MOh5jITZbIbBYEBubi4qKipgMBhgsVhQUVEBo9GI3NxcmM1mbNiwYdB9uHs3kpKSpDJBEGAwGHDkyJEBvR/up5Imk0nq6QBcT+zLysqg0Wg88jDcr/fWizJYz0p1dTUqKirQ0ODZQ1RcXAyj0QiDweCRaJ6fn4/q6mppbY3+qqqqkJiYCJ1O55FsPli7zGYzBEHw2i7A9T65e18qKipQXFzssd1ut0u5Kxfu29/z8ve9s9ls0Ov1A9p74fno9Xr8+c9/lnolqqqqpG1Go1HqgRoqn+bC4w/VSzbUefhbP5jH8cbfz8hXvr5fdrvd789lNN6vcH2ficg/TtGJnbaPUW6twdbmD+CEK3l6RmwS9Bl3oGjW7ZgZlzyqbTjd3oXHqz7B7gNNEJrPDVt/sHuyUODQpgno2Jmhv6Q9fc4xasnIlZSUQKvVQqlUoqSkBA0NDSgsLITdboder0dRURFaWlqwefNm6TX9AwZvzGYzTCYTqqqqvN4ouG9UV6xY4VGuVCpRWFg44EY2EEVFRVCr1V6TybVaLSorvQeYFwYR/dtlNpsHDDG6kN1uR21tLbRa7ZD13Ps0Go0DtlVWVg76+kDPy1f9g5ihqNVqdHV1QaPRDKjvfg/37t075D6G+x6Fq9H4jOx2u8/vl1KpHNHnEi5G+98CEQ3N3nsO//P1y8h+9yEsqy/F35vfgxNO3Jx4Faqu/Dd8vfgveCzrvqAHEafbu/Dyh1/jlY++Xe16apwCL753BELzOchlMkxPiBtyH7NTxs+aFOyRGOdObV4x6LaoC+YmFjbePWhdeb+qs1OmDHnM+/I8/7Dt3XAHBsvIv3B25HfW3zJo3bGgVqs9nmK6VVRUSNsHe4pos9mkXo2
"text/plain": [
"<Figure size 900x450 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"U = data_semi[10:14].T[0]*1e-3\n",
"I = data_semi[10:14].T[1]*1e-6\n",
"\n",
"R = np.diff(U) / np.diff(I)\n",
"revI = 1/I[:-1]\n",
"\n",
"line = lambda x, k, b: k * x + b\n",
"popt, pcov = curve_fit(line, revI, R)\n",
"\n",
"plt.plot(revI, R*1e-3, \"--.\", label=\"Экспериментальные данные\")\n",
"plt.plot(revI, line(revI, *popt)*1e-3)\n",
"plt.text(.6e7, 700, r\"$r_\\text{Б} = \" + fr\"{popt[1]*1e-3:.0f} \" + r\"\\text{ к}\\Omega$\")\n",
"plt.xlabel(r\"$1/I$, усл. ед. 1/А\")\n",
"plt.ylabel(r\"Сопротивление, $\\text{к}\\Omega$\")\n",
"# plt.title(r\"Зависимость $R = dU/dI$ от $1/I$ полупроводникового диода\")\n",
"plt.legend()\n",
"\n",
"plt.savefig(\"semi-R.png\")\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "e19f1a55-aed5-4de3-b90e-332c34e47c95",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"array([0.035, 0.083, 0.135, 0.184])"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"U"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}