test gridN

This commit is contained in:
rowanc1
2014-02-21 11:27:15 -08:00
parent 0fb229a3c0
commit c859735be3
+7
View File
@@ -95,6 +95,13 @@ class TestCyl2DMesh(unittest.TestCase):
G = np.c_[x,y,z]
self.assertTrue(np.linalg.norm((G-self.mesh.gridCC).ravel()) == 0)
def test_gridN(self):
x = np.r_[1,2,2.5,1,2,2.5,1,2,2.5]
y = np.zeros(9)
z = np.r_[0,0,0,2,2,2,3,3,3.]
G = np.c_[x,y,z]
self.assertTrue(np.linalg.norm((G-self.mesh.gridN).ravel()) == 0)
def test_gridFx(self):
x = np.r_[1,2,2.5,1,2,2.5]
y = np.zeros(6)