148 lines
16 KiB
Plaintext
148 lines
16 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 13,
|
||
|
"id": "672091c7",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"# -*- coding: utf-8 -*-\n",
|
||
|
"\"\"\"\n",
|
||
|
"Created on Tue Aug 24 16:24:52 2021\n",
|
||
|
"\n",
|
||
|
"@author: Joschka\n",
|
||
|
"\"\"\"\n",
|
||
|
"\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"import numpy as np\n",
|
||
|
"import sys\n",
|
||
|
"sys.path.insert(0,'..\\src')\n",
|
||
|
"\n",
|
||
|
"import coil_class_jupyter as BC\n",
|
||
|
"\n",
|
||
|
"#from IPython import get_ipython\n",
|
||
|
"#get_ipython().run_line_magic('matplotlib', 'qt')\n",
|
||
|
"#get_ipython().run_line_magic('matplotlib', 'inline')\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 14,
|
||
|
"id": "d3a46f0f",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"HH = 1, Distance = 57.8 mm, z_min = 24.9 mm, z_max = 32.9 mm\n",
|
||
|
"Radius = 45.29999999999999 mm, Radius_inner = 41.29999999999999 mm, Radius_outer = 49.30 mm\n",
|
||
|
"layers = 1, windings = 1, wire_width = 8.0, wire_height = 8.0 mm \n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.47817553461759527 W\n",
|
||
|
"B_z(0) = 13.37 G\n",
|
||
|
"B_z_curvature(0) = 0.3775 G/cm^2\n",
|
||
|
"current density = 1.2499999999999998 A/mm^2\n",
|
||
|
"Power = 0.5193429647502357 W\n",
|
||
|
"width = 0.2mm, height = 320.0mm\n",
|
||
|
"B_z(0) = 1.81 G\n",
|
||
|
"B_z_curvature(0) = 0.1083 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5188151771844329 W\n",
|
||
|
"width = 0.30000000000000004mm, height = 213.33333333333331mm\n",
|
||
|
"B_z(0) = 2.59 G\n",
|
||
|
"B_z_curvature(0) = 0.1629 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5182873896186297 W\n",
|
||
|
"width = 0.4000000000000001mm, height = 159.99999999999997mm\n",
|
||
|
"B_z(0) = 3.32 G\n",
|
||
|
"B_z_curvature(0) = 0.2160 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5177596020528267 W\n",
|
||
|
"width = 0.5000000000000001mm, height = 127.99999999999997mm\n",
|
||
|
"B_z(0) = 4.00 G\n",
|
||
|
"B_z_curvature(0) = 0.2669 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5172318144870235 W\n",
|
||
|
"width = 0.6000000000000001mm, height = 106.66666666666666mm\n",
|
||
|
"B_z(0) = 4.63 G\n",
|
||
|
"B_z_curvature(0) = 0.3147 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5167040269212204 W\n",
|
||
|
"width = 0.7000000000000002mm, height = 91.4285714285714mm\n",
|
||
|
"B_z(0) = 5.20 G\n",
|
||
|
"B_z_curvature(0) = 0.3588 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5161762393554175 W\n",
|
||
|
"width = 0.8000000000000003mm, height = 79.99999999999997mm\n",
|
||
|
"B_z(0) = 5.74 G\n",
|
||
|
"B_z_curvature(0) = 0.3987 G/cm^2\n",
|
||
|
"current density = 1.25 A/mm^2\n",
|
||
|
"Power = 0.5156484517896143 W\n",
|
||
|
"width = 0.9000000000000001mm, height = 71.1111111111111mm\n",
|
||
|
"B_z(0) = 6.22 G\n",
|
||
|
"B_z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i/nj39fz3Ee5HCkKcf3ZHbntu91onqwTrbFKRS8igbg7by/bwiOzstiy5zAX92rN3Zf0oHPLRtGOJuVQ0YtIudYXHODXb67g77kF9E5twlPX9udbnVtEO5YEpKIXkRM6XFjMcx+vZdLHa6lXuxb3Dz+T0YM7kFRLJ1rjSaCiN7NhwAQgCXjB3R8ttX048AAQAoqA8e7+9/C2DcA+oBgoOtEq5SISW+at2cG9b61gw86DDO/flnsu60mrxvWjHUtOQrlFb2ZJwERgKJAHLDCzGe6+KmLYXGCGu7uZ9QWmAT0itl/o7gWVmFtEqsi2vYe5/51VzFy2hc4pyfz1xsGc2y0l2rHkFASZ0Q8Cct19HYCZTQGGA18VvbvvjxifDHhlhhSRqlcccv73nxt4cs4ajhaHuGNod246vzP1autyyXgXpOhTgU0Rj/OAwaUHmdkI4BGgFXBZxCYH5piZA8+7++SynsTMxgBjANLS0gKFF5HKsXTTbu55czkrNu/lvO4tuf8HZ9IxRbctSBRBir6ssy7HzdjdfTow3czOo+R4/UXhTee4e76ZtQLeN7PV7j6vjP0nA5MBMjIy9BuBSDXYc6iQx2ev5uXPNtKyUT0mjkrn0j66fXCiCVL0eUD7iMftgPwTDXb3eWbWxcxS3L3A3fPDn99uZtMpORR0XNGLSPVxd95aks+DM7PYdeAI/zGkI3cM7U7j+lrGLxEFKfoFQDcz6wRsBkYCoyIHmFlXYG34ZGw6UBfYaWbJQC133xf++GLg/kr9DkSkQnK37+fet1Ywf+1O+rVvyks3nEXv1NOiHUuqULlF7+5FZjYOmE3J5ZUvuvtKMxsb3j4JuAq43swKgUPAteHSb03J4Zxjz/WKu79XRd+LiHyDw4XFTPwol0mfrKVBnSQevKI31w1K0zX
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"#set up axis\n",
|
||
|
"x = np.linspace(-50, 50, 301)\n",
|
||
|
"z = np.linspace(-50, 50, 301)\n",
|
||
|
"\n",
|
||
|
"#New coil\n",
|
||
|
"HH_Coil = BC.BCoil(HH = 1, distance = 54 ,radius = 48 , layers = 4, windings = 4, wire_height = 1, wire_width = 1)\n",
|
||
|
"\n",
|
||
|
"#Compensation Coil\n",
|
||
|
"HH_Coil_comp = BC.BCoil(HH = 1, distance = 54 ,radius = 37, layers = 4, windings = 4,wire_height = 1, wire_width = 1)\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"#HH_Coil_44.Bz_plot_HH(I,x,z)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "5eef49ab",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3",
|
||
|
"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.8.8"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 5
|
||
|
}
|