Skip to content

Commit f322b81

Browse files
authored
Merge pull request #479 from EOMYS-Public/Debug
[BC] Correcting Tests
2 parents ed51807 + e2557ad commit f322b81

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

Tests/Methods/Simulation/test_mmf_dir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
"stator_d_axis": 1.3076,
2525
"rotor_d_axis": pi / 8,
2626
"mmf_dir": 1,
27-
"Tem_av": 368.04,
27+
"Tem_av": 368.45,
2828
},
2929
{
3030
"name": "Protean_InWheel",
3131
"resistance": 0.000733,
3232
"stator_d_axis": 0.09817,
3333
"rotor_d_axis": pi / 64,
3434
"mmf_dir": -1,
35-
"Tem_av": 806.31,
35+
"Tem_av": 806.35,
3636
},
3737
]
3838

Tests/Plot/Magnetics/test_plot_contour.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ def test_SPMSM015_plot_contour_B_FEMM():
3535
Iq_ref = (I0_rms * np.exp(1j * Phi0)).imag
3636

3737
simu.input = InputCurrent(
38-
OP=OPdq(Id_ref=Id_ref, Iq_ref=Iq_ref, N0=1000),
39-
Na_tot=252 * 9,
40-
Nt_tot=4 * 9,
38+
OP=OPdq(Id_ref=Id_ref, Iq_ref=Iq_ref, N0=1000), Na_tot=252 * 9, Nt_tot=4 * 9,
4139
)
4240

4341
# Definition of the magnetic simulation: with periodicity
@@ -61,12 +59,12 @@ def test_SPMSM015_plot_contour_B_FEMM():
6159
is_show_fig=False,
6260
save_path=join(save_path, "plot_mesh_stator.png"),
6361
)
64-
out.mag.meshsolution.plot_contour(
65-
is_animated=True,
66-
group_names="stator core",
67-
is_show_fig=False,
68-
save_path=join(save_path, "plot_mesh_stator.gif"),
69-
)
62+
# out.mag.meshsolution.plot_contour(
63+
# is_animated=True,
64+
# group_names="stator core",
65+
# is_show_fig=False,
66+
# save_path=join(save_path, "plot_mesh_stator.gif"),
67+
# )
7068

7169
pass
7270

@@ -78,9 +76,7 @@ def test_Benchmark_plot_contour_B_FEMM():
7876
simu = Simu1(name="test_FEMM_compare_Toyota_Prius", machine=Benchmark)
7977

8078
simu.input = InputCurrent(
81-
OP=OPdq(Id_ref=0, Iq_ref=0, N0=2504),
82-
Na_tot=2048,
83-
Nt_tot=50,
79+
OP=OPdq(Id_ref=0, Iq_ref=0, N0=2504), Na_tot=2048, Nt_tot=50,
8480
)
8581

8682
# Definition of the magnetic simulation: with periodicity
@@ -97,12 +93,12 @@ def test_Benchmark_plot_contour_B_FEMM():
9793

9894
out.plot_B_mesh(save_path=join(save_path, "plot_B_mesh.png"))
9995

100-
out.plot_B_mesh(
101-
group_names="stator core",
102-
is_animated=True,
103-
is_show_fig=False,
104-
save_path=join(save_path, "plot_B_mesh.gif"),
105-
)
96+
# out.plot_B_mesh(
97+
# group_names="stator core",
98+
# is_animated=True,
99+
# is_show_fig=False,
100+
# save_path=join(save_path, "plot_B_mesh.gif"),
101+
# )
106102

107103
out.mag.meshsolution.plot_contour(
108104
group_names=["rotor magnets", "rotor core"],

0 commit comments

Comments
 (0)