Esempio n. 1
0
    def test_top_vs_time_drn_1(self):
        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=1,
                                  a = self.a,
                                  top_vs_time = [self.top_vs_time]),

                                  np.array([[ 0.68612566,  0.94612566],
                                            [ 0.99057191,  1.29057191]]))
Esempio n. 2
0
    def test_top_vs_time_drn_0(self):

        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=0,
                                  a=self.a,
                                  top_vs_time = [self.top_vs_time]),

                                  np.array([[ 0.60745899,  0.78879232],
                                            [ 0.83990524,  0.98923858]]))
Esempio n. 3
0
    def test_no_BC(self):
        #expected is from:

        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=0,
                                  a = self.a),

                                  np.array([[ 0.42612566,  0.42612566],
                                            [ 0.69057191,  0.69057191]]))
Esempio n. 4
0
    def test_bot_vs_time_top_vs_time_drn_1_double_loads(self):

        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=1,
                                  a=self.a,
                                  top_vs_time = [self.top_vs_time, self.top_vs_time],
                                  bot_vs_time = [self.bot_vs_time, self.bot_vs_time]),

                                  np.array([[ 1.10345899,  1.78079232],
                                            [ 1.59190524,  2.49323858]]))
Esempio n. 5
0
    def test_bot_vs_time_drn_0(self):


        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=0,
                                  a=self.a,
                                  bot_vs_time = [self.bot_vs_time]),

                                  np.array([[ 0.50479232,  0.58345899],
                                            [ 0.84123858,  0.99190524]]))
Esempio n. 6
0
    def test_bot_vs_time_drn_0_omega_phase(self):


        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=0,
                                  a=self.a,
                                  bot_vs_time = [self.bot_vs_time],
                                  bot_omega_phase=[self.omega_phase]),

                                  np.array([[ 0.34824625,  0.47075517],
                                            [ 0.54141304,  0.77604878]]))
Esempio n. 7
0
    def test_top_vs_time_drn_0_omega_phase(self):


        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=0,
                                  a=self.a,
                                  top_vs_time = [self.top_vs_time],
                                  top_omega_phase=[self.omega_phase]),

                                  np.array([[ 0.24660702,  0.52900048],
                                            [ 0.54273303,  0.77529235]]))
Esempio n. 8
0
    def test_bot_vs_time_top_vs_time_drn_1(self):


        assert_allclose(dim1sin_integrate_af(self.m,
                                  self.outz,
                                  self.tvals,
                                  self.v_E_Igamv_the,
                                  drn=1,
                                  a=self.a,
                                  top_vs_time = [self.top_vs_time],
                                  bot_vs_time = [self.bot_vs_time]),

                                  np.array([[ 0.76479232,  1.10345899],
                                            [ 1.14123858,  1.59190524]]))