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 64dec62 commit d9f59d3
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions docs/examples/fields/field_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"id": "a93cab8f-cac0-48cd-b1c3-2841d1ca6dbb",
"metadata": {},
"source": [
"#### Example: 3D RF GUN "
"#### Example: 3D RF GUN From ANSYS"
]
},
{
Expand Down Expand Up @@ -81,7 +81,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "aaa1875e-249f-43f2-a5f7-a61390f805ba",
"id": "1e54d538-e0a9-44d4-894a-25f20ddc117e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -90,6 +90,26 @@
"plot_curl_equations(FM, ir=10)"
]
},
{
"cell_type": "markdown",
"id": "613b5131-dc3a-42d5-b14d-6a60cb0ddd8b",
"metadata": {},
"source": [
"#### Example: 3D RF GUN"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "70f18414-d6cd-4a1b-b516-dc1fee349a35",
"metadata": {},
"outputs": [],
"source": [
"FM = FieldMesh(\"../data/rfgun_rectangular.h5\")\n",
"\n",
"plot_curl_equations(FM, ix=2, iy=2)"
]
},
{
"cell_type": "markdown",
"id": "2d26b67a-ad78-498b-9210-6eca7d1c31e8",
Expand Down Expand Up @@ -147,13 +167,13 @@
" current=current,\n",
" xmin=-0.9 * R,\n",
" xmax=0.9 * R,\n",
" nx=101,\n",
" nx=301,\n",
" ymin=-0.9 * R,\n",
" ymax=0.9 * R,\n",
" ny=101,\n",
" ny=301,\n",
" zmin=-5 * L / 2,\n",
" zmax=5 * L / 2,\n",
" nz=105,\n",
" nz=305,\n",
" mode=\"rectangular\",\n",
" a=R,\n",
" h=R,\n",
Expand All @@ -178,7 +198,7 @@
"metadata": {},
"outputs": [],
"source": [
"check_static_div_equation(FM, plot=True, rtol=0.3, ix=51, iy=51)"
"check_static_div_equation(FM, plot=True, rtol=0.1, ix=211, iy=211)"
]
},
{
Expand Down

0 comments on commit d9f59d3

Please sign in to comment.