Make the hole larger on the 12 coil board

This commit is contained in:
Chris Greening 2023-02-03 13:39:50 +00:00
parent aabab5fc67
commit 7bde6ea9f3
3 changed files with 22 additions and 15 deletions

View file

@ -675,7 +675,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.10.7 ('venv': venv)",
"display_name": "venv",
"language": "python",
"name": "python3"
},
@ -689,11 +689,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.7"
"version": "3.10.7 (main, Sep 27 2022, 14:37:32) [Clang 14.0.0 (clang-1400.0.29.102)]"
},
"vscode": {
"interpreter": {
"hash": "fc384f9db26c31784edfba3761ba3d2c7b2f9b8a63e03a9eb0778fc35334efe1"
"hash": "1ce20143987840b9786ebb5907032c9c3a8efacbb887dbb0ebc4934f2ad26cb3"
}
}
},

View file

@ -566,7 +566,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.7"
"version": "3.10.7 (main, Sep 27 2022, 14:37:32) [Clang 14.0.0 (clang-1400.0.29.102)]"
},
"vscode": {
"interpreter": {

View file

@ -143,7 +143,7 @@
"metadata": {},
"outputs": [],
"source": [
"def B(x, y, z, m=0.185, l=0.003, d=0.01):\n",
"def B(x, y, z, m=0.185, l=0.003, d=0.006):\n",
" d = d * 0.75\n",
" l = l * 0.75\n",
" # simulate multiple points in the cylinder and add them together to create a disk of field\n",
@ -308,7 +308,7 @@
"def sweep_coil_circle(coil, coil_center_radius, theta):\n",
" X = coil_center_radius * np.cos(np.deg2rad(theta))\n",
" Y = coil_center_radius * np.sin(np.deg2rad(theta)) - coil_center_radius\n",
" Z = -0.01\n",
" Z = -0.0025\n",
"\n",
" # loop through the locations and calculate the forces, sum up the force in the X direction for each location\n",
" Fx = []\n",
@ -357,6 +357,13 @@
" label=\"coil1\",\n",
" color=\"red\",\n",
")\n",
"# plot the 6 mm diagmeter magnet as a circle\n",
"plt.plot(\n",
" 0.006 * np.cos(np.linspace(0, 2 * np.pi, 100)),\n",
" 0.006 * np.sin(np.linspace(0, 2 * np.pi, 100)),\n",
" color=\"black\",\n",
")\n",
"\n",
"# make the aspect ratio equal\n",
"plt.gca().set_aspect(\"equal\")\n",
"\n",
@ -397,11 +404,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.7"
"version": "3.10.7 (main, Sep 27 2022, 14:37:32) [Clang 14.0.0 (clang-1400.0.29.102)]"
},
"vscode": {
"interpreter": {
"hash": "fc384f9db26c31784edfba3761ba3d2c7b2f9b8a63e03a9eb0778fc35334efe1"
"hash": "1ce20143987840b9786ebb5907032c9c3a8efacbb887dbb0ebc4934f2ad26cb3"
}
}
},