Skip to content

Commit

Permalink
add ch
Browse files Browse the repository at this point in the history
  • Loading branch information
ColwynGulliford committed Oct 30, 2024
1 parent d9f59d3 commit fe8d9f3
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions docs/examples/fields/field_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
"metadata": {},
"outputs": [],
"source": [
"FM = FieldMesh(\"../data/rfgun.h5\")\n",
"FM2D = FieldMesh(\"../data/rfgun.h5\")\n",
"\n",
"plot_curl_equations(FM, ir=10)"
"plot_curl_equations(FM2D, ir=10)"
]
},
{
Expand All @@ -105,9 +105,9 @@
"metadata": {},
"outputs": [],
"source": [
"FM = FieldMesh(\"../data/rfgun_rectangular.h5\")\n",
"FM3D2 = FieldMesh(\"../data/rfgun_rectangular.h5\")\n",
"\n",
"plot_curl_equations(FM, ix=2, iy=2)"
"plot_curl_equations(FM3D2, ix=2, iy=2)"
]
},
{
Expand Down Expand Up @@ -135,9 +135,9 @@
"metadata": {},
"outputs": [],
"source": [
"FM = FieldMesh(\"../data/solenoid.h5\")\n",
"FMS = FieldMesh(\"../data/solenoid.h5\")\n",
"\n",
"check_static_div_equation(FM, plot=True, rtol=1)"
"check_static_div_equation(FMS, plot=True, rtol=1)"
]
},
{
Expand All @@ -163,7 +163,7 @@
"theta = np.pi / 2 # Opening angle [rad]\n",
"current = 1 # Current [Amp]\n",
"\n",
"FM = make_dipole_corrector_fieldmesh(\n",
"FMC = make_dipole_corrector_fieldmesh(\n",
" current=current,\n",
" xmin=-0.9 * R,\n",
" xmax=0.9 * R,\n",
Expand All @@ -180,25 +180,17 @@
" b=L,\n",
" plot_wire=True,\n",
")\n",
"FM.plot_onaxis([\"Bx\", \"By\", \"Bz\"])"
"FMC.plot_onaxis([\"Bx\", \"By\", \"Bz\"])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4931b71e-b175-4370-bf75-065ab6ae0989",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "1050cc1c-49c5-4b1f-999e-4635622e00ca",
"metadata": {},
"outputs": [],
"source": [
"check_static_div_equation(FM, plot=True, rtol=0.1, ix=211, iy=211)"
"check_static_div_equation(FMC, plot=True, rtol=0.09, ix=211, iy=211)"
]
},
{
Expand Down

0 comments on commit fe8d9f3

Please sign in to comment.