示例#1
0
    def test_Magnetic_FEMM_sym(self):
        """Test compute the Flux in FEMM, with and without symmetry
        and with MANATEE MMF analytical model
		"""

        out = Output(simu=simu)
        out.post.legend_name = "No symmetry"
        simu.run()

        out2 = Output(simu=simu_sym)
        out2.post.legend_name = "1/2 symmetry"
        out2.post.line_color = "r--"
        simu_sym.run()

        out3 = Output(simu=simu_load)
        out3.post.legend_name = "MANATEE MMF"
        out3.post.line_color = "g--"
        simu_load.run()

        # Plot the result by comparing the two simulation (sym / no sym)
        plt.close("all")
        out.plot_B_space(out_list=[out2])

        fig = plt.gcf()
        fig.savefig(join(save_path, "test_EM_SCIM_NL_006_sym.png"))

        # Plot the result by comparing the two simulation (no sym / MANATEE)
        plt.close("all")
        out.plot_B_space(j_t0=0, is_deg=False, out_list=[out3])

        fig = plt.gcf()
        fig.savefig(join(save_path, "test_EM_SCIM_NL_006_MMF.png"))
示例#2
0
    def test_Magnetic_FEMM_sym(self):
        """Test compute the Flux in FEMM, with and without symmetry
        """

        out = Output(simu=simu)
        out.post.legend_name = "No symmetry"
        simu.run()

        out2 = Output(simu=simu_sym)
        out2.post.legend_name = "1/2 symmetry"
        out2.post.line_color = "r--"
        simu_sym.run()

        # Plot the result by comparing the two simulation
        plt.close("all")
        out.plot_B_space(out_list=[out2])

        fig = plt.gcf()
        fig.savefig(join(save_path, "test_EM_IPMSM_FL_002_sym.png"))

        # Plot the surface magnetic forces
        plt.close("all")
        out.plot_force_space(j_t0=0, is_deg=False, out_list=[])

        fig = plt.gcf()
        fig.savefig(join(save_path, "test_EM_IPMSM_FL_002_force.png"))
示例#3
0
    def test_Magnetic_FEMM_sym(self):
        """Test compute the Flux in FEMM, with and without symmetry
        and with MANATEE semi-analytical subdomain model
		"""

        out = Output(simu=simu)
        out.post.legend_name = "Symmetry"
        simu.run()

        out3 = Output(simu=simu_load)
        out3.post.legend_name = "MANATEE SDM"
        out3.post.line_color = "r--"
        simu_load.run()

        plt.close("all")
        out.plot_B_space(out_list=[out3])

        fig = plt.gcf()
        fig.savefig(join(save_path, "test_EM_SPMSM_NL_001_SDM.png"))