52 prof_tran = self.
solver.outEpsilon(msh_tran,
'nearest').array
53 self.assertAlmostEqual(prof_tran[0,0,0,0,0], 2.5, 5)
54 self.assertAlmostEqual(prof_tran[0,0,0,1,1], 1.6, 5)
55 self.assertAlmostEqual(prof_tran[0,0,0,2,2], 2.5, 5)
56 self.assertAlmostEqual(prof_tran[0,1,0,0,0], 4., 5)
57 self.assertAlmostEqual(prof_tran[0,1,0,1,1], 4., 5)
58 self.assertAlmostEqual(prof_tran[0,1,0,2,2], 4., 5)
59 self.assertAlmostEqual(prof_tran[0,-2,0,0,0], 1., 5)
60 self.assertAlmostEqual(prof_tran[0,-2,0,1,1], 1., 5)
61 self.assertAlmostEqual(prof_tran[0,-2,0,2,2], 1., 5)
62 self.assertAlmostEqual(prof_tran[0,22,0,0,0], 4., 5)
63 self.assertAlmostEqual(prof_tran[0,22,0,1,1], 4., 5)
64 self.assertAlmostEqual(prof_tran[0,22,0,2,2], 4., 5)
65 self.assertAlmostEqual(prof_tran[0,23,0,0,0], 1., 5)
66 self.assertAlmostEqual(prof_tran[0,23,0,1,1], 1., 5)
67 self.assertAlmostEqual(prof_tran[0,23,0,2,2], 1., 5)
68 print(
"{} {} {}".format(*prof_tran[0, [0,1,-2], 0, :3].real))
78 prof_long = self.
solver.outEpsilon(msh_long,
'nearest').array
79 self.assertAlmostEqual(prof_long[0,0,0,0,0], 1.6, 5)
80 self.assertAlmostEqual(prof_long[0,0,0,1,1], 2.5, 5)
81 self.assertAlmostEqual(prof_long[0,0,0,2,2], 2.5, 5)
82 self.assertAlmostEqual(prof_long[1,0,0,0,0], 4., 5)
83 self.assertAlmostEqual(prof_long[1,0,0,1,1], 4., 5)
84 self.assertAlmostEqual(prof_long[1,0,0,2,2], 4., 5)
85 self.assertAlmostEqual(prof_long[-2,0,0,0,0], 1., 5)
86 self.assertAlmostEqual(prof_long[-2,0,0,1,1], 1., 5)
87 self.assertAlmostEqual(prof_long[-2,0,0,2,2], 1., 5)
88 self.assertAlmostEqual(prof_long[22,0,0,0,0], 4., 5)
89 self.assertAlmostEqual(prof_long[22,0,0,1,1], 4., 5)
90 self.assertAlmostEqual(prof_long[22,0,0,2,2], 4., 5)
91 self.assertAlmostEqual(prof_long[23,0,0,0,0], 1., 5)
92 self.assertAlmostEqual(prof_long[23,0,0,1,1], 1., 5)
93 self.assertAlmostEqual(prof_long[23,0,0,2,2], 1., 5)
94 print(
"{} {} {}".format(*prof_long[[0,1,-2], 0, 0, :3].real))