Skip to content

Commit 3646308

Browse files
committed
[VI] Updating tutorial
1 parent ded6c83 commit 3646308

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

Tutorials/Webinar_Pyleecan_Basics.ipynb

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4783,7 +4783,7 @@
47834783
"simu_femm.input.N0 = 2000\n",
47844784
"\n",
47854785
"# time discretization [s]\n",
4786-
"time = linspace(start=0, stop=60/simu_femm.input.N0, num=16*p, endpoint=False) # 16 timesteps\n",
4786+
"time = linspace(start=0, stop=60/simu_femm.input.N0, num=32*p, endpoint=False) # 16 timesteps\n",
47874787
"simu_femm.input.time = time \n",
47884788
"\n",
47894789
"# Angular discretization along the airgap circonference for flux density calculation\n",
@@ -4793,7 +4793,7 @@
47934793
"A_rms = 200 \n",
47944794
"felec = p * simu_femm.input.N0 /60 # [Hz]\n",
47954795
"rot_dir = simu_femm.machine.stator.comp_rot_dir()\n",
4796-
"Phi0 = 0\n",
4796+
"Phi0 = 140*pi/180 # Maximum Torque Per Amp\n",
47974797
"\n",
47984798
"Ia = (\n",
47994799
" A_rms\n",
@@ -4864,6 +4864,22 @@
48644864
"simu_femm.mag.is_periodicity_a=True"
48654865
]
48664866
},
4867+
{
4868+
"source": [
4869+
"The same is done for time periodicity only half of one electrical period is calculated (i.e: 1/8 of mechanical period):"
4870+
],
4871+
"cell_type": "markdown",
4872+
"metadata": {}
4873+
},
4874+
{
4875+
"cell_type": "code",
4876+
"execution_count": null,
4877+
"metadata": {},
4878+
"outputs": [],
4879+
"source": [
4880+
"simu_femm.mag.is_periodicity_t=True"
4881+
]
4882+
},
48674883
{
48684884
"cell_type": "markdown",
48694885
"metadata": {},
@@ -6532,6 +6548,16 @@
65326548
"out_femm.plot_A_space(\"mag.B\",component_list=[\"tangential\"],t_index=1, is_fft=True, r_max=76)"
65336549
]
65346550
},
6551+
{
6552+
"cell_type": "code",
6553+
"execution_count": null,
6554+
"metadata": {},
6555+
"outputs": [],
6556+
"source": [
6557+
"# Torque, one can see that the first torque ripple harmonic is at N0/60*p*6=800 Hz\n",
6558+
"out_femm.plot_A_time(\"mag.Tem\", is_fft=True)"
6559+
]
6560+
},
65356561
{
65366562
"cell_type": "markdown",
65376563
"metadata": {},

0 commit comments

Comments
 (0)