Skip to content

Instantly share code, notes, and snippets.

@kenguish
Created April 1, 2018 08:19
Show Gist options
  • Save kenguish/ccff8c47dedab25271eaac679c68761f to your computer and use it in GitHub Desktop.
Save kenguish/ccff8c47dedab25271eaac679c68761f to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Moxon Elements Calculations\n",
"\n",
"Original idea, algorithm, and diagram by L.B. Cebik, W4RNL http://www.cebik.com/moxon/moxgen.html\n",
"\n",
"Algorithms from KG4ZOW https://kg4zow.us/moxgen.txt"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"A: 235.56130482 mm\n",
"B: 6.28367216 mm\n",
"C: 35.27694122 mm\n",
"D: 49.67468091 mm\n",
"E: 91.23529428 mm\n"
]
}
],
"source": [
"import math\n",
"\n",
"wire_diameter = 0.01\n",
"frequency = 433.0\n",
"\n",
"a = (-0.0008571428571 * d1 * d1) \\\n",
" + (-0.009571428571 * d1) + 0.3398571429\n",
"\n",
"b = (-0.002142857143 * d1 * d1) \\\n",
" + (-0.02035714286 * d1) + 0.008285714286\n",
"\n",
"c = (0.001809523381 * d1 * d1) \\\n",
" + (0.01780952381 * d1) + 0.05164285714\n",
"\n",
"d = (0.001 * d1) \\\n",
" + 0.07178571429\n",
"\n",
"e = b + c + d;\n",
"\n",
"wf = 983.5592 / frequency\n",
"wi = 11802.71 / frequency\n",
"wm = 299.7925 / frequency\n",
"wl = 299792.5 / frequency\n",
"\n",
"fal = a * wl\n",
"fbl = b * wl\n",
"fcl = c * wl\n",
"fdl = d * wl\n",
"fel = e * wl\n",
"\n",
"print(\"A: %.8f mm\" % fal);\n",
"print(\"B: %.8f mm\" % fbl);\n",
"print(\"C: %.8f mm\" % fcl);\n",
"print(\"D: %.8f mm\" % fdl);\n",
"print(\"E: %.8f mm\" % fel);\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"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.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment