added model of infinite length quadrupole jupyter notebook

master
polymurph 3 years ago
parent 5d81c98db3
commit 3c1a4bd38a

@ -0,0 +1,60 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import scipy.constants as sc"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# phi_0 potential for the quadrupole rods\n",
"def phi_0(U, V, f, t):\n",
" return U + V * np.sin(2 * np.pi * f * t)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"def force_on_ion(Q_I, p_I, Q_rods, p_rods):\n",
" K = 1 / (4 * np.pi * sc.epsilon_0)\n",
" \n",
" # sum all individual electric field contributions of the rods\n",
" for Q in Q_rods:\n",
" "
]
}
],
"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.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

@ -0,0 +1,60 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import scipy.constants as sc"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# phi_0 potential for the quadrupole rods\n",
"def phi_0(U, V, f, t):\n",
" return U + V * np.sin(2 * np.pi * f * t)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"def force_on_ion(Q_I, p_I, Q_rods, p_rods):\n",
" K = 1 / (4 * np.pi * sc.epsilon_0)\n",
" \n",
" # sum all individual electric field contributions of the rods\n",
" for Q in Q_rods:\n",
" "
]
}
],
"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.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading…
Cancel
Save