Пример #1
0
    def test_sp(self):
        self.PDE.set_mode(MODE_SP)
        auto_solve(self.PDE, present_res_1s=False)

        self.assertTrue(self.PDE.u_err < 1.16e-02)
        self.assertTrue(self.PDE.ux_err < 7.96e-01)
        self.assertTrue(self.PDE.uy_err < 4.56e-03)
Пример #2
0
    def test_tt(self):
        self.PDE.mode = MODE_TT
        self.PDE.der_mode = 'direct'
        auto_solve(self.PDE, present_res_1s=False)

        self.assertTrue(self.PDE.u_err < 1.16e-02)
        self.assertTrue(self.PDE.ux_err < 7.96e-01)
        self.assertTrue(self.PDE.uy_err < 4.56e-03)
Пример #3
0
 def test_tt(self):
     self.PDE.set_mode(MODE_TT)
     auto_solve(self.PDE, present_res_1s=False)
     
     self.assertTrue(self.PDE.u_err  < 1.16e-01)
     self.assertTrue(self.PDE.ux_err < 8.66e-02)
     self.assertTrue(self.PDE.uy_err < 5.36e-02)
     self.assertTrue(self.PDE.uz_err < 4.76e-02)
Пример #4
0
 def test_sp(self):
     ''' For Solver FS MODE_SP should be not available.  '''
     self.PDE.set_mode(MODE_SP)
     raised = False
     try:
         auto_solve(self.PDE, present_res_1s=False)
     except:
         raised = True
     self.assertTrue(raised)
Пример #5
0
 def test_sp(self):
     self.PDE.set_mode(MODE_SP)
     auto_solve(self.PDE, present_res_1s=False)
     
     self.assertTrue(self.PDE.u_err  < 5.16E-05)
     self.assertTrue(self.PDE.ux_err < 2.66E-05)