Exemplo n.º 1
0
 def test_periodic_3d(self):
     np.testing.assert_array_equal(
         self.periodic_3d,
         diffusion.build_mat(2, 1, [3, 3, 3], bcs='periodic'))
Exemplo n.º 2
0
 def test_neumann_3d(self):
     np.testing.assert_array_equal(
         self.neumann_3d, diffusion.build_mat(2,
                                              1, [3, 3, 3],
                                              bcs='neumann'))
Exemplo n.º 3
0
 def test_dirichlet_3d(self):
     np.testing.assert_array_equal(self.dirichlet_3d,
                                   diffusion.build_mat(2, 1, [3, 3, 3]))