Silaev/auto/3.3.5/335Cu.ipynb

135 lines
32 KiB
Plaintext
Raw Normal View History

2022-10-22 15:03:41 +03:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 16,
"id": "75466c80",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.14999999999999997\n",
"0.45\n",
"0.6749999999999997\n",
"0.8999999999999998\n",
"1.2149999999999996\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEGCAYAAABo25JHAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABUjUlEQVR4nO3deXhUVbro/+9KZZ7ngYSQhHmewgwSRAUSEad21lZB23Zo9fSgPWv3/Xm7T/c56rl97vFKpJ0Q2lkwBahImOdZIEDIABkgpDJXUqlp/f7YIQmQQAhVqVRqfZ6HJ6nau6relYT17r3W2u8WUkoURVEUz+Xl6gAURVEU11KJQFEUxcOpRKAoiuLhVCJQFEXxcCoRKIqieDhvVwdwraKjo2VKSkq3Xms0GgkKCnJsQL2carNnUG32DNfT5r1791ZKKWM62uZ2iSAlJYU9e/Z067W5ublkZGQ4NqBeTrXZM6g2e4brabMQorizbWpoSFEUxcOpRKAoiuLhVCJQFEXxcCoRKIqieDiVCBRFUTycSgSKoigeTiUCRVEUD6cSgaIoSi+Xt72cpS9upOyIkfd+s5UTO8869P3d7oIyRVEUT7L76wJ25RSBBO8qHY1VzWxYngfAkCnxDvkMdUagKIrSC5mbrGxaeYJdXxdBy/3DggdYALCa7Wz/6pTDPkudESiKovQyBQfOs2nlCYy1zZ3u01DV+bZrpc4IFEVRegljTTNr/99h1rx1GP8gb+761USCI/063Lez57vDaWcEQohlwK1AhZRyVAfbHwReannYAPxUSnnQWfEoiqL0VtIuObK5lO1fnMJmk0y9PY1xNyej03kxbdFANizPw2q2t+7v7as97y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
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"\n",
"\n",
"#U_0 = 0.15 muV\n",
"\n",
"I_Cu = [0] * 5\n",
"U_Cu = [0] * 5\n",
"\n",
"#0.2 A\n",
"I_Cu[0] = [0, 0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu[0] = [0, 0.03, 0.06, 0.09, 0.12, 0.15]\n",
"\n",
"#0.4 A\n",
"I_Cu[1] = [0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu[1] = [0.09, 0.18, 0.27, 0.36, 0.45]\n",
"\n",
"#0.6 A\n",
"I_Cu[2] = [0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu[2] = [0.15, 0.27, 0.39, 0.54, 0.69]\n",
"\n",
"#0.8 A\n",
"I_Cu[3] = [0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu[3] = [0.18, 0.30, 0.57, 0.78, 0.84]\n",
"\n",
"#1.0 A\n",
"I_Cu[4] = [0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu[4] = [0.24, 0.54, 0.78, 0.99, 1.23]\n",
"\n",
"I_Cu_back = [0.2, 0.4, 0.6, 0.8, 1]\n",
"U_Cu_back = [0.24, 0.51, 0.78, 1.02, 1.17]\n",
"\n",
"#U_Cu_34 = 495 muV l = 9 mm L34 = 10 mm a = 0.05 mm\n",
"\n",
"k = [0] * 5\n",
"b = [0] * 5\n",
"\n",
"I = np.linspace(0, 1)\n",
"U = [0] * 5\n",
"k[0], b[0] = np.polyfit(I_Cu[0], U_Cu[0], deg = 1)\n",
"k[1], b[1] = np.polyfit(I_Cu[1], U_Cu[1], deg = 1)\n",
"k[2], b[2] = np.polyfit(I_Cu[2], U_Cu[2], deg = 1)\n",
"k[3], b[3] = np.polyfit(I_Cu[3], U_Cu[3], deg = 1)\n",
"k[4], b[4] = np.polyfit(I_Cu[4], U_Cu[4], deg = 1)\n",
"U[0] = k[0] * I + b[0]\n",
"U[1] = k[1] * I + b[1]\n",
"U[2] = k[2] * I + b[2]\n",
"U[3] = k[3] * I + b[3]\n",
"U[4] = k[4] * I + b[4]\n",
"\n",
"plt.grid()\n",
"plt.plot(I, U[0])\n",
"plt.plot(I, U[1])\n",
"plt.plot(I, U[2])\n",
"plt.plot(I, U[3])\n",
"plt.plot(I, U[4])\n",
"plt.scatter(I_Cu[0], U_Cu[0])\n",
"plt.scatter(I_Cu[1], U_Cu[1])\n",
"plt.scatter(I_Cu[2], U_Cu[2])\n",
"plt.scatter(I_Cu[3], U_Cu[3])\n",
"plt.scatter(I_Cu[4], U_Cu[4])\n",
"\n",
"plt.xlabel('B, Тл')\n",
"plt.ylabel('U, мкВ')\n",
"\n",
"for i in range(5):\n",
" print(k[i])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a98a4e12",
"metadata": {},
"outputs": [],
"source": []
}
],
"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.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}