mirror of
https://github.com/atomic14/kicad-coil-plugins.git
synced 2024-10-18 09:06:57 +00:00
Make the hole larger on the 12 coil board
This commit is contained in:
parent
aabab5fc67
commit
7bde6ea9f3
3 changed files with 22 additions and 15 deletions
|
@ -675,7 +675,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3.10.7 ('venv': venv)",
|
"display_name": "venv",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
@ -689,11 +689,11 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"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": {
|
"vscode": {
|
||||||
"interpreter": {
|
"interpreter": {
|
||||||
"hash": "fc384f9db26c31784edfba3761ba3d2c7b2f9b8a63e03a9eb0778fc35334efe1"
|
"hash": "1ce20143987840b9786ebb5907032c9c3a8efacbb887dbb0ebc4934f2ad26cb3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -566,7 +566,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"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": {
|
"vscode": {
|
||||||
"interpreter": {
|
"interpreter": {
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"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",
|
" d = d * 0.75\n",
|
||||||
" l = l * 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",
|
" # 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",
|
"def sweep_coil_circle(coil, coil_center_radius, theta):\n",
|
||||||
" X = coil_center_radius * np.cos(np.deg2rad(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",
|
" Y = coil_center_radius * np.sin(np.deg2rad(theta)) - coil_center_radius\n",
|
||||||
" Z = -0.01\n",
|
" Z = -0.0025\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # loop through the locations and calculate the forces, sum up the force in the X direction for each location\n",
|
" # loop through the locations and calculate the forces, sum up the force in the X direction for each location\n",
|
||||||
" Fx = []\n",
|
" Fx = []\n",
|
||||||
|
@ -357,6 +357,13 @@
|
||||||
" label=\"coil1\",\n",
|
" label=\"coil1\",\n",
|
||||||
" color=\"red\",\n",
|
" color=\"red\",\n",
|
||||||
")\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",
|
"# make the aspect ratio equal\n",
|
||||||
"plt.gca().set_aspect(\"equal\")\n",
|
"plt.gca().set_aspect(\"equal\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -397,11 +404,11 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"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": {
|
"vscode": {
|
||||||
"interpreter": {
|
"interpreter": {
|
||||||
"hash": "fc384f9db26c31784edfba3761ba3d2c7b2f9b8a63e03a9eb0778fc35334efe1"
|
"hash": "1ce20143987840b9786ebb5907032c9c3a8efacbb887dbb0ebc4934f2ad26cb3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue